Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 191.5 kB / 16.13 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002025/0.002025, allocations: 293.1 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9474/0.9474, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002635/0.002636, allocations: 100.3 kB / 0.5945 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1892, allocations: 86.98 MB / 0.6794 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4908/0.68, allocations: 173.7 MB / 0.8491 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01683/0.6968, allocations: 12.76 MB / 0.8616 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.6981, allocations: 35.69 kB / 0.8616 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.6993, allocations: 366.3 kB / 0.8619 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00235/0.7016, allocations: 0.8642 MB / 0.8628 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003964/0.7056, allocations: 1.675 MB / 0.8644 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002464/0.7081, allocations: 2.743 MB / 0.8671 GB, free: 24 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.7099, allocations: 1.488 MB / 0.8686 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003988/0.7139, allocations: 1.25 MB / 0.8698 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009736/0.7149, allocations: 0.8387 MB / 0.8706 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.7151, allocations: 90.94 kB / 0.8707 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002584/0.7177, allocations: 1.461 MB / 0.8721 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003831/0.7181, allocations: 422.4 kB / 0.8725 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007453/0.7188, allocations: 0.7661 MB / 0.8733 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003279/0.7221, allocations: 2.697 MB / 0.8759 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.7221, allocations: 0 / 0.8759 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.856e-06/0.7221, allocations: 0 / 0.8759 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.376e-05/0.7222, allocations: 3.938 kB / 0.8759 GB, free: 10.36 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.003442/0.7256, allocations: 2.004 MB / 0.8779 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.7257, allocations: 10.78 kB / 0.8779 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002701/0.7284, allocations: 404.3 kB / 0.8783 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.7298, allocations: 0.9898 MB / 0.8792 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.965e-05/0.7299, allocations: 108.4 kB / 0.8793 GB, free: 7.82 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.73, allocations: 132.2 kB / 0.8794 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/0.7325, allocations: 1.527 MB / 0.8809 GB, free: 6.797 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.7325, allocations: 2.906 kB / 0.8809 GB, free: 6.797 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.7326, allocations: 56.88 kB / 0.881 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.7327, allocations: 32.53 kB / 0.881 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002498/0.7352, allocations: 1.586 MB / 0.8826 GB, free: 5.988 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007158/0.7423, allocations: 5.082 MB / 0.8875 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002556/0.7449, allocations: 1.511 MB / 0.889 GB, free: 0.793 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007829/0.7457, allocations: 478.2 kB / 0.8895 GB, free: 0.5547 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007256/0.7464, allocations: 437.2 kB / 0.8899 GB, free: 88 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.7477, allocations: 0.6841 MB / 0.8906 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 2.725e-06/0.7477, allocations: 0 / 0.8906 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.004513/0.7522, allocations: 1.668 MB / 0.8922 GB, free: 13.69 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.7523, allocations: 196.8 kB / 0.8924 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.7535, allocations: 0.8959 MB / 0.8932 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.7537, allocations: 49.7 kB / 0.8933 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004939/0.7542, allocations: 0.5935 MB / 0.8939 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003059/0.7545, allocations: 350.9 kB / 0.8942 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003304/0.7548, allocations: 214.8 kB / 0.8944 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.755, allocations: 345.9 kB / 0.8947 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008059/0.7558, allocations: 402.4 kB / 0.8951 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009691/0.7568, allocations: 0.5668 MB / 0.8957 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.7586, allocations: 0.9605 MB / 0.8966 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.7586, allocations: 0 / 0.8966 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002756/0.7613, allocations: 1.223 MB / 0.8978 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.7614, allocations: 16 kB / 0.8978 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.7614, allocations: 4 kB / 0.8978 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006164/0.762, allocations: 84.78 kB / 0.8979 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.7632, allocations: 259.6 kB / 0.8982 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.7652, allocations: 1.528 MB / 0.8997 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.7664, allocations: 152.9 kB / 0.8998 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.841e-05/0.7665, allocations: 51.97 kB / 0.8998 GB, free: 5.5 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006353/0.7671, allocations: 353.5 kB / 0.9002 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002383/0.7674, allocations: 122.5 kB / 0.9003 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/0.7706, allocations: 1.433 MB / 0.9017 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.7707, allocations: 12 kB / 0.9017 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.7707, allocations: 7.938 kB / 0.9017 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.7707, allocations: 7.969 kB / 0.9017 GB, free: 3.559 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004643/0.7753, allocations: 2.878 MB / 0.9045 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.7753, allocations: 0 / 0.9045 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00099/0.7763, allocations: 215.8 kB / 0.9047 GB, free: 392 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005266/0.7769, allocations: 88.7 kB / 0.9048 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.342e-05/0.777, allocations: 27.98 kB / 0.9049 GB, free: 272 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001867/0.7788, allocations: 1.563 MB / 0.9064 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7789, allocations: 0 / 0.9064 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002729/0.7816, allocations: 1.324 MB / 0.9077 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005524/0.7822, allocations: 359.1 kB / 0.908 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.7823, allocations: 20 kB / 0.908 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009901/0.7833, allocations: 107.8 kB / 0.9081 GB, free: 12.72 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001945/0.7835, allocations: 80.88 kB / 0.9082 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.7837, allocations: 55.95 kB / 0.9083 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008372/0.7845, allocations: 0.615 MB / 0.9089 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7845, allocations: 4 kB / 0.9089 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001282/0.7858, allocations: 478.8 kB / 0.9093 GB, free: 11.49 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001585/0.7874, allocations: 0.7101 MB / 0.91 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00229/0.7897, allocations: 1.148 MB / 0.9111 GB, free: 9.797 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.7897, allocations: 0 / 0.9111 GB, free: 9.797 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.7909, allocations: 0.6835 MB / 0.9118 GB, free: 9.098 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.7931, allocations: 497.2 kB / 0.9123 GB, free: 8.625 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005567/0.7987, allocations: 3.055 MB / 0.9153 GB, free: 5.547 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008058/0.7995, allocations: 1.213 MB / 0.9165 GB, free: 4.301 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001472/0.801, allocations: 397.7 kB / 0.9168 GB, free: 3.91 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004005/0.8014, allocations: 135.4 kB / 0.917 GB, free: 3.777 MB / 0.6231 GB Notification: Performance of SimCode: time 9.02e-07/0.8014, allocations: 4 kB / 0.917 GB, free: 3.773 MB / 0.6231 GB Notification: Performance of Templates: time 0.03862/0.8401, allocations: 23.04 MB / 0.9395 GB, free: 13.05 MB / 0.6544 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)