Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2304/0.2304, allocations: 46.11 MB / 344.2 MB, free: 11.62 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00224/0.002241, allocations: 86.39 kB / 417.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1198, allocations: 62.44 MB / 480.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4312/0.551, allocations: 184.7 MB / 0.6493 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.553, allocations: 0.9016 MB / 0.6502 GB, free: 9.547 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/0.5532, allocations: 11.94 kB / 0.6502 GB, free: 9.535 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000639/0.5539, allocations: 206.7 kB / 0.6504 GB, free: 9.332 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000545/0.5544, allocations: 274.3 kB / 0.6506 GB, free: 9.062 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005025/0.5595, allocations: 1.926 MB / 0.6525 GB, free: 7.141 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.5607, allocations: 0.975 MB / 0.6535 GB, free: 6.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005151/0.5613, allocations: 332.8 kB / 0.6538 GB, free: 5.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003661/0.5649, allocations: 1.558 MB / 0.6553 GB, free: 4.277 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005421/0.5655, allocations: 326.7 kB / 0.6556 GB, free: 3.957 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-05/0.5656, allocations: 52 kB / 0.6557 GB, free: 3.906 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005385/0.571, allocations: 2.73 MB / 0.6583 GB, free: 1.172 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.5713, allocations: 203.5 kB / 0.6585 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003686/0.5717, allocations: 270.9 kB / 0.6588 GB, free: 0.707 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003722/0.5754, allocations: 2.042 MB / 0.6608 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.5754, allocations: 0 / 0.6608 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5754, allocations: 0 / 0.6608 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.046e-06/0.5754, allocations: 0 / 0.6608 GB, free: 14.66 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00189/0.5773, allocations: 1.052 MB / 0.6618 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.5774, allocations: 8.031 kB / 0.6618 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.732e-05/0.5775, allocations: 78.53 kB / 0.6619 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002565/0.5777, allocations: 59.42 kB / 0.662 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000525/0.5783, allocations: 365.9 kB / 0.6623 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.5783, allocations: 40.88 kB / 0.6623 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/0.5784, allocations: 36 kB / 0.6624 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009061/0.5793, allocations: 0.512 MB / 0.6629 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.5793, allocations: 0 / 0.6629 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.319e-05/0.5794, allocations: 24 kB / 0.6629 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.5794, allocations: 8 kB / 0.6629 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000894/0.5803, allocations: 0.4915 MB / 0.6634 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002751/0.5831, allocations: 1.978 MB / 0.6653 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007979/0.5839, allocations: 448.7 kB / 0.6658 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003553/0.5842, allocations: 182.5 kB / 0.6659 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001033/0.5853, allocations: 0.9533 MB / 0.6669 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.5853, allocations: 42.55 kB / 0.6669 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 2.164e-06/0.5853, allocations: 0 / 0.6669 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001199/0.5865, allocations: 0.4888 MB / 0.6674 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.5866, allocations: 110.8 kB / 0.6675 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004814/0.5871, allocations: 401.6 kB / 0.6679 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.22e-05/0.5872, allocations: 33.7 kB / 0.6679 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.5874, allocations: 220.1 kB / 0.6681 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.358e-05/0.5875, allocations: 106.5 kB / 0.6682 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.5876, allocations: 78.05 kB / 0.6683 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001966/0.5879, allocations: 350.7 kB / 0.6686 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.5882, allocations: 152.7 kB / 0.6688 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.5886, allocations: 258.8 kB / 0.669 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/0.5894, allocations: 483.6 kB / 0.6695 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.5894, allocations: 11.94 kB / 0.6695 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001011/0.5904, allocations: 0.5431 MB / 0.67 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.5905, allocations: 59.41 kB / 0.6701 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.5905, allocations: 4.375 kB / 0.6701 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.5905, allocations: 11.94 kB / 0.6701 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003965/0.5909, allocations: 83.89 kB / 0.6702 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.591, allocations: 7.984 kB / 0.6702 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.5913, allocations: 47.44 kB / 0.6702 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.236e-05/0.5914, allocations: 23.98 kB / 0.6702 GB, free: 4.242 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.0002753/0.5917, allocations: 189.6 kB / 0.6704 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.5918, allocations: 39.53 kB / 0.6705 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.593, allocations: 493.6 kB / 0.6709 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.593, allocations: 7.938 kB / 0.6709 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.593, allocations: 0 / 0.6709 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.593, allocations: 0 / 0.6709 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.5962, allocations: 2.441 MB / 0.6733 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.5962, allocations: 0 / 0.6733 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.5965, allocations: 59.91 kB / 0.6734 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.5965, allocations: 7.938 kB / 0.6734 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.5965, allocations: 8.062 kB / 0.6734 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/0.5966, allocations: 12.17 kB / 0.6734 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5966, allocations: 4 kB / 0.6734 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000855/0.5974, allocations: 0.6357 MB / 0.674 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.5976, allocations: 124.5 kB / 0.6741 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.677e-05/0.5976, allocations: 19.84 kB / 0.6742 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.5981, allocations: 27.91 kB / 0.6742 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.5982, allocations: 31.91 kB / 0.6742 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/0.5982, allocations: 19.98 kB / 0.6742 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004159/0.5986, allocations: 359.1 kB / 0.6746 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5986, allocations: 0 / 0.6746 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001119/0.5998, allocations: 343.8 kB / 0.6749 GB, free: 15.04 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 simulation (32): * Single equations (assignments): 32 * 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.002296/0.6021, allocations: 1.59 MB / 0.6765 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008914/0.603, allocations: 471.6 kB / 0.6769 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.603, allocations: 8.062 kB / 0.6769 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.6033, allocations: 167.7 kB / 0.6771 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.6048, allocations: 288.2 kB / 0.6774 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006424/0.6113, allocations: 4.65 MB / 0.6819 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.6118, allocations: 0.8387 MB / 0.6827 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000473/0.6122, allocations: 114.6 kB / 0.6828 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.6125, allocations: 143.4 kB / 0.683 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of SimCode: time 5.81e-07/0.6125, allocations: 4 kB / 0.683 GB, free: 6.504 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04867/0.6612, allocations: 19.56 MB / 0.7021 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.575/9.236, allocations: 11.3 kB / 0.7021 GB, free: 3.148 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1)