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.001963/0.001963, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8617/0.8617, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.717/1.717, allocations: 221.3 MB / 400.4 MB, free: 5.809 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009225/0.0009228, allocations: 101.6 kB / 483.3 MB, free: 5.809 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.612e-05/6.644e-05, allocations: 4.156 kB / 0.5601 GB, free: 87.9 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2272, allocations: 82.31 MB / 0.6405 GB, free: 7.711 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.334/6.562, allocations: 2.118 GB / 2.758 GB, free: 71.03 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/6.562, allocations: 85.55 kB / 2.758 GB, free: 70.95 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 2.757/9.319, allocations: 0.6601 GB / 3.418 GB, free: 97.93 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.783e-06/9.319, allocations: 0 / 3.418 GB, free: 97.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001642/9.319, allocations: 33.31 kB / 3.418 GB, free: 97.92 MB / 0.6823 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.005669/9.325, allocations: 1.488 MB / 3.42 GB, free: 97.21 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/9.325, allocations: 11 kB / 3.42 GB, free: 97.21 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003715/9.326, allocations: 108.7 kB / 3.42 GB, free: 97.18 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003132/9.329, allocations: 0.5386 MB / 3.421 GB, free: 97.11 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03103/9.36, allocations: 13.16 MB / 3.433 GB, free: 96.4 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001251/9.361, allocations: 316.6 kB / 3.434 GB, free: 96.4 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004052/9.362, allocations: 67.91 kB / 3.434 GB, free: 96.4 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/9.364, allocations: 0.9796 MB / 3.435 GB, free: 96.26 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/9.364, allocations: 0 / 3.435 GB, free: 96.26 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/9.364, allocations: 27.53 kB / 3.435 GB, free: 96.26 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.848e-05/9.364, allocations: 36.48 kB / 3.435 GB, free: 96.26 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/9.365, allocations: 0.7954 MB / 3.436 GB, free: 96.25 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007092/9.373, allocations: 3.316 MB / 3.439 GB, free: 95.37 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/9.374, allocations: 0.5805 MB / 3.439 GB, free: 95.34 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004954/9.374, allocations: 369.1 kB / 3.44 GB, free: 95.34 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008083/9.375, allocations: 1.028 MB / 3.441 GB, free: 94.21 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007161/9.376, allocations: 482 kB / 3.441 GB, free: 94.11 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=57): time 3.416e-06/9.376, allocations: 3.75 kB / 3.441 GB, free: 94.11 MB / 0.6823 GB Notification: Performance of matching and sorting (n=57): time 0.001967/9.378, allocations: 0.8465 MB / 3.442 GB, free: 93.97 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/9.378, allocations: 140.5 kB / 3.442 GB, free: 93.82 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/9.379, allocations: 0.9432 MB / 3.443 GB, free: 93.67 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.000126/9.379, allocations: 41.02 kB / 3.443 GB, free: 93.64 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003434/9.38, allocations: 445.1 kB / 3.443 GB, free: 93.52 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/9.38, allocations: 190.2 kB / 3.444 GB, free: 93.43 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/9.38, allocations: 10.44 kB / 3.444 GB, free: 93.43 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.772e-05/9.38, allocations: 332.4 kB / 3.444 GB, free: 93.12 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/9.381, allocations: 318.8 kB / 3.444 GB, free: 93.12 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00065/9.381, allocations: 0.5166 MB / 3.445 GB, free: 92.91 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005841/9.382, allocations: 379.9 kB / 3.445 GB, free: 92.88 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/9.382, allocations: 3.062 kB / 3.445 GB, free: 92.88 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001643/9.384, allocations: 0.961 MB / 3.446 GB, free: 92.75 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/9.384, allocations: 38.09 kB / 3.446 GB, free: 92.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/9.384, allocations: 3.906 kB / 3.446 GB, free: 92.72 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/9.384, allocations: 10.84 kB / 3.446 GB, free: 92.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009965/9.385, allocations: 214.7 kB / 3.446 GB, free: 92.72 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/9.385, allocations: 14.94 kB / 3.446 GB, free: 92.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/9.387, allocations: 312.9 kB / 3.447 GB, free: 92.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/9.387, allocations: 47.39 kB / 3.447 GB, free: 92.7 MB / 0.6823 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.0002542/9.387, allocations: 177.1 kB / 3.447 GB, free: 92.55 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002916/9.387, allocations: 114.5 kB / 3.447 GB, free: 92.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/9.389, allocations: 0.9405 MB / 3.448 GB, free: 92.41 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/9.389, allocations: 10.12 kB / 3.448 GB, free: 92.41 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/9.389, allocations: 0 / 3.448 GB, free: 92.41 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/9.389, allocations: 7.656 kB / 3.448 GB, free: 92.41 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004354/9.393, allocations: 3.151 MB / 3.451 GB, free: 91.65 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/9.393, allocations: 5.625 kB / 3.451 GB, free: 91.65 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006178/9.394, allocations: 129.6 kB / 3.451 GB, free: 91.65 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.68e-05/9.394, allocations: 11.28 kB / 3.451 GB, free: 91.65 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.777e-05/9.394, allocations: 28.36 kB / 3.451 GB, free: 91.65 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.62e-05/9.394, allocations: 19.38 kB / 3.451 GB, free: 91.65 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/9.394, allocations: 10.09 kB / 3.451 GB, free: 91.65 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/9.396, allocations: 1.678 MB / 3.453 GB, free: 90.59 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006697/9.397, allocations: 340.4 kB / 3.453 GB, free: 90.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002693/9.397, allocations: 28.89 kB / 3.453 GB, free: 90.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/9.398, allocations: 123.1 kB / 3.453 GB, free: 90.43 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/9.398, allocations: 61.8 kB / 3.453 GB, free: 90.43 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.274e-05/9.398, allocations: 47.44 kB / 3.453 GB, free: 90.43 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001043/9.399, allocations: 0.7461 MB / 3.454 GB, free: 90.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.71e-07/9.399, allocations: 0 / 3.454 GB, free: 90.3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0018/9.401, allocations: 433.1 kB / 3.455 GB, free: 90.29 MB / 0.6823 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.005017/9.406, allocations: 5.794 MB / 3.46 GB, free: 86.29 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001308/9.408, allocations: 0.84 MB / 3.461 GB, free: 86.21 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/9.408, allocations: 3.594 kB / 3.461 GB, free: 86.21 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000574/9.408, allocations: 483.9 kB / 3.462 GB, free: 86.14 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002802/9.411, allocations: 0.5259 MB / 3.462 GB, free: 86.13 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004161/9.415, allocations: 1.82 MB / 3.464 GB, free: 85.49 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006505/9.416, allocations: 1.086 MB / 3.465 GB, free: 84.79 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001309/9.417, allocations: 287.2 kB / 3.465 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005739/9.418, allocations: 358.9 kB / 3.465 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of SimCode: time 1.633e-06/9.418, allocations: 0 / 3.465 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09378/9.512, allocations: 55.25 MB / 3.519 GB, free: 71.57 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/9.512, allocations: 223.7 kB / 3.52 GB, free: 71.33 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.858/13.37, allocations: 0 / 3.52 GB, free: 71.33 MB / 0.6823 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)