Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001613/0.001613, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00188/0.00188, allocations: 209.4 kB / 23.73 MB, free: 4.523 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.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2221/0.2221, allocations: 46.95 MB / 360.9 MB, free: 4.059 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+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_1_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 68.09 kB / 0.4961 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.288, allocations: 66.03 MB / 0.5606 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.1988/0.4869, allocations: 160.4 MB / 0.7172 GB, free: 3.43 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002126/0.489, allocations: 0.8736 MB / 0.7181 GB, free: 2.551 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.4892, allocations: 19.81 kB / 0.7181 GB, free: 2.531 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0007046/0.4899, allocations: 202.7 kB / 0.7183 GB, free: 2.332 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005962/0.4905, allocations: 294.3 kB / 0.7186 GB, free: 2.043 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004936/0.4955, allocations: 1.965 MB / 0.7205 GB, free: 80 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001213/0.4967, allocations: 0.9945 MB / 0.7215 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004382/0.4971, allocations: 277.2 kB / 0.7217 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003299/0.5004, allocations: 1.593 MB / 0.7233 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005341/0.5009, allocations: 342.7 kB / 0.7236 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.375e-05/0.501, allocations: 48 kB / 0.7236 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004273/0.5053, allocations: 2.363 MB / 0.726 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002769/0.5056, allocations: 207.4 kB / 0.7262 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003056/0.5059, allocations: 235.2 kB / 0.7264 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002907/0.5088, allocations: 1.975 MB / 0.7283 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.5088, allocations: 0 / 0.7283 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.813e-06/0.5088, allocations: 3.938 kB / 0.7283 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.417e-06/0.5088, allocations: 0 / 0.7283 GB, free: 8.047 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.001927/0.5107, allocations: 0.9974 MB / 0.7293 GB, free: 7 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.5108, allocations: 11.97 kB / 0.7293 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.5109, allocations: 78.53 kB / 0.7294 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002543/0.5111, allocations: 59.67 kB / 0.7294 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006084/0.5117, allocations: 327.8 kB / 0.7297 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.5118, allocations: 29 kB / 0.7298 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.573e-05/0.5118, allocations: 40 kB / 0.7298 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.5129, allocations: 0.7669 MB / 0.7306 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.5129, allocations: 0 / 0.7306 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.119e-05/0.5129, allocations: 16 kB / 0.7306 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.513, allocations: 8 kB / 0.7306 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008886/0.5138, allocations: 496.2 kB / 0.731 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/0.5165, allocations: 1.57 MB / 0.7326 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007096/0.5172, allocations: 359.6 kB / 0.7329 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003335/0.5175, allocations: 166.5 kB / 0.7331 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004609/0.518, allocations: 135.9 kB / 0.7332 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.518, allocations: 46.48 kB / 0.7333 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.518, allocations: 3.938 kB / 0.7333 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30): time 0.001129/0.5191, allocations: 0.4933 MB / 0.7337 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.5192, allocations: 106.8 kB / 0.7338 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004615/0.5197, allocations: 401.5 kB / 0.7342 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.566e-05/0.5197, allocations: 33.7 kB / 0.7343 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.5199, allocations: 220.5 kB / 0.7345 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.685e-05/0.52, allocations: 111.2 kB / 0.7346 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.5201, allocations: 74.06 kB / 0.7346 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5203, allocations: 358.7 kB / 0.735 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003542/0.5206, allocations: 200.1 kB / 0.7352 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.5211, allocations: 317.6 kB / 0.7355 GB, free: 272 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2644/0.7855, allocations: 478.9 kB / 0.7359 GB, free: 175 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.7855, allocations: 2.891 kB / 0.7359 GB, free: 175 MB / 0.5606 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001442/0.787, allocations: 0.5998 MB / 0.7365 GB, free: 174.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.1e-05/0.787, allocations: 62.78 kB / 0.7366 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.787, allocations: 3.531 kB / 0.7366 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.7871, allocations: 8.094 kB / 0.7366 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000479/0.7875, allocations: 84.62 kB / 0.7367 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.7876, allocations: 6.344 kB / 0.7367 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.7879, allocations: 57.67 kB / 0.7367 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.314e-05/0.788, allocations: 19.98 kB / 0.7368 GB, free: 174.8 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.0002347/0.7882, allocations: 191.7 kB / 0.7369 GB, free: 174.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.7884, allocations: 46.56 kB / 0.737 GB, free: 174.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.7895, allocations: 487 kB / 0.7375 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.7895, allocations: 4.156 kB / 0.7375 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.7895, allocations: 4.438 kB / 0.7375 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.7895, allocations: 6.094 kB / 0.7375 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/0.7919, allocations: 1.252 MB / 0.7387 GB, free: 173.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.7919, allocations: 1.25 kB / 0.7387 GB, free: 173.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.7922, allocations: 59.98 kB / 0.7387 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.7922, allocations: 3.688 kB / 0.7388 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.7923, allocations: 10.02 kB / 0.7388 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.7923, allocations: 3 kB / 0.7388 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.7923, allocations: 6.75 kB / 0.7388 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006534/0.7929, allocations: 0.6391 MB / 0.7394 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.443e-05/0.793, allocations: 60.61 kB / 0.7395 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.899e-05/0.7931, allocations: 9.375 kB / 0.7395 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.7935, allocations: 17.42 kB / 0.7395 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.423e-05/0.7936, allocations: 34.56 kB / 0.7395 GB, free: 173.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.457e-05/0.7936, allocations: 23.05 kB / 0.7395 GB, free: 173.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003214/0.7939, allocations: 364.7 kB / 0.7399 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.7939, allocations: 3.281 kB / 0.7399 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009624/0.7949, allocations: 353.9 kB / 0.7402 GB, free: 173 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.001748/0.7967, allocations: 1.58 MB / 0.7418 GB, free: 172 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007535/0.7974, allocations: 0.4985 MB / 0.7422 GB, free: 171.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7974, allocations: 2.031 kB / 0.7423 GB, free: 171.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.7977, allocations: 161 kB / 0.7424 GB, free: 171.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.7989, allocations: 280.5 kB / 0.7427 GB, free: 171.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004678/0.8036, allocations: 4.816 MB / 0.7474 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.8038, allocations: 239.2 kB / 0.7476 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003792/0.8042, allocations: 120.5 kB / 0.7477 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.8044, allocations: 147.4 kB / 0.7479 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of SimCode: time 7.61e-07/0.8044, allocations: 0 / 0.7479 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04435/0.8487, allocations: 21.66 MB / 0.769 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/12.22, allocations: 0 / 0.769 GB, free: 145.1 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.128234099014662]