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.001599/0.001599, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8957/0.8957, allocations: 135.1 MB / 425.5 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 61.38 kB / 0.5054 GB, free: 5.215 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1369, allocations: 80.93 MB / 0.5845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.41/0.5469, allocations: 194 MB / 0.7739 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.009363/0.5563, allocations: 6.94 MB / 0.7807 GB, free: 3.785 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.5575, allocations: 39.75 kB / 0.7807 GB, free: 3.746 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.559, allocations: 0.6869 MB / 0.7814 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00465/0.5636, allocations: 2.33 MB / 0.7837 GB, free: 0.7148 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002843/0.5665, allocations: 1.42 MB / 0.7851 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003035/0.5695, allocations: 2.982 MB / 0.788 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.5706, allocations: 0.8928 MB / 0.7888 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001962/0.5726, allocations: 1.138 MB / 0.7899 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009856/0.5736, allocations: 0.784 MB / 0.7907 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001532/0.5737, allocations: 100 kB / 0.7908 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.577, allocations: 2.054 MB / 0.7928 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003244/0.5773, allocations: 374.9 kB / 0.7932 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005296/0.5778, allocations: 0.583 MB / 0.7937 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00273/0.5806, allocations: 2.384 MB / 0.7961 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.5806, allocations: 0 / 0.7961 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5806, allocations: 3.938 kB / 0.7961 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.657e-05/0.5806, allocations: 0 / 0.7961 GB, free: 4.023 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.002984/0.5836, allocations: 1.633 MB / 0.7977 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.5837, allocations: 12.03 kB / 0.7977 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.5838, allocations: 110.5 kB / 0.7978 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002895/0.5867, allocations: 0.5331 MB / 0.7983 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.5886, allocations: 0.9829 MB / 0.7993 GB, free: 0.6484 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001191/0.5898, allocations: 285 kB / 0.7995 GB, free: 376 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.5899, allocations: 68 kB / 0.7996 GB, free: 308 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002371/0.5923, allocations: 1.124 MB / 0.8007 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.5923, allocations: 4 kB / 0.8007 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.853e-05/0.5924, allocations: 24 kB / 0.8007 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.701e-05/0.5925, allocations: 37.31 kB / 0.8008 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003187/0.5957, allocations: 1.203 MB / 0.8019 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005344/0.601, allocations: 3.207 MB / 0.8051 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.6027, allocations: 0.6857 MB / 0.8057 GB, free: 9.898 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007852/0.6035, allocations: 425.3 kB / 0.8061 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008608/0.6044, allocations: 1.021 MB / 0.8071 GB, free: 8.238 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009799/0.6054, allocations: 0.5182 MB / 0.8076 GB, free: 7.699 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 2.505e-06/0.6054, allocations: 3.938 kB / 0.8077 GB, free: 7.695 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.002955/0.6083, allocations: 1.221 MB / 0.8088 GB, free: 6.461 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.565e-05/0.6084, allocations: 140.9 kB / 0.809 GB, free: 6.293 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/0.6103, allocations: 1.196 MB / 0.8101 GB, free: 5.082 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.151e-05/0.6104, allocations: 41.7 kB / 0.8102 GB, free: 5.035 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003343/0.6107, allocations: 441.4 kB / 0.8106 GB, free: 4.602 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.6109, allocations: 189.3 kB / 0.8108 GB, free: 4.414 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/0.6112, allocations: 146 kB / 0.8109 GB, free: 4.266 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.6113, allocations: 330 kB / 0.8112 GB, free: 3.938 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.6126, allocations: 456.9 kB / 0.8117 GB, free: 3.492 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.6141, allocations: 0.6132 MB / 0.8123 GB, free: 2.832 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002119/0.6163, allocations: 0.9535 MB / 0.8132 GB, free: 1.824 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.6163, allocations: 0 / 0.8132 GB, free: 1.824 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003315/0.6196, allocations: 1.228 MB / 0.8144 GB, free: 0.5859 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.823e-05/0.6196, allocations: 39.72 kB / 0.8144 GB, free: 0.543 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.6197, allocations: 4.281 kB / 0.8144 GB, free: 0.5391 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.6197, allocations: 15.94 kB / 0.8145 GB, free: 0.5234 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009781/0.6207, allocations: 191.7 kB / 0.8146 GB, free: 344 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.6207, allocations: 8 kB / 0.8147 GB, free: 336 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.6223, allocations: 272.5 kB / 0.8149 GB, free: 64 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.55e-05/0.6224, allocations: 39.97 kB / 0.815 GB, free: 24 kB / 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.0005253/0.6229, allocations: 331.1 kB / 0.8153 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.6232, allocations: 118.6 kB / 0.8154 GB, free: 15.57 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.6252, allocations: 0.997 MB / 0.8164 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.6253, allocations: 8.5 kB / 0.8164 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.6253, allocations: 4 kB / 0.8164 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.6253, allocations: 3.938 kB / 0.8164 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004467/0.6298, allocations: 3.162 MB / 0.8195 GB, free: 11.23 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.6298, allocations: 8.094 kB / 0.8195 GB, free: 11.22 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000587/0.6304, allocations: 123.8 kB / 0.8196 GB, free: 11.1 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.739e-06/0.6304, allocations: 11.94 kB / 0.8196 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.343e-05/0.6305, allocations: 27.98 kB / 0.8196 GB, free: 11.06 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009e-05/0.6305, allocations: 11.94 kB / 0.8196 GB, free: 11.05 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.6305, allocations: 12 kB / 0.8196 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.6325, allocations: 1.339 MB / 0.821 GB, free: 9.578 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004452/0.633, allocations: 323.4 kB / 0.8213 GB, free: 9.242 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.6332, allocations: 27.98 kB / 0.8213 GB, free: 9.215 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.6343, allocations: 107.9 kB / 0.8214 GB, free: 9.109 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.6344, allocations: 67.69 kB / 0.8215 GB, free: 9.043 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/0.6345, allocations: 35.97 kB / 0.8215 GB, free: 9.008 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001478/0.636, allocations: 0.8677 MB / 0.8223 GB, free: 8.133 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/0.636, allocations: 0 / 0.8223 GB, free: 8.133 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009604/0.637, allocations: 299.8 kB / 0.8226 GB, free: 7.84 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.00278/0.6397, allocations: 2.135 MB / 0.8247 GB, free: 5.598 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002517/0.6423, allocations: 1.052 MB / 0.8257 GB, free: 4.535 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.6423, allocations: 4.125 kB / 0.8257 GB, free: 4.531 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009082/0.6432, allocations: 0.5085 MB / 0.8262 GB, free: 4.012 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002659/0.6459, allocations: 0.5633 MB / 0.8268 GB, free: 3.488 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/0.6619, allocations: 9.979 MB / 0.8365 GB, free: 8.973 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.6625, allocations: 1.069 MB / 0.8376 GB, free: 7.863 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001105/0.6636, allocations: 276 kB / 0.8378 GB, free: 7.594 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000482/0.6641, allocations: 363.2 kB / 0.8382 GB, free: 7.238 MB / 0.6544 GB Notification: Performance of SimCode: time 6.91e-07/0.6641, allocations: 4 kB / 0.8382 GB, free: 7.234 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7752/1.439, allocations: 31.52 MB / 0.869 GB, free: 220.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.451/10.89, allocations: 7.5 kB / 0.869 GB, free: 220.2 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)