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.001331/0.001331, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001526/0.001526, allocations: 195.4 kB / 16.14 MB, free: 6.707 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.255/1.255, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001916/0.001916, allocations: 272 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8769/0.8769, allocations: 169.2 MB / 0.4977 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 91.7 kB / 0.5946 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.147, allocations: 86.99 MB / 0.6795 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4108/0.5578, allocations: 173.7 MB / 0.8492 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01341/0.5712, allocations: 12.75 MB / 0.8617 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009273/0.5722, allocations: 31.62 kB / 0.8617 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.5732, allocations: 362.8 kB / 0.862 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002038/0.5753, allocations: 0.8712 MB / 0.8629 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.5788, allocations: 1.665 MB / 0.8645 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002209/0.581, allocations: 2.739 MB / 0.8672 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.5826, allocations: 1.489 MB / 0.8686 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003605/0.5863, allocations: 1.261 MB / 0.8699 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008254/0.5871, allocations: 0.8431 MB / 0.8707 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001566/0.5873, allocations: 90.78 kB / 0.8708 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.5895, allocations: 1.467 MB / 0.8722 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003051/0.5898, allocations: 418.5 kB / 0.8726 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006145/0.5904, allocations: 0.7621 MB / 0.8734 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00236/0.5928, allocations: 2.696 MB / 0.876 GB, free: 10.13 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.5928, allocations: 6.625 kB / 0.876 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of FrontEnd: time 5.81e-07/0.5928, allocations: 0 / 0.876 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.487e-05/0.5928, allocations: 0 / 0.876 GB, free: 10.12 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.002987/0.5958, allocations: 2.009 MB / 0.878 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.5959, allocations: 9.75 kB / 0.878 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002052/0.5961, allocations: 202.8 kB / 0.8782 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002408/0.5985, allocations: 413.5 kB / 0.8786 GB, free: 8.254 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.5997, allocations: 0.9925 MB / 0.8795 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.496e-05/0.5998, allocations: 101.5 kB / 0.8796 GB, free: 7.422 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.6, allocations: 128.5 kB / 0.8798 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.6022, allocations: 1.523 MB / 0.8812 GB, free: 6.406 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.6022, allocations: 2.688 kB / 0.8812 GB, free: 6.406 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.6023, allocations: 56.91 kB / 0.8813 GB, free: 6.363 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.6023, allocations: 35.25 kB / 0.8813 GB, free: 6.363 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002345/0.6047, allocations: 1.589 MB / 0.8829 GB, free: 5.594 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.00596/0.6107, allocations: 5.072 MB / 0.8878 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.613, allocations: 1.523 MB / 0.8893 GB, free: 404 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007422/0.6137, allocations: 496.1 kB / 0.8898 GB, free: 92 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006714/0.6144, allocations: 417.3 kB / 0.8902 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001102/0.6155, allocations: 0.6918 MB / 0.8909 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 2.124e-06/0.6155, allocations: 0 / 0.8909 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.003905/0.6194, allocations: 1.664 MB / 0.8925 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.6195, allocations: 200.8 kB / 0.8927 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009461/0.6205, allocations: 0.8922 MB / 0.8936 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.069e-05/0.6206, allocations: 45.7 kB / 0.8936 GB, free: 12 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.6209, allocations: 0.5936 MB / 0.8942 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.6212, allocations: 354.8 kB / 0.8945 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/0.6215, allocations: 198.5 kB / 0.8947 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.6216, allocations: 345.9 kB / 0.895 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006932/0.6223, allocations: 373.8 kB / 0.8954 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008789/0.6231, allocations: 0.5632 MB / 0.8959 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.6247, allocations: 0.9371 MB / 0.8969 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6247, allocations: 0 / 0.8969 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002403/0.6271, allocations: 1.184 MB / 0.898 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.6271, allocations: 4 kB / 0.898 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.6272, allocations: 4 kB / 0.898 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005718/0.6277, allocations: 89.17 kB / 0.8981 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.6288, allocations: 243.7 kB / 0.8983 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.6306, allocations: 1.543 MB / 0.8998 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008953/0.6315, allocations: 139 kB / 0.9 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.938e-05/0.6316, allocations: 47.95 kB / 0.9 GB, free: 5.137 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: 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.0004358/0.632, allocations: 350.7 kB / 0.9004 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.6322, allocations: 122.5 kB / 0.9005 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002939/0.6352, allocations: 1.437 MB / 0.9019 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.6352, allocations: 15.98 kB / 0.9019 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.6352, allocations: 0 / 0.9019 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.6352, allocations: 7.984 kB / 0.9019 GB, free: 3.195 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.004107/0.6394, allocations: 2.882 MB / 0.9047 GB, free: 232 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.6394, allocations: 4 kB / 0.9047 GB, free: 228 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009373/0.6403, allocations: 215.8 kB / 0.9049 GB, free: 12 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005071/0.6408, allocations: 88.77 kB / 0.905 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.262e-05/0.6409, allocations: 35.91 kB / 0.905 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.6425, allocations: 1.551 MB / 0.9066 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6425, allocations: 4.062 kB / 0.9066 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.645, allocations: 1.32 MB / 0.9079 GB, free: 12.85 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004234/0.6454, allocations: 359.1 kB / 0.9082 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001608/0.6456, allocations: 24.12 kB / 0.9082 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009714/0.6465, allocations: 103.8 kB / 0.9083 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.6467, allocations: 88.86 kB / 0.9084 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.59e-05/0.6468, allocations: 55.95 kB / 0.9085 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006943/0.6475, allocations: 0.615 MB / 0.9091 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6475, allocations: 0 / 0.9091 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001021/0.6485, allocations: 478.8 kB / 0.9095 GB, free: 11.12 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.004023/0.6526, allocations: 2.484 MB / 0.9119 GB, free: 8.797 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001981/0.6546, allocations: 1.117 MB / 0.913 GB, free: 7.668 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.6546, allocations: 0 / 0.913 GB, free: 7.668 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.6557, allocations: 0.6796 MB / 0.9137 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.6576, allocations: 0.494 MB / 0.9142 GB, free: 6.492 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/0.6731, allocations: 10.09 MB / 0.924 GB, free: 12.03 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.6738, allocations: 1.205 MB / 0.9252 GB, free: 10.79 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001312/0.6751, allocations: 393.7 kB / 0.9256 GB, free: 10.4 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007145/0.6758, allocations: 0.5656 MB / 0.9261 GB, free: 9.84 MB / 0.6387 GB Notification: Performance of SimCode: time 5.41e-07/0.6758, allocations: 4 kB / 0.9261 GB, free: 9.836 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.951/3.626, allocations: 32.03 MB / 0.9574 GB, free: 10.34 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002881/3.627, allocations: 304.3 kB / 0.9577 GB, free: 9.961 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.033/6.659, allocations: 0 / 0.9577 GB, free: 9.961 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)