Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 119.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002321/0.002321, allocations: 204.3 kB / 20.74 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2131/0.2131, allocations: 44.9 MB / 355.1 MB, free: 12.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 75.88 kB / 499.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1268, allocations: 65.41 MB / 0.5517 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4903/0.6171, allocations: 185.3 MB / 0.7327 GB, free: 13.85 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002221/0.6193, allocations: 0.8891 MB / 0.7336 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003046/0.6196, allocations: 19.88 kB / 0.7336 GB, free: 12.93 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0006501/0.6203, allocations: 210.7 kB / 0.7338 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005673/0.6208, allocations: 290.3 kB / 0.7341 GB, free: 12.44 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004904/0.6257, allocations: 1.926 MB / 0.7359 GB, free: 10.52 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001263/0.627, allocations: 0.9827 MB / 0.7369 GB, free: 9.531 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005707/0.6276, allocations: 297.5 kB / 0.7372 GB, free: 9.238 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003385/0.631, allocations: 1.581 MB / 0.7387 GB, free: 7.652 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005178/0.6315, allocations: 342.7 kB / 0.7391 GB, free: 7.316 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.131e-05/0.6316, allocations: 48 kB / 0.7391 GB, free: 7.27 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004716/0.6363, allocations: 2.855 MB / 0.7419 GB, free: 4.41 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002407/0.6365, allocations: 207.4 kB / 0.7421 GB, free: 4.207 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000305/0.6368, allocations: 262.9 kB / 0.7423 GB, free: 3.949 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003109/0.6399, allocations: 2.065 MB / 0.7444 GB, free: 1.879 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.6399, allocations: 3.938 kB / 0.7444 GB, free: 1.875 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.223e-06/0.6399, allocations: 4 kB / 0.7444 GB, free: 1.871 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.165e-06/0.6399, allocations: 0 / 0.7444 GB, free: 1.871 MB / 0.545 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.001888/0.6418, allocations: 1.075 MB / 0.7454 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.6419, allocations: 12.02 kB / 0.7454 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001025/0.642, allocations: 75.41 kB / 0.7455 GB, free: 0.6406 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002554/0.6422, allocations: 59.67 kB / 0.7456 GB, free: 0.582 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005365/0.6428, allocations: 386.1 kB / 0.7459 GB, free: 168 kB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.6428, allocations: 32.94 kB / 0.746 GB, free: 136 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.6429, allocations: 43.98 kB / 0.746 GB, free: 92 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009251/0.6438, allocations: 0.5159 MB / 0.7465 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.6438, allocations: 4 kB / 0.7465 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/0.6438, allocations: 16 kB / 0.7465 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.6439, allocations: 8 kB / 0.7465 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009182/0.6448, allocations: 499.5 kB / 0.747 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002715/0.6475, allocations: 1.974 MB / 0.7489 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007752/0.6483, allocations: 448.7 kB / 0.7494 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.6486, allocations: 162.5 kB / 0.7495 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008915/0.6495, allocations: 0.9533 MB / 0.7504 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.6495, allocations: 42.5 kB / 0.7505 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=30): time 1.803e-06/0.6495, allocations: 0 / 0.7505 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30): time 0.001177/0.6507, allocations: 0.4927 MB / 0.751 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.201e-05/0.6508, allocations: 106.8 kB / 0.7511 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000466/0.6512, allocations: 397.6 kB / 0.7514 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.6513, allocations: 33.7 kB / 0.7515 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.6515, allocations: 224.5 kB / 0.7517 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.487e-05/0.6516, allocations: 107.1 kB / 0.7518 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.6517, allocations: 86.02 kB / 0.7519 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.6519, allocations: 350.7 kB / 0.7522 GB, free: 9.223 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/0.6522, allocations: 148.7 kB / 0.7524 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000415/0.6526, allocations: 265.9 kB / 0.7526 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000778/0.6534, allocations: 483.9 kB / 0.7531 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.6534, allocations: 4 kB / 0.7531 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001048/0.6544, allocations: 0.5434 MB / 0.7536 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.621e-05/0.6545, allocations: 69.58 kB / 0.7537 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.6545, allocations: 4 kB / 0.7537 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.6545, allocations: 4 kB / 0.7537 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.6549, allocations: 87.83 kB / 0.7538 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.655, allocations: 4 kB / 0.7538 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.6553, allocations: 51.61 kB / 0.7538 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/0.6553, allocations: 23.98 kB / 0.7538 GB, free: 7.434 MB / 0.5606 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.0002236/0.6556, allocations: 188.1 kB / 0.754 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.6557, allocations: 47.7 kB / 0.7541 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.6568, allocations: 487.1 kB / 0.7545 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.6568, allocations: 8 kB / 0.7545 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.6568, allocations: 0 / 0.7545 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.6568, allocations: 0 / 0.7545 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.6599, allocations: 2.433 MB / 0.7569 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.6599, allocations: 4 kB / 0.7569 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002945/0.6602, allocations: 63.91 kB / 0.757 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.463e-06/0.6602, allocations: 3.938 kB / 0.757 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.916e-05/0.6602, allocations: 13.12 kB / 0.757 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.6602, allocations: 3.984 kB / 0.757 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6602, allocations: 4 kB / 0.757 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008776/0.6611, allocations: 0.6411 MB / 0.7576 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.6612, allocations: 140.6 kB / 0.7578 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.147e-05/0.6613, allocations: 8 kB / 0.7578 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004345/0.6617, allocations: 23.97 kB / 0.7578 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.065e-05/0.6618, allocations: 23.92 kB / 0.7578 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.684e-05/0.6618, allocations: 24.92 kB / 0.7578 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004279/0.6622, allocations: 363.1 kB / 0.7582 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.6622, allocations: 0 / 0.7582 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001113/0.6634, allocations: 359 kB / 0.7585 GB, free: 2.219 MB / 0.5606 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.002241/0.6656, allocations: 1.579 MB / 0.7601 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008521/0.6665, allocations: 458.5 kB / 0.7605 GB, free: 132 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.6665, allocations: 0 / 0.7605 GB, free: 132 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003361/0.6668, allocations: 156.9 kB / 0.7607 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.6683, allocations: 284.5 kB / 0.7609 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006436/0.6747, allocations: 4.597 MB / 0.7654 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.6752, allocations: 0.839 MB / 0.7662 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004433/0.6756, allocations: 120.2 kB / 0.7663 GB, free: 9.902 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.6759, allocations: 147.4 kB / 0.7665 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/0.6759, allocations: 11.81 kB / 0.7665 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0474/0.7233, allocations: 19.8 MB / 0.7858 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.213/9.936, allocations: 0 / 0.7858 GB, free: 6.133 MB / 0.5919 GB " [Timeout remaining time 650] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable traceSubstance.C in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv. Warning: Get data of variable traceSubstance.C from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv failed! Error: Could not read variable traceSubstance1.C in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv. Warning: Get data of variable traceSubstance1.C from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.981324199121445]