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.0008643/0.0008643, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004965/0.004965, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.229/1.229, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8842/0.8842, allocations: 135.3 MB / 426.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002995/0.0002996, allocations: 12 kB / 0.5077 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1423, allocations: 82.31 MB / 0.5881 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4553/0.5977, allocations: 189.1 MB / 0.7727 GB, free: 15.17 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01032/0.6081, allocations: 6.909 MB / 0.7795 GB, free: 8.246 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.6094, allocations: 43.69 kB / 0.7795 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001683/0.6111, allocations: 0.5554 MB / 0.7801 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00546/0.6166, allocations: 2.179 MB / 0.7822 GB, free: 5.457 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002934/0.6196, allocations: 1.283 MB / 0.7835 GB, free: 4.203 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003944/0.6235, allocations: 3.738 MB / 0.7871 GB, free: 472 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.6248, allocations: 0.7911 MB / 0.7879 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.6267, allocations: 0.9607 MB / 0.7888 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/0.6285, allocations: 0.786 MB / 0.7896 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000181/0.6287, allocations: 47.92 kB / 0.7896 GB, free: 13.87 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003808/0.6325, allocations: 2.213 MB / 0.7918 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000394/0.6329, allocations: 302.9 kB / 0.7921 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007065/0.6336, allocations: 0.5534 MB / 0.7926 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003274/0.6369, allocations: 2.391 MB / 0.795 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.6369, allocations: 4 kB / 0.795 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6369, allocations: 0 / 0.795 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.809e-05/0.6369, allocations: 0 / 0.795 GB, free: 8.387 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.003302/0.6402, allocations: 1.394 MB / 0.7963 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.6403, allocations: 8.031 kB / 0.7963 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001958/0.6405, allocations: 114.5 kB / 0.7964 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003107/0.6436, allocations: 0.5996 MB / 0.797 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.6458, allocations: 0.9947 MB / 0.798 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00129/0.6471, allocations: 313 kB / 0.7983 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.6472, allocations: 71.94 kB / 0.7984 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00262/0.6499, allocations: 1.159 MB / 0.7995 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.6499, allocations: 4 kB / 0.7995 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.625e-05/0.65, allocations: 24 kB / 0.7995 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.98e-05/0.65, allocations: 37.25 kB / 0.7996 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003414/0.6535, allocations: 1.25 MB / 0.8008 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/0.6595, allocations: 3.248 MB / 0.8039 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.6614, allocations: 0.7047 MB / 0.8046 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008771/0.6623, allocations: 432.4 kB / 0.805 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009103/0.6632, allocations: 1.025 MB / 0.806 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/0.6643, allocations: 0.5182 MB / 0.8066 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 2.946e-06/0.6643, allocations: 0 / 0.8066 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.00313/0.6674, allocations: 1.248 MB / 0.8078 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.6675, allocations: 144.9 kB / 0.8079 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.6697, allocations: 1.219 MB / 0.8091 GB, free: 9.367 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 9.99e-05/0.6698, allocations: 37.7 kB / 0.8091 GB, free: 9.324 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.000393/0.6702, allocations: 433.4 kB / 0.8096 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.6704, allocations: 193.3 kB / 0.8097 GB, free: 8.707 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.6705, allocations: 53.69 kB / 0.8098 GB, free: 8.648 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6707, allocations: 333.9 kB / 0.8101 GB, free: 8.316 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.6721, allocations: 484.9 kB / 0.8106 GB, free: 7.844 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.6736, allocations: 0.6522 MB / 0.8112 GB, free: 7.145 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.6758, allocations: 0.9731 MB / 0.8122 GB, free: 6.113 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6758, allocations: 0 / 0.8122 GB, free: 6.113 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003387/0.6792, allocations: 1.287 MB / 0.8134 GB, free: 4.812 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.495e-05/0.6793, allocations: 41.69 kB / 0.8135 GB, free: 4.766 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.6793, allocations: 4 kB / 0.8135 GB, free: 4.762 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.6793, allocations: 8.219 kB / 0.8135 GB, free: 4.754 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.6804, allocations: 215.7 kB / 0.8137 GB, free: 4.543 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.6804, allocations: 7.984 kB / 0.8137 GB, free: 4.535 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.6821, allocations: 298.9 kB / 0.814 GB, free: 4.242 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-05/0.6822, allocations: 35.97 kB / 0.814 GB, free: 4.207 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.000487/0.6827, allocations: 331.7 kB / 0.8143 GB, free: 3.867 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001999/0.6829, allocations: 114.6 kB / 0.8144 GB, free: 3.754 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002229/0.6852, allocations: 1.013 MB / 0.8154 GB, free: 2.723 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.6852, allocations: 12.02 kB / 0.8154 GB, free: 2.711 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.6852, allocations: 4 kB / 0.8154 GB, free: 2.707 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.6852, allocations: 0 / 0.8154 GB, free: 2.707 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004897/0.6901, allocations: 3.179 MB / 0.8185 GB, free: 15.38 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.6901, allocations: 12.47 kB / 0.8185 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005882/0.6907, allocations: 123.8 kB / 0.8187 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/0.6908, allocations: 8 kB / 0.8187 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.419e-05/0.6908, allocations: 27.98 kB / 0.8187 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-05/0.6908, allocations: 11.94 kB / 0.8187 GB, free: 15.2 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/0.6909, allocations: 15.94 kB / 0.8187 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.693, allocations: 1.359 MB / 0.82 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004989/0.6935, allocations: 327.4 kB / 0.8204 GB, free: 13.37 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.6937, allocations: 23.98 kB / 0.8204 GB, free: 13.34 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.6949, allocations: 131.9 kB / 0.8205 GB, free: 13.21 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.6951, allocations: 59.62 kB / 0.8206 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.543e-05/0.6951, allocations: 43.97 kB / 0.8206 GB, free: 13.11 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001634/0.6968, allocations: 0.8911 MB / 0.8215 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6968, allocations: 0 / 0.8215 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001025/0.6978, allocations: 295.8 kB / 0.8218 GB, free: 11.93 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.003014/0.7008, allocations: 2.138 MB / 0.8238 GB, free: 9.676 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002519/0.7034, allocations: 1.056 MB / 0.8249 GB, free: 8.609 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.7034, allocations: 0 / 0.8249 GB, free: 8.609 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009573/0.7044, allocations: 0.5177 MB / 0.8254 GB, free: 8.082 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003888/0.7083, allocations: 0.5344 MB / 0.8259 GB, free: 7.566 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01902/0.7273, allocations: 10.41 MB / 0.8361 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007001/0.728, allocations: 1.065 MB / 0.8371 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001191/0.7292, allocations: 279.9 kB / 0.8374 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/0.7298, allocations: 359.3 kB / 0.8377 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of SimCode: time 7.01e-07/0.7298, allocations: 3.938 kB / 0.8377 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.725/3.455, allocations: 30.33 MB / 0.8673 GB, free: 215.5 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/3.455, allocations: 250.9 kB / 0.8676 GB, free: 215.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.429/5.884, allocations: 2.531 kB / 0.8676 GB, free: 215.3 MB / 0.67 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/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)