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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008116/0.0008118, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009202/0.0009202, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9649/0.9649, allocations: 135.3 MB / 426.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005078/0.0005079, allocations: 16 kB / 0.5071 GB, free: 5.203 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1972, allocations: 82.31 MB / 0.5875 GB, free: 3.062 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.496/0.6933, allocations: 176.6 MB / 0.7599 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01021/0.7035, allocations: 6.548 MB / 0.7663 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.7053, allocations: 43.62 kB / 0.7663 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.7069, allocations: 472.8 kB / 0.7668 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004899/0.7118, allocations: 1.676 MB / 0.7684 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002897/0.7147, allocations: 1.076 MB / 0.7695 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00414/0.7189, allocations: 3.215 MB / 0.7726 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.7201, allocations: 0.6871 MB / 0.7733 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001731/0.7218, allocations: 0.9531 MB / 0.7742 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.7228, allocations: 0.7352 MB / 0.7749 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.723, allocations: 40 kB / 0.775 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00304/0.726, allocations: 1.216 MB / 0.7762 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003433/0.7264, allocations: 306.9 kB / 0.7765 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002857/0.7267, allocations: 233.1 kB / 0.7767 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.7285, allocations: 1.617 MB / 0.7783 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.7285, allocations: 0 / 0.7783 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7285, allocations: 0 / 0.7783 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.175e-05/0.7286, allocations: 4 kB / 0.7783 GB, free: 9.676 MB / 0.5919 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.002838/0.7314, allocations: 1.404 MB / 0.7796 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.7315, allocations: 13.09 kB / 0.7796 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.7316, allocations: 110.5 kB / 0.7798 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002693/0.7343, allocations: 0.5996 MB / 0.7803 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002027/0.7363, allocations: 0.9525 MB / 0.7813 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001044/0.7374, allocations: 317 kB / 0.7816 GB, free: 6.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.7375, allocations: 68 kB / 0.7816 GB, free: 6.113 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.74, allocations: 1.144 MB / 0.7828 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.74, allocations: 0 / 0.7828 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.893e-05/0.7401, allocations: 28 kB / 0.7828 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.034e-05/0.7402, allocations: 41.23 kB / 0.7828 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003042/0.7432, allocations: 1.25 MB / 0.784 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.7485, allocations: 3.257 MB / 0.7872 GB, free: 288 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.75, allocations: 0.6958 MB / 0.7879 GB, free: 15.58 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007256/0.7508, allocations: 427.4 kB / 0.7883 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007702/0.7516, allocations: 1.017 MB / 0.7893 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009072/0.7525, allocations: 0.526 MB / 0.7898 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.615e-06/0.7525, allocations: 0 / 0.7898 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.002735/0.7552, allocations: 1.236 MB / 0.791 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.7553, allocations: 144.9 kB / 0.7912 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0018/0.7571, allocations: 1.208 MB / 0.7923 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.438e-05/0.7572, allocations: 37.7 kB / 0.7924 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003612/0.7576, allocations: 437.4 kB / 0.7928 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.7577, allocations: 193.3 kB / 0.793 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.7578, allocations: 8 kB / 0.793 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.7579, allocations: 333.9 kB / 0.7933 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.7591, allocations: 492.8 kB / 0.7938 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.7604, allocations: 0.6367 MB / 0.7944 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.7617, allocations: 0.5346 MB / 0.7949 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.7617, allocations: 3.938 kB / 0.7949 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002934/0.7646, allocations: 1.283 MB / 0.7962 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.771e-05/0.7647, allocations: 37.69 kB / 0.7962 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.7647, allocations: 4 kB / 0.7962 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.7647, allocations: 4 kB / 0.7962 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009383/0.7657, allocations: 216 kB / 0.7964 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.7657, allocations: 4 kB / 0.7964 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.7672, allocations: 312.4 kB / 0.7967 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.7674, allocations: 35.97 kB / 0.7968 GB, free: 6.117 MB / 0.6075 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 ($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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005621/0.7679, allocations: 327.2 kB / 0.7971 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.7681, allocations: 122.6 kB / 0.7972 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/0.7702, allocations: 1.012 MB / 0.7982 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.7702, allocations: 7.984 kB / 0.7982 GB, free: 4.633 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.7702, allocations: 4 kB / 0.7982 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.7702, allocations: 0 / 0.7982 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00474/0.775, allocations: 3.179 MB / 0.8013 GB, free: 1.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.775, allocations: 8 kB / 0.8013 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005807/0.7756, allocations: 128.2 kB / 0.8014 GB, free: 1.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.488e-05/0.7756, allocations: 8 kB / 0.8014 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.838e-05/0.7757, allocations: 27.98 kB / 0.8015 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.442e-05/0.7757, allocations: 15.89 kB / 0.8015 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/0.7757, allocations: 8 kB / 0.8015 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.7778, allocations: 1.362 MB / 0.8028 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005431/0.7783, allocations: 335.2 kB / 0.8031 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/0.7786, allocations: 27.98 kB / 0.8032 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.7797, allocations: 119.9 kB / 0.8033 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.7799, allocations: 67.72 kB / 0.8033 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-05/0.78, allocations: 43.97 kB / 0.8034 GB, free: 15.03 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001603/0.7816, allocations: 0.8755 MB / 0.8042 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7816, allocations: 0 / 0.8042 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001291/0.7829, allocations: 295.9 kB / 0.8045 GB, free: 13.86 MB / 0.6231 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 (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.002978/0.7859, allocations: 2.124 MB / 0.8066 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002328/0.7882, allocations: 1.045 MB / 0.8076 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.7882, allocations: 4 kB / 0.8076 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0008921/0.7891, allocations: 0.5176 MB / 0.8081 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.792, allocations: 0.5396 MB / 0.8086 GB, free: 9.508 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/0.8059, allocations: 7.158 MB / 0.8156 GB, free: 1.98 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006975/0.8066, allocations: 1.073 MB / 0.8167 GB, free: 0.8789 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001213/0.8079, allocations: 280.7 kB / 0.817 GB, free: 0.6055 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005384/0.8084, allocations: 359.3 kB / 0.8173 GB, free: 260 kB / 0.6231 GB Notification: Performance of SimCode: time 5.31e-07/0.8084, allocations: 0 / 0.8173 GB, free: 260 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05039/0.8588, allocations: 30.58 MB / 0.8472 GB, free: 2.09 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/0.859, allocations: 250.8 kB / 0.8474 GB, free: 1.844 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.403/3.262, allocations: 0 / 0.8474 GB, free: 1.844 MB / 0.6544 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) Environment - environmentSimulation: