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.001263/0.001263, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001429/0.001429, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.346/2.346, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.661/1.661, allocations: 135.2 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000576/0.0005766, allocations: 12.5 kB / 0.5069 GB, free: 5.121 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3172, allocations: 82.32 MB / 0.5873 GB, free: 2.984 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 1.042/1.359, allocations: 162 MB / 0.7454 GB, free: 9.395 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02094/1.38, allocations: 6.281 MB / 0.7516 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002973/1.383, allocations: 39.69 kB / 0.7516 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003535/1.387, allocations: 0.666 MB / 0.7523 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.008845/1.396, allocations: 1.655 MB / 0.7539 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.007872/1.404, allocations: 1.532 MB / 0.7554 GB, free: 344 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006023/1.41, allocations: 1.716 MB / 0.7571 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/1.412, allocations: 0.7171 MB / 0.7578 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003363/1.415, allocations: 0.9188 MB / 0.7587 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001662/1.417, allocations: 0.5329 MB / 0.7592 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002166/1.417, allocations: 44 kB / 0.7592 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0051/1.422, allocations: 1.166 MB / 0.7604 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005863/1.423, allocations: 283.1 kB / 0.7606 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005987/1.423, allocations: 245.1 kB / 0.7609 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003717/1.427, allocations: 1.54 MB / 0.7624 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/1.427, allocations: 0 / 0.7624 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.756e-06/1.427, allocations: 4 kB / 0.7624 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.15e-05/1.427, allocations: 0 / 0.7624 GB, free: 9.168 MB / 0.5762 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.004708/1.432, allocations: 1.388 MB / 0.7637 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/1.432, allocations: 9.094 kB / 0.7637 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002293/1.432, allocations: 114.5 kB / 0.7638 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005199/1.438, allocations: 0.6035 MB / 0.7644 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003238/1.441, allocations: 0.9096 MB / 0.7653 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00191/1.443, allocations: 321 kB / 0.7656 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002609/1.443, allocations: 71.98 kB / 0.7657 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/1.446, allocations: 1.14 MB / 0.7668 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/1.446, allocations: 7.938 kB / 0.7668 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.916e-05/1.446, allocations: 24 kB / 0.7668 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.745e-05/1.446, allocations: 33.31 kB / 0.7669 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003444/1.45, allocations: 1.254 MB / 0.7681 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006724/1.456, allocations: 3.261 MB / 0.7713 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/1.458, allocations: 0.6997 MB / 0.772 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006373/1.459, allocations: 0.6691 MB / 0.7726 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009914/1.46, allocations: 0.5221 MB / 0.7731 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=57): time 2.264e-06/1.46, allocations: 3.938 kB / 0.7731 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of matching and sorting (n=57): time 0.003026/1.463, allocations: 1.316 MB / 0.7744 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.612e-05/1.463, allocations: 144.9 kB / 0.7745 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001989/1.465, allocations: 1.215 MB / 0.7757 GB, free: 11 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/1.465, allocations: 41.64 kB / 0.7758 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005192/1.466, allocations: 445.4 kB / 0.7762 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002445/1.466, allocations: 189.3 kB / 0.7764 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/1.466, allocations: 8 kB / 0.7764 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001716/1.466, allocations: 330 kB / 0.7767 GB, free: 9.992 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001811/1.468, allocations: 484.9 kB / 0.7772 GB, free: 9.52 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002056/1.47, allocations: 0.6367 MB / 0.7778 GB, free: 8.836 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/1.472, allocations: 0.5388 MB / 0.7783 GB, free: 8.297 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/1.472, allocations: 4 kB / 0.7783 GB, free: 8.293 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004595/1.477, allocations: 1.279 MB / 0.7796 GB, free: 7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.945e-05/1.477, allocations: 40.03 kB / 0.7796 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/1.477, allocations: 4 kB / 0.7796 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.979e-05/1.477, allocations: 8 kB / 0.7796 GB, free: 6.945 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/1.478, allocations: 212 kB / 0.7798 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.305e-05/1.478, allocations: 19.67 kB / 0.7798 GB, free: 6.723 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002304/1.481, allocations: 305.8 kB / 0.7801 GB, free: 6.426 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/1.481, allocations: 39.97 kB / 0.7802 GB, free: 6.387 MB / 0.5919 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.000824/1.482, allocations: 331.2 kB / 0.7805 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/1.482, allocations: 118.5 kB / 0.7806 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002883/1.485, allocations: 1.013 MB / 0.7816 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/1.485, allocations: 8 kB / 0.7816 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/1.485, allocations: 0 / 0.7816 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/1.485, allocations: 3.984 kB / 0.7816 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006679/1.492, allocations: 3.183 MB / 0.7847 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/1.492, allocations: 8 kB / 0.7847 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007758/1.492, allocations: 124 kB / 0.7848 GB, free: 1.43 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.412e-05/1.492, allocations: 12 kB / 0.7848 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-05/1.492, allocations: 23.98 kB / 0.7849 GB, free: 1.395 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.577e-05/1.493, allocations: 12 kB / 0.7849 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.665e-05/1.493, allocations: 11.94 kB / 0.7849 GB, free: 1.371 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003472/1.496, allocations: 1.743 MB / 0.7866 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000842/1.497, allocations: 331.3 kB / 0.7869 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002312/1.497, allocations: 31.98 kB / 0.7869 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/1.499, allocations: 131.8 kB / 0.7871 GB, free: 14.85 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/1.499, allocations: 59.78 kB / 0.7871 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/1.499, allocations: 39.97 kB / 0.7872 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002303/1.501, allocations: 0.8833 MB / 0.788 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.51e-07/1.501, allocations: 0 / 0.788 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001355/1.503, allocations: 299.9 kB / 0.7883 GB, free: 13.57 MB / 0.6075 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.004347/1.507, allocations: 4.65 MB / 0.7928 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002743/1.51, allocations: 1.045 MB / 0.7939 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/1.51, allocations: 4 kB / 0.7939 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001057/1.511, allocations: 0.5126 MB / 0.7944 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/1.514, allocations: 0.5185 MB / 0.7949 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/1.529, allocations: 9.035 MB / 0.8037 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009499/1.53, allocations: 1.096 MB / 0.8048 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00131/1.531, allocations: 277.6 kB / 0.805 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005274/1.532, allocations: 362.6 kB / 0.8054 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of SimCode: time 1.032e-06/1.532, allocations: 3.938 kB / 0.8054 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06171/1.593, allocations: 30.85 MB / 0.8355 GB, free: 13 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002319/1.594, allocations: 241.4 kB / 0.8357 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.339/4.933, allocations: 3.938 kB / 0.8357 GB, free: 12.75 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: