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.001076/0.001076, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7297/0.7297, allocations: 132.2 MB / 422.6 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001459, allocations: 65.77 kB / 0.5019 GB, free: 8.727 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1269, allocations: 80.21 MB / 0.5802 GB, free: 8.746 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4075/0.5345, allocations: 194 MB / 0.7696 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.009766/0.5443, allocations: 6.93 MB / 0.7764 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/0.5455, allocations: 43.69 kB / 0.7764 GB, free: 9.824 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.5472, allocations: 0.6908 MB / 0.7771 GB, free: 9.129 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005012/0.5522, allocations: 2.33 MB / 0.7794 GB, free: 6.789 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002948/0.5551, allocations: 1.407 MB / 0.7808 GB, free: 5.414 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003343/0.5585, allocations: 2.994 MB / 0.7837 GB, free: 2.418 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001274/0.5598, allocations: 0.8935 MB / 0.7846 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.562, allocations: 1.118 MB / 0.7857 GB, free: 420 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001254/0.5633, allocations: 0.7948 MB / 0.7864 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002408/0.5636, allocations: 103.9 kB / 0.7865 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003463/0.567, allocations: 2.054 MB / 0.7885 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004807/0.5675, allocations: 366.8 kB / 0.7889 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007238/0.5683, allocations: 0.5792 MB / 0.7895 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003397/0.5717, allocations: 2.392 MB / 0.7918 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.5717, allocations: 4 kB / 0.7918 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5717, allocations: 0 / 0.7918 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.083e-05/0.5717, allocations: 4 kB / 0.7918 GB, free: 10.11 MB / 0.6075 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.00377/0.5755, allocations: 1.636 MB / 0.7934 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.5756, allocations: 12.03 kB / 0.7934 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001985/0.5758, allocations: 110.5 kB / 0.7935 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003129/0.5789, allocations: 0.5332 MB / 0.794 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.5813, allocations: 0.9768 MB / 0.795 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001218/0.5825, allocations: 281 kB / 0.7953 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.5827, allocations: 71.98 kB / 0.7953 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00261/0.5853, allocations: 1.124 MB / 0.7964 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.5853, allocations: 3.938 kB / 0.7964 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.329e-05/0.5854, allocations: 28 kB / 0.7965 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.942e-05/0.5855, allocations: 33.3 kB / 0.7965 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003293/0.5888, allocations: 1.196 MB / 0.7977 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005786/0.5946, allocations: 3.216 MB / 0.8008 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.5963, allocations: 0.6935 MB / 0.8015 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007944/0.5971, allocations: 419.2 kB / 0.8019 GB, free: 15.56 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008295/0.598, allocations: 1.021 MB / 0.8029 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009689/0.599, allocations: 0.5142 MB / 0.8034 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 2.434e-06/0.599, allocations: 0 / 0.8034 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.002933/0.6019, allocations: 1.225 MB / 0.8046 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.442e-05/0.602, allocations: 140.9 kB / 0.8047 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00198/0.604, allocations: 1.196 MB / 0.8059 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.95e-05/0.6041, allocations: 41.7 kB / 0.8059 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003384/0.6044, allocations: 445.4 kB / 0.8063 GB, free: 10.69 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.6046, allocations: 189.2 kB / 0.8065 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002654/0.6049, allocations: 138.1 kB / 0.8066 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.605, allocations: 334 kB / 0.807 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.6064, allocations: 456.9 kB / 0.8074 GB, free: 9.578 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.6079, allocations: 0.6133 MB / 0.808 GB, free: 8.918 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/0.6101, allocations: 0.9457 MB / 0.8089 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.6101, allocations: 0 / 0.8089 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003316/0.6134, allocations: 1.236 MB / 0.8101 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.6135, allocations: 45.58 kB / 0.8102 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.6135, allocations: 0 / 0.8102 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.6135, allocations: 11.94 kB / 0.8102 GB, free: 6.605 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009693/0.6145, allocations: 199.8 kB / 0.8104 GB, free: 6.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.6145, allocations: 12 kB / 0.8104 GB, free: 6.398 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.6162, allocations: 267.8 kB / 0.8106 GB, free: 6.137 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.822e-05/0.6163, allocations: 35.98 kB / 0.8107 GB, free: 6.102 MB / 0.6231 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.0004716/0.6168, allocations: 333.3 kB / 0.811 GB, free: 5.762 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002376/0.617, allocations: 114.6 kB / 0.8111 GB, free: 5.648 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/0.6191, allocations: 0.9959 MB / 0.8121 GB, free: 4.641 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.6192, allocations: 12.05 kB / 0.8121 GB, free: 4.629 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.6192, allocations: 3.984 kB / 0.8121 GB, free: 4.625 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.6192, allocations: 3.984 kB / 0.8121 GB, free: 4.621 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004795/0.624, allocations: 3.163 MB / 0.8152 GB, free: 1.309 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.624, allocations: 4 kB / 0.8152 GB, free: 1.305 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006018/0.6246, allocations: 119.8 kB / 0.8153 GB, free: 1.188 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.6247, allocations: 12.19 kB / 0.8153 GB, free: 1.176 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.495e-05/0.6247, allocations: 27.98 kB / 0.8153 GB, free: 1.148 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.277e-05/0.6247, allocations: 19.92 kB / 0.8154 GB, free: 1.129 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.6248, allocations: 11.94 kB / 0.8154 GB, free: 1.117 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.6269, allocations: 1.337 MB / 0.8167 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005175/0.6274, allocations: 331.4 kB / 0.817 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.6276, allocations: 23.94 kB / 0.817 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.6288, allocations: 107.9 kB / 0.8171 GB, free: 15.19 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.6289, allocations: 59.77 kB / 0.8172 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/0.629, allocations: 43.97 kB / 0.8172 GB, free: 15.09 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001538/0.6305, allocations: 0.8677 MB / 0.8181 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of sort global known variables: time 3.71e-07/0.6306, allocations: 0 / 0.8181 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001021/0.6316, allocations: 303.8 kB / 0.8184 GB, free: 13.91 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.002906/0.6345, allocations: 2.135 MB / 0.8204 GB, free: 11.67 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002586/0.6371, allocations: 1.045 MB / 0.8215 GB, free: 10.62 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.6371, allocations: 0 / 0.8215 GB, free: 10.62 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009174/0.638, allocations: 0.5125 MB / 0.822 GB, free: 10.09 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.6408, allocations: 0.5646 MB / 0.8225 GB, free: 9.57 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.6575, allocations: 9.981 MB / 0.8323 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000638/0.6581, allocations: 1.069 MB / 0.8333 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001155/0.6593, allocations: 275 kB / 0.8336 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005096/0.6598, allocations: 363.3 kB / 0.8339 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of SimCode: time 4.81e-07/0.6598, allocations: 0 / 0.8339 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9447/1.605, allocations: 31.5 MB / 0.8647 GB, free: 222.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/15.42, allocations: 10.27 kB / 0.8647 GB, free: 222.8 MB / 0.67 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)