Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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.001063/0.001063, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001177/0.001177, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.258/1.258, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7315/0.7315, allocations: 132.2 MB / 422.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 62.91 kB / 0.5014 GB, free: 4.168 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3303, allocations: 80.19 MB / 0.5797 GB, free: 4.598 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1769/0.5073, allocations: 191.5 MB / 0.7667 GB, free: 1.621 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.009415/0.5167, allocations: 6.883 MB / 0.7734 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.5179, allocations: 47.69 kB / 0.7734 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.5195, allocations: 0.5945 MB / 0.774 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004689/0.5242, allocations: 2.197 MB / 0.7762 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002794/0.527, allocations: 1.302 MB / 0.7774 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003291/0.5303, allocations: 2.998 MB / 0.7804 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.5316, allocations: 0.9073 MB / 0.7812 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.534, allocations: 1.167 MB / 0.7824 GB, free: 1.504 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.5352, allocations: 0.8312 MB / 0.7832 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.5353, allocations: 96 kB / 0.7833 GB, free: 0.582 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002828/0.5381, allocations: 2.14 MB / 0.7854 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002975/0.5384, allocations: 366.7 kB / 0.7857 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0004838/0.5389, allocations: 0.5908 MB / 0.7863 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002424/0.5414, allocations: 2.489 MB / 0.7887 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.5414, allocations: 4 kB / 0.7887 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5414, allocations: 0 / 0.7887 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.154e-05/0.5414, allocations: 3.938 kB / 0.7887 GB, free: 10.98 MB / 0.6231 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.002955/0.5444, allocations: 1.633 MB / 0.7903 GB, free: 9.285 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.5444, allocations: 8.031 kB / 0.7903 GB, free: 9.277 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.5445, allocations: 114.5 kB / 0.7904 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002769/0.5473, allocations: 0.5371 MB / 0.791 GB, free: 8.617 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.5491, allocations: 0.983 MB / 0.7919 GB, free: 7.594 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001085/0.5502, allocations: 273 kB / 0.7922 GB, free: 7.324 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.5503, allocations: 75.94 kB / 0.7923 GB, free: 7.25 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.5526, allocations: 1.128 MB / 0.7934 GB, free: 6.09 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.5526, allocations: 4 kB / 0.7934 GB, free: 6.086 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.092e-05/0.5527, allocations: 24 kB / 0.7934 GB, free: 6.062 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.392e-05/0.5528, allocations: 29.31 kB / 0.7934 GB, free: 6.035 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002957/0.5557, allocations: 1.196 MB / 0.7946 GB, free: 4.84 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005088/0.5608, allocations: 3.213 MB / 0.7977 GB, free: 1.547 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.5624, allocations: 0.6958 MB / 0.7984 GB, free: 0.8398 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007379/0.5632, allocations: 428.1 kB / 0.7988 GB, free: 432 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007755/0.564, allocations: 1.021 MB / 0.7998 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009324/0.5649, allocations: 0.5104 MB / 0.8003 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 1.814e-06/0.5649, allocations: 0 / 0.8003 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.002654/0.5676, allocations: 1.221 MB / 0.8015 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.68e-05/0.5676, allocations: 144.8 kB / 0.8016 GB, free: 13.24 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/0.5694, allocations: 1.204 MB / 0.8028 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.591e-05/0.5694, allocations: 37.7 kB / 0.8029 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003125/0.5698, allocations: 445.3 kB / 0.8033 GB, free: 11.54 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.5699, allocations: 189.2 kB / 0.8035 GB, free: 11.36 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000256/0.5702, allocations: 150.1 kB / 0.8036 GB, free: 11.2 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 9.439e-05/0.5703, allocations: 326 kB / 0.8039 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.5715, allocations: 460.9 kB / 0.8043 GB, free: 10.43 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.5729, allocations: 0.6094 MB / 0.8049 GB, free: 9.77 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001962/0.5749, allocations: 0.9457 MB / 0.8059 GB, free: 8.773 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5749, allocations: 0 / 0.8059 GB, free: 8.773 MB / 0.6387 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002937/0.5778, allocations: 1.236 MB / 0.8071 GB, free: 7.523 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.5779, allocations: 41.62 kB / 0.8071 GB, free: 7.477 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.5779, allocations: 4 kB / 0.8071 GB, free: 7.473 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.5779, allocations: 4 kB / 0.8071 GB, free: 7.469 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009614/0.5789, allocations: 199.8 kB / 0.8073 GB, free: 7.273 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.5789, allocations: 11.92 kB / 0.8073 GB, free: 7.262 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/0.5804, allocations: 274.8 kB / 0.8076 GB, free: 6.992 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.83e-05/0.5804, allocations: 35.97 kB / 0.8076 GB, free: 6.957 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003868/0.5808, allocations: 333.3 kB / 0.8079 GB, free: 6.617 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.581, allocations: 118.5 kB / 0.8081 GB, free: 6.5 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.583, allocations: 0.9881 MB / 0.809 GB, free: 5.504 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.583, allocations: 8.047 kB / 0.809 GB, free: 5.496 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.583, allocations: 11.91 kB / 0.809 GB, free: 5.484 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.583, allocations: 4 kB / 0.809 GB, free: 5.48 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/0.5873, allocations: 3.155 MB / 0.8121 GB, free: 2.172 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.5873, allocations: 8 kB / 0.8121 GB, free: 2.164 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000574/0.5879, allocations: 123.7 kB / 0.8122 GB, free: 2.043 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.408e-06/0.5879, allocations: 12.19 kB / 0.8123 GB, free: 2.031 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.5879, allocations: 27.98 kB / 0.8123 GB, free: 2.004 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/0.5879, allocations: 11.94 kB / 0.8123 GB, free: 1.992 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.588, allocations: 11.94 kB / 0.8123 GB, free: 1.98 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.5899, allocations: 1.35 MB / 0.8136 GB, free: 0.5117 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003867/0.5903, allocations: 327.4 kB / 0.8139 GB, free: 176 kB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.5904, allocations: 27.98 kB / 0.814 GB, free: 148 kB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.5915, allocations: 107.9 kB / 0.8141 GB, free: 40 kB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2118/0.8034, allocations: 56.14 kB / 0.8141 GB, free: 219.7 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/0.8036, allocations: 39.64 kB / 0.8142 GB, free: 219.7 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0017/0.8053, allocations: 0.8714 MB / 0.815 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8053, allocations: 0 / 0.815 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001066/0.8064, allocations: 304.2 kB / 0.8153 GB, free: 219.6 MB / 0.6387 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002541/0.8089, allocations: 2.111 MB / 0.8174 GB, free: 218.4 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002265/0.8112, allocations: 1.048 MB / 0.8184 GB, free: 218 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.8112, allocations: 4.281 kB / 0.8184 GB, free: 218 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008458/0.8121, allocations: 0.5095 MB / 0.8189 GB, free: 217.8 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002491/0.8146, allocations: 0.5615 MB / 0.8194 GB, free: 217.7 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.8304, allocations: 10.24 MB / 0.8294 GB, free: 212.2 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.8309, allocations: 1.075 MB / 0.8305 GB, free: 211.5 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001136/0.8321, allocations: 273.4 kB / 0.8307 GB, free: 211.4 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004526/0.8325, allocations: 357.4 kB / 0.8311 GB, free: 211.2 MB / 0.6387 GB Notification: Performance of SimCode: time 6.82e-07/0.8325, allocations: 0 / 0.8311 GB, free: 211.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.4/2.233, allocations: 31.32 MB / 0.8617 GB, free: 189.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/2.233, allocations: 258.2 kB / 0.8619 GB, free: 188.9 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.052/5.285, allocations: 0 / 0.8619 GB, free: 188.9 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)