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.001369/0.001369, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001441, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 247 MB, free: 10.39 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.215/0.215, allocations: 46.12 MB / 344.4 MB, free: 11.41 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.002395/0.002395, allocations: 83.86 kB / 480.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3178, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.2219/0.5397, allocations: 184.7 MB / 0.711 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002055/0.5418, allocations: 0.8977 MB / 0.7118 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003669/0.5422, allocations: 7.938 kB / 0.7118 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007431/0.543, allocations: 206.7 kB / 0.712 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0007742/0.5438, allocations: 286.3 kB / 0.7123 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005533/0.5494, allocations: 1.929 MB / 0.7142 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001447/0.5508, allocations: 0.9711 MB / 0.7151 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006574/0.5515, allocations: 333.1 kB / 0.7155 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003757/0.5553, allocations: 1.554 MB / 0.717 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000656/0.5559, allocations: 314.8 kB / 0.7173 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.5561, allocations: 52 kB / 0.7173 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3138/0.8699, allocations: 2.778 MB / 0.72 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003943/0.8704, allocations: 196.2 kB / 0.7202 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004912/0.8709, allocations: 272.3 kB / 0.7205 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005438/0.8763, allocations: 2.055 MB / 0.7225 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.8764, allocations: 0.9688 kB / 0.7225 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.545e-06/0.8764, allocations: 0 / 0.7225 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.875e-05/0.8764, allocations: 1.203 kB / 0.7225 GB, free: 4.906 MB / 0.5606 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.002198/0.8786, allocations: 1.081 MB / 0.7235 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.8787, allocations: 11.08 kB / 0.7236 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.149e-05/0.8787, allocations: 78.31 kB / 0.7236 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002803/0.879, allocations: 58.41 kB / 0.7237 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005538/0.8796, allocations: 388.6 kB / 0.7241 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.8796, allocations: 27.38 kB / 0.7241 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.631e-05/0.8797, allocations: 39.58 kB / 0.7241 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009144/0.8806, allocations: 0.5127 MB / 0.7246 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.8807, allocations: 2.109 kB / 0.7246 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.8807, allocations: 18.97 kB / 0.7246 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.8807, allocations: 12.22 kB / 0.7247 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000931/0.8817, allocations: 497.7 kB / 0.7251 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002585/0.8843, allocations: 1.977 MB / 0.7271 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007115/0.885, allocations: 458 kB / 0.7275 GB, free: 18.45 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002971/0.8853, allocations: 176.3 kB / 0.7277 GB, free: 18.42 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008922/0.8862, allocations: 0.9527 MB / 0.7286 GB, free: 17.39 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.696e-05/0.8863, allocations: 41.28 kB / 0.7286 GB, free: 17.35 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=30): time 3.567e-06/0.8863, allocations: 0 / 0.7286 GB, free: 17.35 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30): time 0.001257/0.8875, allocations: 0.5004 MB / 0.7291 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.599e-05/0.8876, allocations: 108.1 kB / 0.7292 GB, free: 17.17 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004619/0.8881, allocations: 395.2 kB / 0.7296 GB, free: 17.06 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.8882, allocations: 34.64 kB / 0.7296 GB, free: 17.03 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.8883, allocations: 224 kB / 0.7298 GB, free: 16.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/0.8884, allocations: 108.9 kB / 0.73 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.8885, allocations: 79.05 kB / 0.73 GB, free: 16.81 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.8887, allocations: 355.5 kB / 0.7304 GB, free: 16.49 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.889, allocations: 151 kB / 0.7305 GB, free: 16.49 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.8893, allocations: 258.2 kB / 0.7308 GB, free: 16.37 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.89, allocations: 486.9 kB / 0.7312 GB, free: 16.19 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.89, allocations: 2.812 kB / 0.7312 GB, free: 16.19 MB / 0.5762 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000917/0.8909, allocations: 0.5489 MB / 0.7318 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.965e-05/0.891, allocations: 63.86 kB / 0.7318 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.891, allocations: 2.5 kB / 0.7318 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.891, allocations: 5.188 kB / 0.7318 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/0.8914, allocations: 86.81 kB / 0.7319 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.8914, allocations: 8.453 kB / 0.7319 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.8918, allocations: 51.75 kB / 0.732 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.522e-05/0.8919, allocations: 21.5 kB / 0.732 GB, free: 15.99 MB / 0.5762 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.0002468/0.8921, allocations: 190.9 kB / 0.7322 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.8922, allocations: 46.19 kB / 0.7322 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009076/0.8931, allocations: 484.5 kB / 0.7327 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.8932, allocations: 8.75 kB / 0.7327 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.8932, allocations: 0 / 0.7327 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.8932, allocations: 3.219 kB / 0.7327 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/0.8962, allocations: 2.438 MB / 0.7351 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.8962, allocations: 8.844 kB / 0.7351 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.8965, allocations: 65.72 kB / 0.7351 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.493e-06/0.8965, allocations: 4.312 kB / 0.7351 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.8965, allocations: 12.86 kB / 0.7352 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.8965, allocations: 1.969 kB / 0.7352 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.8965, allocations: 7.188 kB / 0.7352 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007646/0.8973, allocations: 0.6382 MB / 0.7358 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.8975, allocations: 124.2 kB / 0.7359 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.208e-05/0.8975, allocations: 16.48 kB / 0.7359 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004202/0.898, allocations: 24 kB / 0.7359 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.152e-05/0.898, allocations: 26.84 kB / 0.736 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.603e-05/0.8981, allocations: 21.53 kB / 0.736 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003813/0.8985, allocations: 364.6 kB / 0.7363 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8985, allocations: 0 / 0.7363 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001243/0.8997, allocations: 357.3 kB / 0.7367 GB, free: 13.25 MB / 0.5762 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.002362/0.9021, allocations: 1.595 MB / 0.7382 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008605/0.903, allocations: 468.1 kB / 0.7387 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/0.903, allocations: 3.656 kB / 0.7387 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.9033, allocations: 164.3 kB / 0.7388 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.9048, allocations: 291.9 kB / 0.7391 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005911/0.9108, allocations: 4.6 MB / 0.7436 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.9113, allocations: 0.8363 MB / 0.7444 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005499/0.9118, allocations: 118.2 kB / 0.7445 GB, free: 9.359 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002003/0.9121, allocations: 145.9 kB / 0.7447 GB, free: 9.355 MB / 0.5762 GB Notification: Performance of SimCode: time 9.02e-07/0.9121, allocations: 1 kB / 0.7447 GB, free: 9.355 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04819/0.9603, allocations: 19.72 MB / 0.7639 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.146/10.11, allocations: 3.094 kB / 0.7639 GB, free: 6.844 MB / 0.5762 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)