Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6983/0.6983, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009197/0.0009197, allocations: 179 kB / 187.2 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 221.3 MB / 441.4 MB, free: 4.605 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007479/0.000748, allocations: 94.67 kB / 0.5124 GB, free: 24.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001597/0.001597, allocations: 278.4 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.408e-05, allocations: 12 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3638, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.252/4.615, allocations: 2.115 GB / 2.879 GB, free: 157 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/4.616, allocations: 91.75 kB / 2.88 GB, free: 157 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.857/6.473, allocations: 0.6602 GB / 3.54 GB, free: 28.75 MB / 0.698 GB Notification: Performance of FrontEnd: time 8.52e-07/6.473, allocations: 0 / 3.54 GB, free: 28.75 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.019e-05/6.473, allocations: 35.98 kB / 3.54 GB, free: 28.72 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.00354/6.476, allocations: 1.486 MB / 3.541 GB, free: 27.18 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/6.476, allocations: 12.03 kB / 3.541 GB, free: 27.16 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/6.476, allocations: 114.5 kB / 3.541 GB, free: 27.04 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002363/6.479, allocations: 0.5317 MB / 3.542 GB, free: 26.51 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02329/6.502, allocations: 13.16 MB / 3.555 GB, free: 13.18 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001096/6.503, allocations: 321.2 kB / 3.555 GB, free: 12.86 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/6.503, allocations: 64 kB / 3.555 GB, free: 12.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/6.505, allocations: 0.9834 MB / 3.556 GB, free: 11.77 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/6.505, allocations: 0 / 3.556 GB, free: 11.77 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-05/6.505, allocations: 24 kB / 3.556 GB, free: 11.75 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.751e-05/6.505, allocations: 37.3 kB / 3.556 GB, free: 11.71 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/6.506, allocations: 0.79 MB / 3.557 GB, free: 10.93 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004858/6.511, allocations: 3.324 MB / 3.56 GB, free: 7.523 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000793/6.512, allocations: 0.5757 MB / 3.561 GB, free: 6.938 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004045/6.512, allocations: 367.3 kB / 3.561 GB, free: 6.578 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000627/6.513, allocations: 1.033 MB / 3.562 GB, free: 5.324 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005638/6.513, allocations: 486.6 kB / 3.562 GB, free: 4.824 MB / 0.698 GB Notification: Performance of pre-optimization done (n=57): time 2.034e-06/6.513, allocations: 4 kB / 3.563 GB, free: 4.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=57): time 0.00136/6.515, allocations: 0.8431 MB / 3.563 GB, free: 3.969 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/6.515, allocations: 136.9 kB / 3.563 GB, free: 3.805 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009173/6.516, allocations: 0.9492 MB / 3.564 GB, free: 2.84 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.958e-05/6.516, allocations: 41.7 kB / 3.564 GB, free: 2.793 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000231/6.516, allocations: 441.7 kB / 3.565 GB, free: 2.359 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/6.516, allocations: 197.3 kB / 3.565 GB, free: 2.164 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-05/6.516, allocations: 8 kB / 3.565 GB, free: 2.156 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.81e-05/6.516, allocations: 334 kB / 3.565 GB, free: 1.824 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/6.517, allocations: 309.2 kB / 3.566 GB, free: 1.523 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005317/6.517, allocations: 0.5164 MB / 3.566 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004506/6.518, allocations: 381.2 kB / 3.567 GB, free: 0.543 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/6.518, allocations: 0 / 3.567 GB, free: 0.543 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001345/6.519, allocations: 0.9687 MB / 3.567 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/6.519, allocations: 41.64 kB / 3.568 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/6.519, allocations: 4 kB / 3.568 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/6.519, allocations: 7.938 kB / 3.568 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009602/6.52, allocations: 220.1 kB / 3.568 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/6.52, allocations: 11.94 kB / 3.568 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/6.522, allocations: 302.9 kB / 3.568 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/6.522, allocations: 47.97 kB / 3.568 GB, free: 14.93 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000204/6.522, allocations: 188.3 kB / 3.568 GB, free: 14.74 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/6.522, allocations: 122.5 kB / 3.568 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/6.524, allocations: 0.944 MB / 3.569 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/6.524, allocations: 8 kB / 3.569 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/6.524, allocations: 0 / 3.569 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/6.524, allocations: 3.984 kB / 3.569 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004057/6.528, allocations: 3.134 MB / 3.572 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/6.528, allocations: 8 kB / 3.572 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005836/6.528, allocations: 128.7 kB / 3.572 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/6.528, allocations: 8 kB / 3.573 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.693e-05/6.529, allocations: 27.98 kB / 3.573 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/6.529, allocations: 19.92 kB / 3.573 GB, free: 10.18 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.465e-06/6.529, allocations: 11.94 kB / 3.573 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/6.53, allocations: 1.671 MB / 3.574 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004967/6.531, allocations: 339.4 kB / 3.575 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/6.531, allocations: 20 kB / 3.575 GB, free: 7.844 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/6.532, allocations: 131.9 kB / 3.575 GB, free: 7.715 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.976e-05/6.532, allocations: 67.67 kB / 3.575 GB, free: 7.648 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.51e-05/6.532, allocations: 43.95 kB / 3.575 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001027/6.533, allocations: 0.744 MB / 3.575 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/6.533, allocations: 0 / 3.575 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00163/6.535, allocations: 443.6 kB / 3.576 GB, free: 6.418 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004828/6.54, allocations: 5.796 MB / 3.582 GB, free: 328 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.3361/6.876, allocations: 0.8257 MB / 3.582 GB, free: 127.5 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/6.876, allocations: 1.781 kB / 3.582 GB, free: 127.5 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0007508/6.877, allocations: 479.8 kB / 3.583 GB, free: 127.4 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002795/6.88, allocations: 0.525 MB / 3.583 GB, free: 127.4 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003741/6.883, allocations: 1.821 MB / 3.585 GB, free: 126.8 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006504/6.884, allocations: 1.088 MB / 3.586 GB, free: 126.1 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001282/6.885, allocations: 276.8 kB / 3.586 GB, free: 126.1 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005242/6.886, allocations: 367.8 kB / 3.587 GB, free: 126.1 MB / 0.7136 GB Notification: Performance of SimCode: time 9.02e-07/6.886, allocations: 0 / 3.587 GB, free: 126.1 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07634/6.962, allocations: 55.3 MB / 3.641 GB, free: 125 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001425/6.962, allocations: 234.4 kB / 3.641 GB, free: 124.8 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.415/10.38, allocations: 1.828 kB / 3.641 GB, free: 124.8 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)