Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007836/0.007836, allocations: 170.8 kB / 15.11 MB, free: 5.977 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7793/0.7793, allocations: 135.2 MB / 151.1 MB, free: 13.82 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.688/1.688, allocations: 223.2 MB / 406.8 MB, free: 3.164 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.001007/0.001007, allocations: 101.9 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004159/0.0004163, allocations: 11.98 kB / 0.5692 GB, free: 14.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4676/0.4681, allocations: 82.31 MB / 0.6495 GB, free: 36.12 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.307/5.775, allocations: 2.118 GB / 2.767 GB, free: 73.06 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/5.775, allocations: 87.64 kB / 2.767 GB, free: 73.02 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 2.663/8.438, allocations: 0.6612 GB / 3.429 GB, free: 113.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.834e-06/8.438, allocations: 0 / 3.429 GB, free: 113.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001144/8.438, allocations: 32.44 kB / 3.429 GB, free: 113.9 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.005461/8.444, allocations: 1.645 MB / 3.43 GB, free: 113.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/8.444, allocations: 8.562 kB / 3.43 GB, free: 113.2 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003863/8.444, allocations: 118.6 kB / 3.43 GB, free: 113.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002934/8.447, allocations: 0.5333 MB / 3.431 GB, free: 113.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02652/8.474, allocations: 13.22 MB / 3.444 GB, free: 112.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001187/8.475, allocations: 319.7 kB / 3.444 GB, free: 112.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/8.475, allocations: 64.97 kB / 3.444 GB, free: 112.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/8.478, allocations: 1.17 MB / 3.445 GB, free: 112.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/8.478, allocations: 3.844 kB / 3.445 GB, free: 112.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/8.478, allocations: 28.38 kB / 3.445 GB, free: 112.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.301e-05/8.478, allocations: 32.03 kB / 3.445 GB, free: 112.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002908/8.481, allocations: 1.171 MB / 3.446 GB, free: 112.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006888/8.488, allocations: 3.319 MB / 3.45 GB, free: 111.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/8.489, allocations: 0.6976 MB / 3.45 GB, free: 111.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007761/8.49, allocations: 1.031 MB / 3.451 GB, free: 110.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/8.491, allocations: 0.539 MB / 3.452 GB, free: 110.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=57): time 2.605e-06/8.491, allocations: 0 / 3.452 GB, free: 110.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=57): time 0.0031/8.494, allocations: 1.37 MB / 3.453 GB, free: 109.9 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/8.494, allocations: 147.7 kB / 3.453 GB, free: 109.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001877/8.496, allocations: 1.089 MB / 3.454 GB, free: 109.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001916/8.497, allocations: 40.64 kB / 3.455 GB, free: 109.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/8.497, allocations: 438.9 kB / 3.455 GB, free: 109.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/8.497, allocations: 185.4 kB / 3.455 GB, free: 109.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-05/8.497, allocations: 12.12 kB / 3.455 GB, free: 109.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.208e-05/8.497, allocations: 327.6 kB / 3.455 GB, free: 109.1 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/8.499, allocations: 497.9 kB / 3.456 GB, free: 109.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/8.5, allocations: 0.7011 MB / 3.457 GB, free: 108.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/8.501, allocations: 0.5623 MB / 3.457 GB, free: 108.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/8.501, allocations: 0 / 3.457 GB, free: 108.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00327/8.505, allocations: 1.327 MB / 3.458 GB, free: 108.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.046e-05/8.505, allocations: 39.55 kB / 3.458 GB, free: 108.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/8.505, allocations: 3.969 kB / 3.458 GB, free: 108.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/8.505, allocations: 7.562 kB / 3.458 GB, free: 108.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/8.506, allocations: 216.8 kB / 3.459 GB, free: 108.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/8.506, allocations: 10.19 kB / 3.459 GB, free: 108.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/8.508, allocations: 314.3 kB / 3.459 GB, free: 108.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/8.508, allocations: 41.22 kB / 3.459 GB, free: 108.7 MB / 0.698 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 () * Number of clocked 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.0007213/8.509, allocations: 340.2 kB / 3.459 GB, free: 108.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002913/8.509, allocations: 120.3 kB / 3.459 GB, free: 108.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/8.511, allocations: 1.055 MB / 3.461 GB, free: 108.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/8.511, allocations: 11.69 kB / 3.461 GB, free: 108.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/8.511, allocations: 0 / 3.461 GB, free: 108.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/8.511, allocations: 3.141 kB / 3.461 GB, free: 108.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005339/8.517, allocations: 3.256 MB / 3.464 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/8.517, allocations: 6.094 kB / 3.464 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006215/8.517, allocations: 130.6 kB / 3.464 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/8.517, allocations: 11.72 kB / 3.464 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.339e-05/8.517, allocations: 24.48 kB / 3.464 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.14e-05/8.517, allocations: 16.03 kB / 3.464 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/8.517, allocations: 15.73 kB / 3.464 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/8.52, allocations: 1.792 MB / 3.466 GB, free: 106.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007173/8.521, allocations: 341 kB / 3.466 GB, free: 106.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/8.521, allocations: 24.52 kB / 3.466 GB, free: 106.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/8.522, allocations: 136.2 kB / 3.466 GB, free: 106.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/8.522, allocations: 53.39 kB / 3.466 GB, free: 106.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.561e-05/8.522, allocations: 47.08 kB / 3.466 GB, free: 106.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001491/8.524, allocations: 0.8787 MB / 3.467 GB, free: 106.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/8.524, allocations: 3.281 kB / 3.467 GB, free: 106.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002178/8.526, allocations: 440.7 kB / 3.467 GB, free: 106.3 MB / 0.698 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) * Number of clocked states: 0 () * 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.005793/8.532, allocations: 5.901 MB / 3.473 GB, free: 102.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002902/8.535, allocations: 1.07 MB / 3.474 GB, free: 102.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/8.535, allocations: 0 / 3.474 GB, free: 102.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009502/8.536, allocations: 0.5313 MB / 3.475 GB, free: 102.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002848/8.539, allocations: 0.5309 MB / 3.475 GB, free: 102.1 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01418/8.553, allocations: 9.216 MB / 3.484 GB, free: 97.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005364/8.553, allocations: 1.091 MB / 3.485 GB, free: 97.12 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001431/8.555, allocations: 282.5 kB / 3.486 GB, free: 97.11 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005195/8.555, allocations: 366.6 kB / 3.486 GB, free: 97.1 MB / 0.698 GB Notification: Performance of SimCode: time 9.72e-07/8.555, allocations: 0 / 3.486 GB, free: 97.1 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08698/8.642, allocations: 51.8 MB / 3.537 GB, free: 89.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/8.643, allocations: 238.2 kB / 3.537 GB, free: 89.06 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.803/12.45, allocations: 0 / 3.537 GB, free: 89.06 MB / 0.698 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)