Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances",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.001117/0.001117, allocations: 108 kB / 15.61 MB, free: 152 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.001146/0.001146, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7766/0.7766, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 63.78 kB / 0.5019 GB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4051/0.4066, allocations: 80.2 MB / 0.5802 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sensors.Examples.TraceSubstances): time 0.2131/0.6197, allocations: 195.1 MB / 0.7707 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0173/0.6371, allocations: 14.31 MB / 0.7847 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.6385, allocations: 39.75 kB / 0.7847 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.6401, allocations: 0.4968 MB / 0.7852 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.004683/0.6448, allocations: 1.889 MB / 0.787 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002112/0.6469, allocations: 0.8629 MB / 0.7879 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0028/0.6497, allocations: 2.565 MB / 0.7904 GB, free: 9.531 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001343/0.6511, allocations: 1.115 MB / 0.7915 GB, free: 8.395 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003726/0.6548, allocations: 1.591 MB / 0.793 GB, free: 6.816 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.6561, allocations: 0.9249 MB / 0.7939 GB, free: 5.891 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001697/0.6563, allocations: 104 kB / 0.794 GB, free: 5.789 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002105/0.6584, allocations: 1.099 MB / 0.7951 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004474/0.6589, allocations: 0.4948 MB / 0.7956 GB, free: 4.191 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006394/0.6595, allocations: 0.6377 MB / 0.7962 GB, free: 3.551 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002139/0.6617, allocations: 1.889 MB / 0.7981 GB, free: 1.656 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.6617, allocations: 0 / 0.7981 GB, free: 1.656 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6617, allocations: 0 / 0.7981 GB, free: 1.656 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.542e-05/0.6617, allocations: 0 / 0.7981 GB, free: 1.656 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002026/0.6637, allocations: 1.445 MB / 0.7995 GB, free: 160 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.6638, allocations: 12.03 kB / 0.7995 GB, free: 148 kB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001661/0.664, allocations: 151.6 kB / 0.7996 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001328/0.6653, allocations: 258.2 kB / 0.7999 GB, free: 15.73 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.6664, allocations: 0.7569 MB / 0.8006 GB, free: 14.94 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/0.6665, allocations: 70 kB / 0.8007 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.6666, allocations: 96 kB / 0.8008 GB, free: 14.77 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.6683, allocations: 1.173 MB / 0.8019 GB, free: 13.53 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.6683, allocations: 0 / 0.8019 GB, free: 13.53 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.083e-05/0.6684, allocations: 40 kB / 0.802 GB, free: 13.49 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.116e-05/0.6684, allocations: 38 kB / 0.802 GB, free: 13.45 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.6698, allocations: 0.9015 MB / 0.8029 GB, free: 12.55 MB / 0.6387 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00512/0.675, allocations: 5.762 MB / 0.8085 GB, free: 6.328 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007308/0.6757, allocations: 0.528 MB / 0.809 GB, free: 5.789 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000401/0.6761, allocations: 314.6 kB / 0.8093 GB, free: 5.48 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005781/0.6767, allocations: 319.7 kB / 0.8096 GB, free: 5.113 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.6767, allocations: 35 kB / 0.8097 GB, free: 5.07 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=49): time 2.104e-06/0.6767, allocations: 3.938 kB / 0.8097 GB, free: 5.066 MB / 0.6387 GB Notification: Performance of matching and sorting (n=49): time 0.001456/0.6782, allocations: 0.7948 MB / 0.8104 GB, free: 4.266 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.6783, allocations: 59.78 kB / 0.8105 GB, free: 4.195 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008881/0.6792, allocations: 0.7509 MB / 0.8112 GB, free: 3.438 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.076e-05/0.6792, allocations: 41.7 kB / 0.8113 GB, free: 3.391 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003913/0.6796, allocations: 0.5104 MB / 0.8118 GB, free: 2.871 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.6798, allocations: 181.3 kB / 0.8119 GB, free: 2.691 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.68, allocations: 142.6 kB / 0.8121 GB, free: 2.547 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.6802, allocations: 337.9 kB / 0.8124 GB, free: 2.211 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003637/0.6805, allocations: 245.9 kB / 0.8126 GB, free: 1.973 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006238/0.6812, allocations: 0.5605 MB / 0.8132 GB, free: 1.273 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009025/0.6821, allocations: 0.7957 MB / 0.814 GB, free: 380 kB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.6821, allocations: 0 / 0.814 GB, free: 380 kB / 0.6387 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.2596/0.9417, allocations: 0.8405 MB / 0.8148 GB, free: 221.7 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.9417, allocations: 10.22 kB / 0.8148 GB, free: 221.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/0.9418, allocations: 8.156 kB / 0.8148 GB, free: 221.7 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.824e-05/0.9418, allocations: 12.12 kB / 0.8148 GB, free: 221.7 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006196/0.9424, allocations: 159.2 kB / 0.815 GB, free: 221.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.43e-05/0.9425, allocations: 17.12 kB / 0.815 GB, free: 221.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007458/0.9432, allocations: 91.64 kB / 0.8151 GB, free: 221.7 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.509e-05/0.9433, allocations: 32.89 kB / 0.8151 GB, free: 221.7 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * 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.0004997/0.9438, allocations: 331.5 kB / 0.8154 GB, free: 221.5 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.9439, allocations: 85.41 kB / 0.8155 GB, free: 221.5 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009985/0.945, allocations: 0.6165 MB / 0.8161 GB, free: 221.4 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.945, allocations: 6.469 kB / 0.8161 GB, free: 221.4 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.945, allocations: 2.422 kB / 0.8161 GB, free: 221.4 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006723/0.9457, allocations: 0.5166 MB / 0.8166 GB, free: 221.2 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.948, allocations: 1.663 MB / 0.8182 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.948, allocations: 2.5 kB / 0.8182 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005193/0.9485, allocations: 111.9 kB / 0.8183 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.9485, allocations: 8.797 kB / 0.8183 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.9486, allocations: 19.44 kB / 0.8184 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.9486, allocations: 7.469 kB / 0.8184 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.9486, allocations: 5.609 kB / 0.8184 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.9499, allocations: 1.052 MB / 0.8194 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.9501, allocations: 229.5 kB / 0.8196 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.9502, allocations: 11.53 kB / 0.8196 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/0.9507, allocations: 16.58 kB / 0.8196 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-05/0.9508, allocations: 34.58 kB / 0.8197 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.955e-05/0.9508, allocations: 19.5 kB / 0.8197 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006546/0.9515, allocations: 0.5137 MB / 0.8202 GB, free: 219.4 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9515, allocations: 0 / 0.8202 GB, free: 219.4 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009096/0.9524, allocations: 297.2 kB / 0.8205 GB, free: 219.4 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001887/0.9543, allocations: 1.711 MB / 0.8222 GB, free: 218.3 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001111/0.9554, allocations: 0.707 MB / 0.8228 GB, free: 218.1 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.9554, allocations: 5.344 kB / 0.8228 GB, free: 218.1 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.9558, allocations: 271.8 kB / 0.8231 GB, free: 218 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/0.9578, allocations: 443.6 kB / 0.8235 GB, free: 217.9 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008282/0.9661, allocations: 7.472 MB / 0.8308 GB, free: 213.6 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006134/0.9667, allocations: 1.118 MB / 0.8319 GB, free: 212.8 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0009277/0.9676, allocations: 273.6 kB / 0.8322 GB, free: 212.8 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.968, allocations: 358.5 kB / 0.8325 GB, free: 212.5 MB / 0.6387 GB Notification: Performance of SimCode: time 8.01e-07/0.968, allocations: 0 / 0.8325 GB, free: 212.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04287/1.011, allocations: 22.9 MB / 0.8549 GB, free: 196.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.352/9.363, allocations: 5.594 kB / 0.8549 GB, free: 196.8 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances.fmu > IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)