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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 176.2 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8106/0.8106, allocations: 133.6 MB / 141.6 MB, free: 2.918 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.712/1.712, allocations: 221.5 MB / 395.4 MB, free: 10.8 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.001214/0.001213, allocations: 100.5 kB / 478.2 MB, free: 1.344 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.071e-05/2.074e-05, allocations: 4 kB / 0.5536 GB, free: 8.977 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6063/0.6063, allocations: 82.29 MB / 0.6339 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.444/7.05, allocations: 2.117 GB / 2.751 GB, free: 198.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/7.051, allocations: 83.95 kB / 2.751 GB, free: 198.4 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 2.24/9.291, allocations: 0.6535 GB / 3.405 GB, free: 59.58 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.064e-06/9.291, allocations: 4 kB / 3.405 GB, free: 59.57 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001625/9.291, allocations: 36.17 kB / 3.405 GB, free: 59.54 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.005496/9.297, allocations: 1.477 MB / 3.406 GB, free: 58 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/9.297, allocations: 16.02 kB / 3.406 GB, free: 57.99 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003049/9.3, allocations: 0.5326 MB / 3.407 GB, free: 57.46 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02681/9.327, allocations: 13.13 MB / 3.419 GB, free: 44.16 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001465/9.328, allocations: 289 kB / 3.42 GB, free: 43.88 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003855/9.329, allocations: 47.95 kB / 3.42 GB, free: 43.83 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001879/9.33, allocations: 0.7179 MB / 3.42 GB, free: 43.11 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002075/9.333, allocations: 0.891 MB / 3.421 GB, free: 42.18 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/9.333, allocations: 7.938 kB / 3.421 GB, free: 42.17 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/9.333, allocations: 0 / 3.421 GB, free: 42.17 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.007e-05/9.333, allocations: 33.3 kB / 3.421 GB, free: 42.14 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006907/9.34, allocations: 3.105 MB / 3.424 GB, free: 38.97 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008592/9.341, allocations: 0.5507 MB / 3.425 GB, free: 38.41 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004218/9.341, allocations: 346.9 kB / 3.425 GB, free: 38.07 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007573/9.342, allocations: 1.029 MB / 3.426 GB, free: 36.82 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006306/9.342, allocations: 481.8 kB / 3.427 GB, free: 36.32 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=57): time 3.256e-06/9.342, allocations: 0 / 3.427 GB, free: 36.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=57): time 0.001957/9.344, allocations: 0.7919 MB / 3.427 GB, free: 35.52 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/9.345, allocations: 136.9 kB / 3.428 GB, free: 35.36 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008871/9.345, allocations: 0.649 MB / 3.428 GB, free: 34.7 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001485/9.346, allocations: 29.7 kB / 3.428 GB, free: 34.66 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003679/9.346, allocations: 460.2 kB / 3.429 GB, free: 34.21 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/9.346, allocations: 185.2 kB / 3.429 GB, free: 34.02 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.533e-05/9.346, allocations: 0 / 3.429 GB, free: 34.02 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001168/9.346, allocations: 330 kB / 3.429 GB, free: 33.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/9.347, allocations: 301.2 kB / 3.43 GB, free: 33.4 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005803/9.347, allocations: 0.4967 MB / 3.43 GB, free: 32.83 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008779/9.348, allocations: 396.5 kB / 3.43 GB, free: 32.44 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/9.348, allocations: 0 / 3.43 GB, free: 32.44 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001909/9.35, allocations: 0.9165 MB / 3.431 GB, free: 31.51 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.127e-05/9.35, allocations: 37.7 kB / 3.431 GB, free: 31.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/9.35, allocations: 4.375 kB / 3.431 GB, free: 31.46 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.872e-05/9.35, allocations: 8 kB / 3.431 GB, free: 31.46 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/9.351, allocations: 219.7 kB / 3.432 GB, free: 31.24 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/9.351, allocations: 8 kB / 3.432 GB, free: 31.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/9.353, allocations: 263.3 kB / 3.432 GB, free: 30.98 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/9.353, allocations: 47.97 kB / 3.432 GB, free: 30.93 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.0002992/9.354, allocations: 159.7 kB / 3.432 GB, free: 30.76 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001505/9.355, allocations: 0.7583 MB / 3.433 GB, free: 30 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002321/9.355, allocations: 94.88 kB / 3.433 GB, free: 29.91 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/9.357, allocations: 0.854 MB / 3.434 GB, free: 29.04 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/9.357, allocations: 8 kB / 3.434 GB, free: 29.04 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/9.357, allocations: 0 / 3.434 GB, free: 29.04 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/9.357, allocations: 7.984 kB / 3.434 GB, free: 29.03 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/9.361, allocations: 2.948 MB / 3.437 GB, free: 25.94 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/9.361, allocations: 16.02 kB / 3.437 GB, free: 25.93 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00061/9.362, allocations: 123.8 kB / 3.437 GB, free: 25.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.379e-05/9.362, allocations: 8 kB / 3.437 GB, free: 25.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/9.362, allocations: 19.98 kB / 3.437 GB, free: 25.78 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.708e-06/9.362, allocations: 19.92 kB / 3.437 GB, free: 25.76 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/9.362, allocations: 15.94 kB / 3.437 GB, free: 25.74 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/9.364, allocations: 1.555 MB / 3.438 GB, free: 23.89 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000493/9.364, allocations: 307.7 kB / 3.439 GB, free: 23.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001871/9.364, allocations: 15.98 kB / 3.439 GB, free: 23.56 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/9.365, allocations: 123.9 kB / 3.439 GB, free: 23.44 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/9.366, allocations: 67.73 kB / 3.439 GB, free: 23.37 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/9.366, allocations: 39.97 kB / 3.439 GB, free: 23.33 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.000653/9.366, allocations: 0.5031 MB / 3.439 GB, free: 22.83 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.01e-07/9.366, allocations: 0 / 3.439 GB, free: 22.83 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001555/9.368, allocations: 411.3 kB / 3.44 GB, free: 22.43 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.00434/9.372, allocations: 5.85 MB / 3.445 GB, free: 16.27 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001165/9.373, allocations: 0.7937 MB / 3.446 GB, free: 15.47 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/9.373, allocations: 4 kB / 3.446 GB, free: 15.47 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005142/9.374, allocations: 461.2 kB / 3.447 GB, free: 15.01 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/9.376, allocations: 357.8 kB / 3.447 GB, free: 14.67 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004506/9.381, allocations: 1.707 MB / 3.449 GB, free: 12.82 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007382/9.381, allocations: 1.088 MB / 3.45 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001249/9.383, allocations: 249.8 kB / 3.45 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005614/9.383, allocations: 347.3 kB / 3.45 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of SimCode: time 1.413e-06/9.383, allocations: 0 / 3.45 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5562/9.939, allocations: 33.79 MB / 3.483 GB, free: 126.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/9.94, allocations: 175.9 kB / 3.483 GB, free: 126.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.09/13.03, allocations: 0 / 3.483 GB, free: 126.4 MB / 0.698 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/linux/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)