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.001637/0.001637, allocations: 103.9 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.001327/0.001327, allocations: 210.4 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.48/1.48, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2297/0.2297, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.002245/0.002246, allocations: 86.47 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.128, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4299/0.5579, allocations: 184.7 MB / 0.6493 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.5601, allocations: 0.8938 MB / 0.6502 GB, free: 9.488 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002789/0.5604, allocations: 15.88 kB / 0.6502 GB, free: 9.473 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006997/0.5611, allocations: 206.7 kB / 0.6504 GB, free: 9.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006145/0.5618, allocations: 274.3 kB / 0.6507 GB, free: 9 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005492/0.5673, allocations: 1.917 MB / 0.6525 GB, free: 7.082 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001429/0.5687, allocations: 0.9788 MB / 0.6535 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005323/0.5693, allocations: 335.3 kB / 0.6538 GB, free: 5.773 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003492/0.5728, allocations: 1.562 MB / 0.6553 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005844/0.5734, allocations: 322.8 kB / 0.6556 GB, free: 3.891 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.911e-05/0.5735, allocations: 44 kB / 0.6557 GB, free: 3.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005767/0.5792, allocations: 2.738 MB / 0.6583 GB, free: 1.105 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000332/0.5796, allocations: 195.5 kB / 0.6585 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003824/0.58, allocations: 270.9 kB / 0.6588 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004142/0.5842, allocations: 2.042 MB / 0.6608 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.5842, allocations: 4 kB / 0.6608 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5842, allocations: 0 / 0.6608 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.5842, allocations: 0 / 0.6608 GB, free: 14.6 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.001968/0.5862, allocations: 1.052 MB / 0.6618 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.5862, allocations: 12.03 kB / 0.6618 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.967e-05/0.5863, allocations: 78.53 kB / 0.6619 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.5866, allocations: 51.44 kB / 0.662 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005264/0.5872, allocations: 377.8 kB / 0.6623 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.5872, allocations: 32.94 kB / 0.6623 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.5873, allocations: 32 kB / 0.6624 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009267/0.5882, allocations: 0.5198 MB / 0.6629 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.5882, allocations: 0 / 0.6629 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.466e-05/0.5883, allocations: 16 kB / 0.6629 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.5883, allocations: 12 kB / 0.6629 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009193/0.5892, allocations: 495.3 kB / 0.6634 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.592, allocations: 1.978 MB / 0.6653 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007736/0.5928, allocations: 464.7 kB / 0.6658 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000332/0.5932, allocations: 182 kB / 0.6659 GB, free: 9 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009037/0.5941, allocations: 0.9454 MB / 0.6669 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.5941, allocations: 42.55 kB / 0.6669 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 1.963e-06/0.5942, allocations: 7.938 kB / 0.6669 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001196/0.5954, allocations: 0.4891 MB / 0.6674 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/0.5954, allocations: 106.8 kB / 0.6675 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004607/0.5959, allocations: 393.7 kB / 0.6679 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.596, allocations: 33.7 kB / 0.6679 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.5961, allocations: 228.2 kB / 0.6681 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.261e-05/0.5962, allocations: 102.5 kB / 0.6682 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.5964, allocations: 74.06 kB / 0.6683 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.5966, allocations: 358.7 kB / 0.6686 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003392/0.5969, allocations: 148.7 kB / 0.6688 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.5973, allocations: 262.6 kB / 0.669 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007951/0.5981, allocations: 487.7 kB / 0.6695 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.5982, allocations: 4 kB / 0.6695 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00107/0.5992, allocations: 0.5432 MB / 0.67 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/0.5993, allocations: 70.05 kB / 0.6701 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.5993, allocations: 5.562 kB / 0.6701 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.5993, allocations: 4 kB / 0.6701 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.5997, allocations: 79.89 kB / 0.6702 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.5998, allocations: 7.938 kB / 0.6702 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.6001, allocations: 55.42 kB / 0.6702 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-05/0.6002, allocations: 23.98 kB / 0.6702 GB, free: 4.176 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.0002319/0.6004, allocations: 181.9 kB / 0.6704 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.6006, allocations: 43.52 kB / 0.6705 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.6017, allocations: 493.2 kB / 0.6709 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.6017, allocations: 4 kB / 0.6709 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.6017, allocations: 0 / 0.6709 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.6017, allocations: 3.984 kB / 0.6709 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.6049, allocations: 2.437 MB / 0.6733 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.6049, allocations: 192 / 0.6733 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003049/0.6052, allocations: 67.91 kB / 0.6734 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.772e-05/0.6053, allocations: 7.938 kB / 0.6734 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.6053, allocations: 8 kB / 0.6734 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.6053, allocations: 7.938 kB / 0.6734 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6053, allocations: 0 / 0.6734 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009845/0.6063, allocations: 0.6355 MB / 0.674 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.6064, allocations: 132.4 kB / 0.6742 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.995e-05/0.6065, allocations: 19.84 kB / 0.6742 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.607, allocations: 19.98 kB / 0.6742 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.6071, allocations: 23.97 kB / 0.6742 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.867e-05/0.6072, allocations: 23.98 kB / 0.6742 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004522/0.6076, allocations: 359.1 kB / 0.6746 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6076, allocations: 0 / 0.6746 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001113/0.6087, allocations: 351.7 kB / 0.6749 GB, free: 14.97 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.002437/0.6112, allocations: 1.584 MB / 0.6765 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009761/0.6122, allocations: 482.5 kB / 0.6769 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.6122, allocations: 0 / 0.6769 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003385/0.6125, allocations: 168.8 kB / 0.6771 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.6141, allocations: 285.9 kB / 0.6774 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007023/0.6212, allocations: 4.658 MB / 0.6819 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004904/0.6217, allocations: 0.8309 MB / 0.6827 GB, free: 6.699 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005482/0.6223, allocations: 122.2 kB / 0.6828 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.6225, allocations: 143.4 kB / 0.683 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of SimCode: time 1.573e-06/0.6225, allocations: 0 / 0.683 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04974/0.6723, allocations: 19.55 MB / 0.7021 GB, free: 3.105 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.403/9.075, allocations: 11.42 kB / 0.7021 GB, free: 3.098 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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)