Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0009967/0.0009967, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 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.001034/0.001034, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8838/0.8838, allocations: 158.6 MB / 185 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1294/0.1294, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 3.938 kB / 406.8 MB, free: 2.242 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.8e-05/1.99e-05, allocations: 17.95 kB / 406.9 MB, free: 2.227 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3142/0.3142, allocations: 161.4 MB / 0.5549 GB, free: 3.883 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.3155, allocations: 0.8893 MB / 0.5558 GB, free: 3.27 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.3156, allocations: 13.34 kB / 0.5558 GB, free: 3.262 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006124/0.3163, allocations: 203.9 kB / 0.556 GB, free: 3.145 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004793/0.3167, allocations: 296 kB / 0.5563 GB, free: 2.961 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004066/0.3208, allocations: 2.222 MB / 0.5585 GB, free: 1.91 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008308/0.3216, allocations: 0.9842 MB / 0.5594 GB, free: 1.43 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002965/0.3219, allocations: 267.6 kB / 0.5597 GB, free: 1.246 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00261/0.3245, allocations: 1.859 MB / 0.5615 GB, free: 108 kB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002951/0.3248, allocations: 299.2 kB / 0.5618 GB, free: 15.95 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 5.885e-05/0.3249, allocations: 44.59 kB / 0.5618 GB, free: 15.95 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002845/0.3277, allocations: 2.465 MB / 0.5642 GB, free: 14.72 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.3279, allocations: 204.7 kB / 0.5644 GB, free: 14.58 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.328, allocations: 204.5 kB / 0.5646 GB, free: 14.48 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002102/0.3301, allocations: 2.311 MB / 0.5669 GB, free: 13.07 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3301, allocations: 0 / 0.5669 GB, free: 13.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3301, allocations: 0.9375 kB / 0.5669 GB, free: 13.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.3302, allocations: 0 / 0.5669 GB, free: 13.07 MB / 458.7 MB 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.001374/0.3315, allocations: 1.009 MB / 0.5679 GB, free: 12.26 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.3316, allocations: 10.53 kB / 0.5679 GB, free: 12.26 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002109/0.3318, allocations: 71.84 kB / 0.5679 GB, free: 12.19 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.332, allocations: 66.81 kB / 0.568 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.3324, allocations: 325 kB / 0.5683 GB, free: 11.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.3324, allocations: 26.41 kB / 0.5683 GB, free: 11.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.3324, allocations: 34.75 kB / 0.5684 GB, free: 11.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006509/0.3331, allocations: 0.7707 MB / 0.5691 GB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.3331, allocations: 6.656 kB / 0.5691 GB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.3331, allocations: 17.28 kB / 0.5691 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.3331, allocations: 7.844 kB / 0.5692 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005381/0.3337, allocations: 499.3 kB / 0.5696 GB, free: 10.97 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.3352, allocations: 1.561 MB / 0.5712 GB, free: 9.699 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/0.3357, allocations: 365.3 kB / 0.5715 GB, free: 9.477 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.3359, allocations: 168.1 kB / 0.5717 GB, free: 9.379 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002885/0.3362, allocations: 130.5 kB / 0.5718 GB, free: 9.324 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.3362, allocations: 43.44 kB / 0.5718 GB, free: 9.277 MB / 458.7 MB Notification: Performance of pre-optimization done (n=30): time 1.763e-06/0.3362, allocations: 0 / 0.5718 GB, free: 9.277 MB / 458.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007169/0.3369, allocations: 0.4987 MB / 0.5723 GB, free: 9.016 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.337, allocations: 111.8 kB / 0.5724 GB, free: 8.887 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.3372, allocations: 406.8 kB / 0.5728 GB, free: 8.637 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.3373, allocations: 32.3 kB / 0.5728 GB, free: 8.602 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.3374, allocations: 226.3 kB / 0.5731 GB, free: 8.398 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.212e-05/0.3375, allocations: 104.4 kB / 0.5732 GB, free: 8.309 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.755e-05/0.3375, allocations: 76.94 kB / 0.5732 GB, free: 8.262 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3376, allocations: 350.5 kB / 0.5736 GB, free: 7.918 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.3379, allocations: 203.6 kB / 0.5738 GB, free: 7.785 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.3381, allocations: 323.2 kB / 0.5741 GB, free: 7.504 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004516/0.3386, allocations: 481.7 kB / 0.5745 GB, free: 7.148 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3386, allocations: 0 / 0.5745 GB, free: 7.148 MB / 458.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006201/0.3392, allocations: 0.6136 MB / 0.5751 GB, free: 6.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.3392, allocations: 59.41 kB / 0.5752 GB, free: 6.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3392, allocations: 4 kB / 0.5752 GB, free: 6.516 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.3392, allocations: 13.61 kB / 0.5752 GB, free: 6.504 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.3394, allocations: 83.83 kB / 0.5753 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.3395, allocations: 8 kB / 0.5753 GB, free: 6.414 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.3396, allocations: 49.17 kB / 0.5753 GB, free: 6.367 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.083e-05/0.3397, allocations: 24.23 kB / 0.5754 GB, free: 6.344 MB / 458.7 MB 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.0001441/0.3398, allocations: 193.6 kB / 0.5755 GB, free: 6.145 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.185e-05/0.3399, allocations: 43.7 kB / 0.5756 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006215/0.3405, allocations: 487.5 kB / 0.576 GB, free: 5.617 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3405, allocations: 4 kB / 0.576 GB, free: 5.613 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3405, allocations: 4 kB / 0.5761 GB, free: 5.609 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3405, allocations: 5.281 kB / 0.5761 GB, free: 5.605 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.3423, allocations: 1.247 MB / 0.5773 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3423, allocations: 4 kB / 0.5773 GB, free: 4.285 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.3424, allocations: 64.09 kB / 0.5773 GB, free: 4.223 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3425, allocations: 4 kB / 0.5773 GB, free: 4.219 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.3425, allocations: 8 kB / 0.5774 GB, free: 4.211 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.3425, allocations: 9.797 kB / 0.5774 GB, free: 4.203 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3425, allocations: 3.938 kB / 0.5774 GB, free: 4.199 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00056/0.343, allocations: 0.6403 MB / 0.578 GB, free: 3.523 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.3431, allocations: 49.19 kB / 0.578 GB, free: 3.477 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.441e-05/0.3431, allocations: 15.95 kB / 0.5781 GB, free: 3.461 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.3434, allocations: 23.97 kB / 0.5781 GB, free: 3.438 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.3434, allocations: 31.84 kB / 0.5781 GB, free: 3.406 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.3435, allocations: 19.98 kB / 0.5781 GB, free: 3.387 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002672/0.3437, allocations: 363.1 kB / 0.5785 GB, free: 3.035 MB / 458.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3437, allocations: 0 / 0.5785 GB, free: 3.035 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007502/0.3445, allocations: 379 kB / 0.5788 GB, free: 2.664 MB / 458.7 MB 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.001683/0.3462, allocations: 1.707 MB / 0.5805 GB, free: 0.9258 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0006235/0.3468, allocations: 0.4901 MB / 0.581 GB, free: 408 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.3468, allocations: 0 / 0.581 GB, free: 408 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.347, allocations: 167.2 kB / 0.5811 GB, free: 244 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008576/0.3478, allocations: 279.4 kB / 0.5814 GB, free: 15.99 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.3523, allocations: 4.828 MB / 0.5861 GB, free: 10.89 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/0.3525, allocations: 228.1 kB / 0.5863 GB, free: 10.65 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0003027/0.3528, allocations: 116.4 kB / 0.5864 GB, free: 10.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.353, allocations: 148.5 kB / 0.5866 GB, free: 10.39 MB / 474.7 MB Notification: Performance of SimCode: time 6.62e-07/0.353, allocations: 0 / 0.5866 GB, free: 10.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03463/0.3876, allocations: 22.69 MB / 0.6087 GB, free: 3.672 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.304/7.692, allocations: 4.062 kB / 0.6087 GB, free: 3.668 MB / 490.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv. Warning: Get data of variable traceSubstance.C from file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv failed! Error: Could not read variable traceSubstance1.C in file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv. Warning: Get data of variable traceSubstance1.C from file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.834287173114717]