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.001827/0.001827, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002611/0.002611, allocations: 213.9 kB / 23.74 MB, free: 4.656 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.2274/0.2274, allocations: 44.91 MB / 358.8 MB, free: 6.305 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.002136/0.002136, allocations: 71.89 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3427, allocations: 65.46 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.5644/0.9071, allocations: 185.6 MB / 0.7382 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001867/0.909, allocations: 0.8967 MB / 0.7391 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002893/0.9093, allocations: 16.06 kB / 0.7391 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006538/0.9099, allocations: 214 kB / 0.7393 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000589/0.9105, allocations: 294.5 kB / 0.7396 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004633/0.9151, allocations: 1.968 MB / 0.7415 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001078/0.9162, allocations: 0.9931 MB / 0.7425 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003668/0.9166, allocations: 281.4 kB / 0.7428 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002743/0.9193, allocations: 1.599 MB / 0.7443 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004712/0.9198, allocations: 342.3 kB / 0.7447 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.243e-05/0.9199, allocations: 50.52 kB / 0.7447 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004492/0.9244, allocations: 2.899 MB / 0.7475 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.9246, allocations: 197.4 kB / 0.7477 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003816/0.925, allocations: 268 kB / 0.748 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003256/0.9282, allocations: 2.059 MB / 0.75 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.9282, allocations: 1.094 kB / 0.75 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9283, allocations: 3.531 kB / 0.75 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.916e-06/0.9283, allocations: 3.188 kB / 0.75 GB, free: 1.613 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.001929/0.9302, allocations: 1.005 MB / 0.751 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.9302, allocations: 10.88 kB / 0.751 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.501e-05/0.9303, allocations: 77.95 kB / 0.7511 GB, free: 16.94 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.9306, allocations: 57.33 kB / 0.7511 GB, free: 16.92 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005233/0.9311, allocations: 319.4 kB / 0.7514 GB, free: 16.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.9311, allocations: 27.12 kB / 0.7515 GB, free: 16.75 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.9312, allocations: 40.66 kB / 0.7515 GB, free: 16.75 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007551/0.9319, allocations: 0.5176 MB / 0.752 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.9319, allocations: 0.9688 kB / 0.752 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.581e-05/0.932, allocations: 16.66 kB / 0.752 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.932, allocations: 8.969 kB / 0.752 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007419/0.9327, allocations: 0.4927 MB / 0.7525 GB, free: 16.65 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.9352, allocations: 1.938 MB / 0.7544 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006034/0.9358, allocations: 362.5 kB / 0.7547 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.9361, allocations: 170.6 kB / 0.7549 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003989/0.9365, allocations: 136 kB / 0.755 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.9365, allocations: 45.17 kB / 0.7551 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.9365, allocations: 0.6562 kB / 0.7551 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30): time 0.001003/0.9375, allocations: 0.4942 MB / 0.7556 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.9376, allocations: 115.4 kB / 0.7557 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003778/0.938, allocations: 400.8 kB / 0.7561 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.45e-05/0.938, allocations: 35.92 kB / 0.7561 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.9382, allocations: 213.6 kB / 0.7563 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.019e-05/0.9382, allocations: 109.4 kB / 0.7564 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.9383, allocations: 76.11 kB / 0.7565 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.9385, allocations: 355.8 kB / 0.7568 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.9388, allocations: 153.6 kB / 0.757 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.9391, allocations: 257.3 kB / 0.7572 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.9397, allocations: 484.8 kB / 0.7577 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.9397, allocations: 4.25 kB / 0.7577 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008878/0.9406, allocations: 0.5514 MB / 0.7582 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.699e-05/0.9407, allocations: 57.78 kB / 0.7583 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.9407, allocations: 5.344 kB / 0.7583 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.9407, allocations: 6.219 kB / 0.7583 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.9411, allocations: 89.81 kB / 0.7584 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.9411, allocations: 10.86 kB / 0.7584 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.9414, allocations: 50.64 kB / 0.7584 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.9415, allocations: 22.52 kB / 0.7584 GB, free: 13.97 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.0002185/0.9417, allocations: 191.3 kB / 0.7586 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.9418, allocations: 42.55 kB / 0.7587 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009497/0.9427, allocations: 494.5 kB / 0.7591 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.9428, allocations: 3.25 kB / 0.7591 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.9428, allocations: 7.328 kB / 0.7591 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.9428, allocations: 0.8438 kB / 0.7591 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/0.9451, allocations: 1.359 MB / 0.7605 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.9451, allocations: 3.094 kB / 0.7605 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.9453, allocations: 61.88 kB / 0.7605 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.9453, allocations: 2.844 kB / 0.7605 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.9454, allocations: 15.67 kB / 0.7605 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.9454, allocations: 2.375 kB / 0.7605 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.9454, allocations: 4.625 kB / 0.7606 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007333/0.9461, allocations: 0.639 MB / 0.7612 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.395e-05/0.9462, allocations: 56.7 kB / 0.7612 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.721e-05/0.9463, allocations: 12.25 kB / 0.7612 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004133/0.9467, allocations: 21.16 kB / 0.7613 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-05/0.9467, allocations: 28.12 kB / 0.7613 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.142e-05/0.9468, allocations: 22.88 kB / 0.7613 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003593/0.9471, allocations: 361.6 kB / 0.7617 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9471, allocations: 0.9375 kB / 0.7617 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001113/0.9483, allocations: 357 kB / 0.762 GB, free: 12.67 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.002067/0.9503, allocations: 1.585 MB / 0.7635 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000735/0.9511, allocations: 459.5 kB / 0.764 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.9511, allocations: 3.438 kB / 0.764 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.9513, allocations: 161.2 kB / 0.7641 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.9527, allocations: 286.1 kB / 0.7644 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005934/0.9586, allocations: 4.583 MB / 0.7689 GB, free: 9.492 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.9591, allocations: 0.8413 MB / 0.7697 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004218/0.9595, allocations: 111.3 kB / 0.7698 GB, free: 8.77 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.9597, allocations: 144.6 kB / 0.77 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of SimCode: time 8.71e-07/0.9597, allocations: 4.25 kB / 0.77 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05089/1.011, allocations: 20.13 MB / 0.7896 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/13.23, allocations: 7.875 kB / 0.7896 GB, free: 3.184 MB / 0.5762 GB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.28378447983414]