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: "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007975/0.0007975, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005157/0.005157, allocations: 171 kB / 16.26 MB, free: 6.613 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.183/1.183, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001643/0.001643, allocations: 274.5 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.842/0.842, allocations: 169.5 MB / 0.5004 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004421/0.0004421, allocations: 15.91 kB / 0.5988 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1324, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4125/0.5449, allocations: 171.4 MB / 0.8526 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01358/0.5585, allocations: 12.58 MB / 0.8649 GB, free: 2.238 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007815/0.5593, allocations: 30.91 kB / 0.865 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009172/0.5603, allocations: 362.7 kB / 0.8653 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001866/0.5621, allocations: 0.8676 MB / 0.8662 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003474/0.5656, allocations: 1.664 MB / 0.8678 GB, free: 52 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002134/0.5678, allocations: 2.744 MB / 0.8705 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001492/0.5693, allocations: 1.391 MB / 0.8718 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.5727, allocations: 1.154 MB / 0.8729 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007264/0.5734, allocations: 0.7165 MB / 0.8736 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 9.834e-05/0.5735, allocations: 43.94 kB / 0.8737 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002048/0.5756, allocations: 1.416 MB / 0.8751 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002776/0.5759, allocations: 350.2 kB / 0.8754 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005489/0.5764, allocations: 0.7038 MB / 0.8761 GB, free: 11.08 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002305/0.5787, allocations: 2.622 MB / 0.8786 GB, free: 9.309 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.5787, allocations: 0 / 0.8786 GB, free: 9.309 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5788, allocations: 4 kB / 0.8787 GB, free: 9.305 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.434e-05/0.5788, allocations: 0 / 0.8787 GB, free: 9.305 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.00261/0.5814, allocations: 1.692 MB / 0.8803 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.5814, allocations: 12.03 kB / 0.8803 GB, free: 7.824 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000223/0.5817, allocations: 198.7 kB / 0.8805 GB, free: 7.621 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002326/0.584, allocations: 413.6 kB / 0.8809 GB, free: 7.215 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.5853, allocations: 0.9917 MB / 0.8819 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.02e-05/0.5854, allocations: 98.72 kB / 0.882 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001769/0.5856, allocations: 136 kB / 0.8821 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002313/0.5879, allocations: 1.526 MB / 0.8836 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.5879, allocations: 4 kB / 0.8836 GB, free: 4.34 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.588, allocations: 59.98 kB / 0.8836 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.498e-05/0.5881, allocations: 36 kB / 0.8837 GB, free: 4.246 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002457/0.5905, allocations: 1.587 MB / 0.8852 GB, free: 2.652 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.006185/0.5967, allocations: 5.114 MB / 0.8902 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002347/0.5991, allocations: 1.518 MB / 0.8917 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007852/0.5999, allocations: 491.6 kB / 0.8922 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006711/0.6006, allocations: 445.2 kB / 0.8926 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.6017, allocations: 0.6996 MB / 0.8933 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 2.204e-06/0.6017, allocations: 0 / 0.8933 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.003808/0.6055, allocations: 1.676 MB / 0.8949 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.945e-05/0.6056, allocations: 200.9 kB / 0.8951 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.6066, allocations: 0.8882 MB / 0.896 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.739e-05/0.6067, allocations: 45.7 kB / 0.896 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003988/0.6071, allocations: 0.6013 MB / 0.8966 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.6074, allocations: 347 kB / 0.8969 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.6075, allocations: 85.61 kB / 0.897 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.6076, allocations: 345.9 kB / 0.8974 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007042/0.6084, allocations: 381.8 kB / 0.8977 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008513/0.6092, allocations: 0.5671 MB / 0.8983 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/0.6108, allocations: 0.9449 MB / 0.8992 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.6108, allocations: 0 / 0.8992 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002313/0.6131, allocations: 1.188 MB / 0.9004 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.6131, allocations: 15.97 kB / 0.9004 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.6131, allocations: 4 kB / 0.9004 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005416/0.6137, allocations: 88.77 kB / 0.9005 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000986/0.6147, allocations: 247.7 kB / 0.9007 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/0.6165, allocations: 1.551 MB / 0.9022 GB, free: 468 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008969/0.6174, allocations: 153.2 kB / 0.9024 GB, free: 316 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.637e-05/0.6175, allocations: 43.98 kB / 0.9024 GB, free: 272 kB / 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: 15 (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 (123): * Single equations (assignments): 122 * 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.0004671/0.618, allocations: 346.7 kB / 0.9027 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.6181, allocations: 122.5 kB / 0.9028 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/0.621, allocations: 1.445 MB / 0.9043 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.6211, allocations: 12 kB / 0.9043 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.6211, allocations: 4.031 kB / 0.9043 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.6211, allocations: 7.969 kB / 0.9043 GB, free: 14.32 MB / 0.6231 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.004127/0.6252, allocations: 2.878 MB / 0.9071 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.6252, allocations: 0 / 0.9071 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008922/0.6261, allocations: 223.7 kB / 0.9073 GB, free: 11.13 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004697/0.6266, allocations: 84.78 kB / 0.9074 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-05/0.6267, allocations: 39.97 kB / 0.9074 GB, free: 11.01 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.6283, allocations: 1.559 MB / 0.9089 GB, free: 9.312 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.6283, allocations: 0 / 0.9089 GB, free: 9.312 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00236/0.6307, allocations: 1.336 MB / 0.9102 GB, free: 7.953 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004303/0.6311, allocations: 367.1 kB / 0.9106 GB, free: 7.574 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.6313, allocations: 24 kB / 0.9106 GB, free: 7.551 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000934/0.6322, allocations: 121.4 kB / 0.9107 GB, free: 7.434 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.6324, allocations: 88.81 kB / 0.9108 GB, free: 7.348 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-05/0.6325, allocations: 51.95 kB / 0.9109 GB, free: 7.297 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007194/0.6332, allocations: 0.6189 MB / 0.9115 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6332, allocations: 0 / 0.9115 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001014/0.6342, allocations: 474.9 kB / 0.9119 GB, free: 6.203 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.003924/0.6382, allocations: 2.497 MB / 0.9144 GB, free: 3.871 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001933/0.6401, allocations: 1.125 MB / 0.9155 GB, free: 2.734 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.6401, allocations: 0 / 0.9155 GB, free: 2.734 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.6412, allocations: 0.6875 MB / 0.9161 GB, free: 2.031 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.6433, allocations: 490.7 kB / 0.9166 GB, free: 1.555 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.6589, allocations: 10.19 MB / 0.9266 GB, free: 6.984 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007052/0.6596, allocations: 1.209 MB / 0.9277 GB, free: 5.746 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001278/0.6609, allocations: 381.8 kB / 0.9281 GB, free: 5.371 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007309/0.6616, allocations: 0.5772 MB / 0.9287 GB, free: 4.793 MB / 0.6387 GB Notification: Performance of SimCode: time 4.6e-07/0.6616, allocations: 0 / 0.9287 GB, free: 4.793 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.481/2.143, allocations: 31.67 MB / 0.9596 GB, free: 5.688 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002584/2.143, allocations: 296.9 kB / 0.9599 GB, free: 5.312 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.644/4.787, allocations: 0 / 0.9599 GB, free: 5.312 MB / 0.67 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)