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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 105.4 kB / 16.41 MB, free: 6.461 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.001086/0.001086, allocations: 189.5 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2059/0.2059, allocations: 43.52 MB / 314.1 MB, free: 444 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 69.47 kB / 441.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1167, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.464/0.5808, allocations: 186.3 MB / 0.6698 GB, free: 152 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001954/0.5828, allocations: 0.903 MB / 0.6707 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002962/0.5831, allocations: 7.938 kB / 0.6707 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006531/0.5838, allocations: 206.7 kB / 0.6709 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.000563/0.5844, allocations: 282.3 kB / 0.6712 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005658/0.59, allocations: 2.137 MB / 0.6732 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001254/0.5913, allocations: 0.9789 MB / 0.6742 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005179/0.5918, allocations: 342.6 kB / 0.6745 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003818/0.5957, allocations: 1.69 MB / 0.6762 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004641/0.5962, allocations: 322.8 kB / 0.6765 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.422e-05/0.5963, allocations: 51.94 kB / 0.6765 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004895/0.6012, allocations: 2.94 MB / 0.6794 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.6014, allocations: 191.5 kB / 0.6796 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002853/0.6017, allocations: 270.8 kB / 0.6798 GB, free: 5.84 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003284/0.605, allocations: 2.121 MB / 0.6819 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.605, allocations: 0 / 0.6819 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.405e-06/0.605, allocations: 0 / 0.6819 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.605, allocations: 0 / 0.6819 GB, free: 3.715 MB / 0.5137 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.001843/0.6069, allocations: 1.064 MB / 0.683 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.6069, allocations: 8.031 kB / 0.683 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000261/0.6072, allocations: 63.36 kB / 0.683 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005013/0.6077, allocations: 374 kB / 0.6834 GB, free: 2.113 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.6077, allocations: 29 kB / 0.6834 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.6078, allocations: 44 kB / 0.6834 GB, free: 2.039 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008461/0.6086, allocations: 0.5275 MB / 0.684 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.6087, allocations: 0 / 0.684 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.6087, allocations: 16 kB / 0.684 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.6087, allocations: 8 kB / 0.684 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007913/0.6095, allocations: 0.4892 MB / 0.6845 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.6119, allocations: 1.957 MB / 0.6864 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006609/0.6126, allocations: 458.7 kB / 0.6868 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.6129, allocations: 186.5 kB / 0.687 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007199/0.6136, allocations: 0.9455 MB / 0.6879 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.6137, allocations: 46.5 kB / 0.688 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.6137, allocations: 0 / 0.688 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of matching and sorting (n=30): time 0.001038/0.6147, allocations: 496.9 kB / 0.6884 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.6148, allocations: 106.8 kB / 0.6885 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.6152, allocations: 409.4 kB / 0.6889 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.946e-05/0.6152, allocations: 33.7 kB / 0.689 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.6154, allocations: 220.1 kB / 0.6892 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 7.577e-05/0.6155, allocations: 98.55 kB / 0.6893 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.6156, allocations: 85.97 kB / 0.6893 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.6157, allocations: 346.8 kB / 0.6897 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.616, allocations: 148.6 kB / 0.6898 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.6164, allocations: 273.9 kB / 0.6901 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006617/0.6171, allocations: 485 kB / 0.6905 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.6171, allocations: 0 / 0.6905 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009012/0.618, allocations: 0.5548 MB / 0.6911 GB, free: 9.602 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.618, allocations: 59.41 kB / 0.6911 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.618, allocations: 0 / 0.6911 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.6181, allocations: 11.94 kB / 0.6911 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.6184, allocations: 91.81 kB / 0.6912 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.6185, allocations: 4 kB / 0.6912 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.6188, allocations: 43.89 kB / 0.6913 GB, free: 9.383 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.761e-05/0.6188, allocations: 24 kB / 0.6913 GB, free: 9.359 MB / 0.5294 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.0002012/0.619, allocations: 197.5 kB / 0.6915 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.6192, allocations: 43.44 kB / 0.6915 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009307/0.6201, allocations: 478.9 kB / 0.692 GB, free: 8.633 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.6201, allocations: 4 kB / 0.692 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.6201, allocations: 4 kB / 0.692 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.6201, allocations: 0 / 0.692 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.6228, allocations: 2.438 MB / 0.6944 GB, free: 5.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.6228, allocations: 4 kB / 0.6944 GB, free: 5.836 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002678/0.6231, allocations: 64.36 kB / 0.6944 GB, free: 5.773 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.6231, allocations: 4 kB / 0.6944 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.6231, allocations: 15.88 kB / 0.6945 GB, free: 5.754 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.6231, allocations: 4 kB / 0.6945 GB, free: 5.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6231, allocations: 4 kB / 0.6945 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007383/0.6239, allocations: 0.6413 MB / 0.6951 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 9.373e-05/0.624, allocations: 124.5 kB / 0.6952 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.983e-05/0.6241, allocations: 15.92 kB / 0.6952 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.6245, allocations: 27.98 kB / 0.6953 GB, free: 4.887 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.6246, allocations: 27.91 kB / 0.6953 GB, free: 4.859 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/0.6246, allocations: 15.98 kB / 0.6953 GB, free: 4.844 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003577/0.625, allocations: 367.1 kB / 0.6956 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.625, allocations: 0 / 0.6956 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001093/0.6261, allocations: 379.6 kB / 0.696 GB, free: 4.117 MB / 0.5294 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.001467/0.6275, allocations: 0.5854 MB / 0.6966 GB, free: 3.539 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008919/0.6284, allocations: 466.4 kB / 0.697 GB, free: 3.059 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.6285, allocations: 0 / 0.697 GB, free: 3.059 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002944/0.6288, allocations: 168.8 kB / 0.6972 GB, free: 2.895 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.6302, allocations: 279.7 kB / 0.6975 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.6314, allocations: 0.773 MB / 0.6982 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/0.6318, allocations: 0.8468 MB / 0.699 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003927/0.6322, allocations: 116.2 kB / 0.6991 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.6323, allocations: 47.42 kB / 0.6992 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of SimCode: time 4.11e-07/0.6323, allocations: 0 / 0.6992 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of Templates: time 0.02553/0.6579, allocations: 16.05 MB / 0.7149 GB, free: 0.7227 MB / 0.545 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/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) Reference file matches