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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 230.5 MB / 258.2 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2199/0.2199, allocations: 46.92 MB / 361.6 MB, free: 4.215 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002311/0.002311, allocations: 75.88 kB / 0.497 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3162, allocations: 66.08 MB / 0.5615 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.5097/0.8259, allocations: 185.6 MB / 0.7427 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001791/0.8277, allocations: 0.9017 MB / 0.7436 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002819/0.828, allocations: 15.28 kB / 0.7436 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006338/0.8286, allocations: 212.4 kB / 0.7438 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005144/0.8291, allocations: 293.4 kB / 0.7441 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004237/0.8334, allocations: 1.97 MB / 0.746 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001074/0.8345, allocations: 0.9978 MB / 0.747 GB, free: 1.738 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003749/0.8348, allocations: 280.6 kB / 0.7472 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002923/0.8378, allocations: 1.601 MB / 0.7488 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005103/0.8383, allocations: 339.3 kB / 0.7491 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.24e-05/0.8383, allocations: 48.44 kB / 0.7492 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004282/0.8426, allocations: 2.898 MB / 0.752 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002525/0.8429, allocations: 204.7 kB / 0.7522 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003265/0.8432, allocations: 265.9 kB / 0.7525 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005221/0.8484, allocations: 2.062 MB / 0.7545 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 9.928e-06/0.8484, allocations: 3.219 kB / 0.7545 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.515e-06/0.8484, allocations: 1.125 kB / 0.7545 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.431e-05/0.8485, allocations: 0 / 0.7545 GB, free: 1.551 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.002254/0.8507, allocations: 1.004 MB / 0.7555 GB, free: 16.92 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.8508, allocations: 8.688 kB / 0.7555 GB, free: 16.92 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.963e-05/0.8508, allocations: 80.42 kB / 0.7555 GB, free: 16.88 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000301/0.8511, allocations: 59.81 kB / 0.7556 GB, free: 16.86 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006082/0.8518, allocations: 321.5 kB / 0.7559 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.8518, allocations: 32.59 kB / 0.7559 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.878e-05/0.8518, allocations: 36.34 kB / 0.756 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008601/0.8527, allocations: 0.5153 MB / 0.7565 GB, free: 16.59 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.8527, allocations: 0.9062 kB / 0.7565 GB, free: 16.59 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.687e-05/0.8528, allocations: 16.09 kB / 0.7565 GB, free: 16.59 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.8528, allocations: 9.375 kB / 0.7565 GB, free: 16.59 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00072/0.8535, allocations: 0.491 MB / 0.757 GB, free: 16.58 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.856, allocations: 1.94 MB / 0.7589 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006004/0.8566, allocations: 362.7 kB / 0.7592 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003397/0.8569, allocations: 169.6 kB / 0.7594 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004036/0.8573, allocations: 133.1 kB / 0.7595 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.8574, allocations: 44.84 kB / 0.7596 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=30): time 1.873e-06/0.8574, allocations: 0.6562 kB / 0.7596 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30): time 0.0009951/0.8584, allocations: 0.4915 MB / 0.76 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/0.8585, allocations: 110.5 kB / 0.7601 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003519/0.8588, allocations: 401.4 kB / 0.7605 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.907e-05/0.8589, allocations: 35.55 kB / 0.7606 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.859, allocations: 217.1 kB / 0.7608 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.538e-05/0.859, allocations: 109.9 kB / 0.7609 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.8591, allocations: 77.3 kB / 0.7609 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.8593, allocations: 359.3 kB / 0.7613 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.8596, allocations: 147.6 kB / 0.7614 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.8599, allocations: 263.3 kB / 0.7617 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006069/0.8605, allocations: 485.8 kB / 0.7621 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.8605, allocations: 4.031 kB / 0.7621 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000834/0.8613, allocations: 0.548 MB / 0.7627 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.741e-05/0.8614, allocations: 69.03 kB / 0.7627 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.8614, allocations: 2.5 kB / 0.7627 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.8614, allocations: 6.062 kB / 0.7628 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/0.8618, allocations: 90.17 kB / 0.7628 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.8618, allocations: 4.781 kB / 0.7628 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.8621, allocations: 50.09 kB / 0.7629 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.75e-05/0.8621, allocations: 29.98 kB / 0.7629 GB, free: 13.9 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.0001919/0.8623, allocations: 177.6 kB / 0.7631 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.8624, allocations: 46.19 kB / 0.7631 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009411/0.8634, allocations: 488 kB / 0.7636 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.8634, allocations: 4.969 kB / 0.7636 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.8634, allocations: 0 / 0.7636 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.8634, allocations: 7.781 kB / 0.7636 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.8656, allocations: 1.37 MB / 0.7649 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.8656, allocations: 3.625 kB / 0.765 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.8659, allocations: 56.91 kB / 0.765 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.8659, allocations: 6.938 kB / 0.765 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.8659, allocations: 5.938 kB / 0.765 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.8659, allocations: 5.281 kB / 0.765 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.8659, allocations: 10.95 kB / 0.765 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007593/0.8666, allocations: 0.6434 MB / 0.7657 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.403e-05/0.8667, allocations: 52.16 kB / 0.7657 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.396e-05/0.8668, allocations: 14.69 kB / 0.7657 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004411/0.8672, allocations: 20.84 kB / 0.7657 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.776e-05/0.8673, allocations: 32 kB / 0.7658 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.8674, allocations: 20.41 kB / 0.7658 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003575/0.8677, allocations: 363.5 kB / 0.7661 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.8677, allocations: 0.9375 kB / 0.7661 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001103/0.8688, allocations: 357.4 kB / 0.7665 GB, free: 12.59 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.002084/0.8709, allocations: 1.571 MB / 0.768 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007903/0.8717, allocations: 455 kB / 0.7685 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.8717, allocations: 6.938 kB / 0.7685 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002759/0.872, allocations: 159.4 kB / 0.7686 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.8733, allocations: 284.8 kB / 0.7689 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005648/0.879, allocations: 4.602 MB / 0.7734 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.8794, allocations: 0.8389 MB / 0.7742 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004506/0.8799, allocations: 110.5 kB / 0.7743 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.8801, allocations: 146.9 kB / 0.7744 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of SimCode: time 8.11e-07/0.8801, allocations: 0.9688 kB / 0.7744 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04867/0.9287, allocations: 20.02 MB / 0.794 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.335/10.26, allocations: 11.81 kB / 0.794 GB, free: 2.68 MB / 0.5762 GB " [Timeout remaining time 650] (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.00039984 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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.119490979705006] Failed to read output from testmodel.py, exit status != 0: ['time', 'traceSubstance.C', 'traceSubstance1.C'] 10.346672785002738 10.360996265 9.509377146 Calling exit ...