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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 114.4 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 183.8 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2243/0.2243, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 71.88 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4718/0.474, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.1897/0.6637, allocations: 181.3 MB / 0.6955 GB, free: 6.152 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001743/0.6655, allocations: 0.8891 MB / 0.6964 GB, free: 5.258 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.6657, allocations: 11.94 kB / 0.6964 GB, free: 5.246 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0006119/0.6663, allocations: 210.7 kB / 0.6966 GB, free: 5.039 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005075/0.6669, allocations: 290.3 kB / 0.6968 GB, free: 4.754 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004851/0.6718, allocations: 1.914 MB / 0.6987 GB, free: 2.844 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001003/0.6728, allocations: 0.9827 MB / 0.6997 GB, free: 1.859 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004148/0.6732, allocations: 325.1 kB / 0.7 GB, free: 1.539 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.6762, allocations: 1.538 MB / 0.7015 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004739/0.6767, allocations: 326.7 kB / 0.7018 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.1e-05/0.6768, allocations: 48 kB / 0.7018 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004526/0.6813, allocations: 2.73 MB / 0.7045 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002539/0.6816, allocations: 195.5 kB / 0.7047 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003328/0.682, allocations: 270.9 kB / 0.705 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004189/0.6862, allocations: 2.029 MB / 0.7069 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.6862, allocations: 0 / 0.7069 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6862, allocations: 0 / 0.7069 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.6862, allocations: 0 / 0.7069 GB, free: 10.4 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.001906/0.6881, allocations: 1.073 MB / 0.708 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.6882, allocations: 8.031 kB / 0.708 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.222e-05/0.6883, allocations: 78.47 kB / 0.7081 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002618/0.6885, allocations: 55.72 kB / 0.7081 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005475/0.6891, allocations: 390.1 kB / 0.7085 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.6891, allocations: 25 kB / 0.7085 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.184e-05/0.6892, allocations: 39.98 kB / 0.7086 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008464/0.69, allocations: 0.5198 MB / 0.7091 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.6901, allocations: 0 / 0.7091 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.702e-05/0.6901, allocations: 20 kB / 0.7091 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.6901, allocations: 8 kB / 0.7091 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008525/0.691, allocations: 0.4915 MB / 0.7096 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.6935, allocations: 1.975 MB / 0.7115 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006762/0.6941, allocations: 460.7 kB / 0.7119 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.6945, allocations: 178.5 kB / 0.7121 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00076/0.6952, allocations: 0.9494 MB / 0.713 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.6953, allocations: 46.5 kB / 0.7131 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.6953, allocations: 0 / 0.7131 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30): time 0.001072/0.6964, allocations: 0.493 MB / 0.7136 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.6964, allocations: 106.8 kB / 0.7137 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000389/0.6968, allocations: 397.6 kB / 0.714 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.6969, allocations: 37.7 kB / 0.7141 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.697, allocations: 220.5 kB / 0.7143 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.907e-05/0.6971, allocations: 115 kB / 0.7144 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.6972, allocations: 74.06 kB / 0.7145 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.6974, allocations: 350.7 kB / 0.7148 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003025/0.6977, allocations: 156.6 kB / 0.715 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.6981, allocations: 254.1 kB / 0.7152 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007512/0.6988, allocations: 491.6 kB / 0.7157 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.6988, allocations: 4 kB / 0.7157 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009544/0.6998, allocations: 0.5471 MB / 0.7162 GB, free: 176 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.837e-05/0.6998, allocations: 63.41 kB / 0.7163 GB, free: 100 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.6999, allocations: 4 kB / 0.7163 GB, free: 96 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.6999, allocations: 4 kB / 0.7163 GB, free: 92 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.7003, allocations: 83.83 kB / 0.7164 GB, free: 8 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.7003, allocations: 7.984 kB / 0.7164 GB, free: 0 / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2286/0.9289, allocations: 48.12 kB / 0.7164 GB, free: 189.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.929, allocations: 20.05 kB / 0.7164 GB, free: 189.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.0004075/0.9294, allocations: 189.3 kB / 0.7166 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003082/0.9298, allocations: 46.27 kB / 0.7166 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.9311, allocations: 488.8 kB / 0.7171 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.9311, allocations: 5.562 kB / 0.7171 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.9312, allocations: 1.094 kB / 0.7171 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.9312, allocations: 4.891 kB / 0.7171 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/0.9339, allocations: 2.434 MB / 0.7195 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.9339, allocations: 5.875 kB / 0.7195 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.9342, allocations: 64.22 kB / 0.7196 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.465e-06/0.9342, allocations: 6.938 kB / 0.7196 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.9343, allocations: 9.062 kB / 0.7196 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.9343, allocations: 4.828 kB / 0.7196 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.9343, allocations: 2.125 kB / 0.7196 GB, free: 187.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007918/0.9351, allocations: 0.6413 MB / 0.7202 GB, free: 187.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.9352, allocations: 131.2 kB / 0.7203 GB, free: 187 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.185e-05/0.9353, allocations: 12.33 kB / 0.7204 GB, free: 187 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004358/0.9357, allocations: 20.52 kB / 0.7204 GB, free: 187 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.054e-05/0.9358, allocations: 27.3 kB / 0.7204 GB, free: 187 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.354e-05/0.9358, allocations: 22.62 kB / 0.7204 GB, free: 187 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003879/0.9362, allocations: 366.7 kB / 0.7208 GB, free: 186.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9362, allocations: 2.469 kB / 0.7208 GB, free: 186.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001104/0.9374, allocations: 348.3 kB / 0.7211 GB, free: 186.8 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.001979/0.9393, allocations: 1.572 MB / 0.7226 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008142/0.9402, allocations: 477.6 kB / 0.7231 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.9402, allocations: 0 / 0.7231 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.9405, allocations: 169.6 kB / 0.7233 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.9419, allocations: 283.8 kB / 0.7235 GB, free: 185.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005388/0.9473, allocations: 4.592 MB / 0.728 GB, free: 182.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.9476, allocations: 0.8374 MB / 0.7288 GB, free: 181.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004494/0.9481, allocations: 118.4 kB / 0.7289 GB, free: 181.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.9483, allocations: 143.2 kB / 0.7291 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of SimCode: time 4.51e-07/0.9483, allocations: 0 / 0.7291 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03557/0.9839, allocations: 19.58 MB / 0.7482 GB, free: 168.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.669/9.653, allocations: 1.031 kB / 0.7482 GB, free: 168.8 MB / 0.5606 GB (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.0008 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) 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) Reference file matches