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.0009009/0.0009009, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005571/0.005571, allocations: 172.3 kB / 16.27 MB, free: 6.66 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.342/1.342, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7479/0.7479, allocations: 132.3 MB / 423.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005159/0.000516, allocations: 13.88 kB / 0.5041 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3895, allocations: 81.57 MB / 0.5837 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1891/0.5786, allocations: 189.1 MB / 0.7684 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.009811/0.5885, allocations: 6.921 MB / 0.7752 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.5897, allocations: 35.75 kB / 0.7752 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.5915, allocations: 0.5632 MB / 0.7758 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005161/0.5966, allocations: 2.171 MB / 0.7779 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003057/0.5997, allocations: 1.293 MB / 0.7791 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004392/0.6041, allocations: 3.735 MB / 0.7828 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.6055, allocations: 0.7755 MB / 0.7836 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001807/0.6073, allocations: 0.953 MB / 0.7845 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.609, allocations: 0.7905 MB / 0.7853 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.6092, allocations: 40 kB / 0.7853 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003858/0.613, allocations: 2.225 MB / 0.7875 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000364/0.6134, allocations: 302.9 kB / 0.7878 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006633/0.6141, allocations: 0.5573 MB / 0.7883 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003325/0.6174, allocations: 2.395 MB / 0.7906 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.6174, allocations: 0 / 0.7906 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.914e-06/0.6174, allocations: 0 / 0.7906 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.323e-05/0.6175, allocations: 0 / 0.7906 GB, free: 11.88 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.003048/0.6205, allocations: 1.391 MB / 0.792 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.6206, allocations: 8.031 kB / 0.792 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.6208, allocations: 118.5 kB / 0.7921 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003069/0.6238, allocations: 0.6035 MB / 0.7927 GB, free: 9.68 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.6259, allocations: 0.9868 MB / 0.7937 GB, free: 8.652 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001232/0.6271, allocations: 313.1 kB / 0.794 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.6273, allocations: 75.92 kB / 0.794 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.6298, allocations: 1.155 MB / 0.7952 GB, free: 7.086 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.6299, allocations: 8 kB / 0.7952 GB, free: 7.078 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.789e-05/0.63, allocations: 24 kB / 0.7952 GB, free: 7.055 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-05/0.63, allocations: 33.31 kB / 0.7952 GB, free: 7.02 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003301/0.6333, allocations: 1.254 MB / 0.7965 GB, free: 5.766 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005745/0.6391, allocations: 3.248 MB / 0.7996 GB, free: 2.441 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002477/0.6416, allocations: 0.7051 MB / 0.8003 GB, free: 1.734 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008108/0.6424, allocations: 430.2 kB / 0.8007 GB, free: 1.312 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008156/0.6432, allocations: 1.025 MB / 0.8017 GB, free: 68 kB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.6442, allocations: 0.5182 MB / 0.8022 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 2.304e-06/0.6443, allocations: 0 / 0.8022 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.002966/0.6472, allocations: 1.252 MB / 0.8035 GB, free: 14.26 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.6473, allocations: 140.9 kB / 0.8036 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.6493, allocations: 1.215 MB / 0.8048 GB, free: 12.86 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.494e-05/0.6494, allocations: 37.7 kB / 0.8048 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000343/0.6497, allocations: 437.4 kB / 0.8052 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.6499, allocations: 197.2 kB / 0.8054 GB, free: 12.19 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.484e-05/0.65, allocations: 49.69 kB / 0.8055 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.6501, allocations: 338 kB / 0.8058 GB, free: 11.8 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.6514, allocations: 484.8 kB / 0.8063 GB, free: 11.33 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.6529, allocations: 0.6406 MB / 0.8069 GB, free: 10.64 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.6551, allocations: 0.9812 MB / 0.8078 GB, free: 9.605 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.6552, allocations: 0 / 0.8078 GB, free: 9.605 MB / 0.6387 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003313/0.6585, allocations: 1.287 MB / 0.8091 GB, free: 8.305 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.6585, allocations: 41.62 kB / 0.8091 GB, free: 8.258 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.6586, allocations: 12.22 kB / 0.8091 GB, free: 8.246 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.6586, allocations: 4 kB / 0.8091 GB, free: 8.242 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009795/0.6596, allocations: 215.7 kB / 0.8094 GB, free: 8.031 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.6596, allocations: 4 kB / 0.8094 GB, free: 8.027 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.6612, allocations: 310.3 kB / 0.8097 GB, free: 7.727 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/0.6613, allocations: 31.98 kB / 0.8097 GB, free: 7.695 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.0004937/0.6618, allocations: 332.8 kB / 0.81 GB, free: 7.355 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.662, allocations: 122.5 kB / 0.8101 GB, free: 7.234 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/0.6642, allocations: 1.007 MB / 0.8111 GB, free: 6.219 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.6642, allocations: 8 kB / 0.8111 GB, free: 6.211 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.6642, allocations: 8 kB / 0.8111 GB, free: 6.203 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.6642, allocations: 3.984 kB / 0.8111 GB, free: 6.199 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004623/0.6688, allocations: 3.163 MB / 0.8142 GB, free: 2.883 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.6689, allocations: 12.12 kB / 0.8142 GB, free: 2.871 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005982/0.6695, allocations: 127.7 kB / 0.8143 GB, free: 2.746 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.6695, allocations: 8 kB / 0.8144 GB, free: 2.738 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-05/0.6696, allocations: 27.98 kB / 0.8144 GB, free: 2.711 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-05/0.6696, allocations: 19.92 kB / 0.8144 GB, free: 2.691 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/0.6696, allocations: 11.94 kB / 0.8144 GB, free: 2.68 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002103/0.6717, allocations: 1.35 MB / 0.8157 GB, free: 1.211 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.6722, allocations: 331.4 kB / 0.816 GB, free: 0.8672 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.6723, allocations: 23.94 kB / 0.8161 GB, free: 0.8438 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.6736, allocations: 131.8 kB / 0.8162 GB, free: 0.7148 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.6737, allocations: 63.62 kB / 0.8163 GB, free: 0.6523 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.281e-05/0.6738, allocations: 43.95 kB / 0.8163 GB, free: 0.6094 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.2365/0.9103, allocations: 0.881 MB / 0.8172 GB, free: 218.5 MB / 0.6387 GB Notification: Performance of sort global known variables: time 3.7e-07/0.9104, allocations: 0.5625 kB / 0.8172 GB, free: 218.5 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00153/0.9119, allocations: 302.2 kB / 0.8174 GB, free: 218.5 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.002815/0.9147, allocations: 2.139 MB / 0.8195 GB, free: 217.4 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00254/0.9173, allocations: 1.049 MB / 0.8206 GB, free: 217.2 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.9173, allocations: 1.25 kB / 0.8206 GB, free: 217.2 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008977/0.9182, allocations: 0.5192 MB / 0.8211 GB, free: 217 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00383/0.922, allocations: 0.5384 MB / 0.8216 GB, free: 216.9 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/0.9389, allocations: 10.4 MB / 0.8318 GB, free: 211.4 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.9395, allocations: 1.071 MB / 0.8328 GB, free: 210.7 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001171/0.9407, allocations: 273.5 kB / 0.8331 GB, free: 210.6 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004593/0.9411, allocations: 361.3 kB / 0.8334 GB, free: 210.3 MB / 0.6387 GB Notification: Performance of SimCode: time 6.21e-07/0.9412, allocations: 1.219 kB / 0.8334 GB, free: 210.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5617/1.503, allocations: 30.3 MB / 0.863 GB, free: 189.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/1.503, allocations: 249 kB / 0.8632 GB, free: 189.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.452/3.955, allocations: 11.94 kB / 0.8632 GB, free: 189.1 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)