Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001763/0.001763, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002464/0.002464, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.738/1.738, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.24/0.24, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 71.89 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.405/0.4064, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.2171/0.6236, allocations: 184.7 MB / 0.7113 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002167/0.6258, allocations: 0.8938 MB / 0.7122 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004355/0.6263, allocations: 11.94 kB / 0.7122 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008467/0.6271, allocations: 206.7 kB / 0.7124 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0008662/0.628, allocations: 294.3 kB / 0.7127 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005976/0.634, allocations: 1.917 MB / 0.7146 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001432/0.6355, allocations: 0.9788 MB / 0.7155 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006438/0.6361, allocations: 325.1 kB / 0.7158 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003943/0.6401, allocations: 1.562 MB / 0.7174 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000682/0.6408, allocations: 318.8 kB / 0.7177 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.641, allocations: 48 kB / 0.7177 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3649/1.006, allocations: 2.776 MB / 0.7204 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003714/1.006, allocations: 196.6 kB / 0.7206 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004656/1.007, allocations: 268.7 kB / 0.7209 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004714/1.011, allocations: 2.059 MB / 0.7229 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/1.012, allocations: 1.625 kB / 0.7229 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.382e-06/1.012, allocations: 0 / 0.7229 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.959e-05/1.012, allocations: 0.9688 kB / 0.7229 GB, free: 4.98 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.002275/1.014, allocations: 1.081 MB / 0.7239 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/1.014, allocations: 9.625 kB / 0.7239 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003122/1.014, allocations: 57.88 kB / 0.724 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005477/1.015, allocations: 392.8 kB / 0.7244 GB, free: 3.992 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/1.015, allocations: 28.95 kB / 0.7244 GB, free: 3.992 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.878e-05/1.015, allocations: 36.16 kB / 0.7244 GB, free: 3.992 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008981/1.016, allocations: 0.5159 MB / 0.7249 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/1.016, allocations: 0.625 kB / 0.7249 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.051e-05/1.016, allocations: 18 kB / 0.725 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/1.016, allocations: 10.56 kB / 0.725 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000877/1.017, allocations: 498.5 kB / 0.7254 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/1.019, allocations: 1.978 MB / 0.7274 GB, free: 18.72 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007123/1.02, allocations: 461 kB / 0.7278 GB, free: 18.56 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/1.02, allocations: 181 kB / 0.728 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008184/1.021, allocations: 0.9482 MB / 0.7289 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/1.021, allocations: 44.86 kB / 0.729 GB, free: 17.46 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=30): time 2.205e-06/1.021, allocations: 0.9688 kB / 0.729 GB, free: 17.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30): time 0.001121/1.022, allocations: 0.4959 MB / 0.7294 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/1.023, allocations: 110.5 kB / 0.7295 GB, free: 17.29 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000448/1.023, allocations: 397.5 kB / 0.7299 GB, free: 17.17 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.31e-05/1.023, allocations: 33.53 kB / 0.73 GB, free: 17.14 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/1.023, allocations: 220.6 kB / 0.7302 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.668e-05/1.023, allocations: 110.7 kB / 0.7303 GB, free: 16.94 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/1.023, allocations: 81.2 kB / 0.7303 GB, free: 16.92 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001213/1.023, allocations: 352.1 kB / 0.7307 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/1.024, allocations: 149.2 kB / 0.7308 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003164/1.024, allocations: 253.2 kB / 0.7311 GB, free: 16.49 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000631/1.025, allocations: 489.4 kB / 0.7315 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.025, allocations: 0 / 0.7315 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009079/1.026, allocations: 0.5518 MB / 0.7321 GB, free: 16.19 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.947e-05/1.026, allocations: 65.61 kB / 0.7321 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/1.026, allocations: 7.281 kB / 0.7321 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/1.026, allocations: 7.844 kB / 0.7322 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003612/1.026, allocations: 82.19 kB / 0.7322 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/1.026, allocations: 5.375 kB / 0.7322 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/1.027, allocations: 52.88 kB / 0.7323 GB, free: 16.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-05/1.027, allocations: 19.62 kB / 0.7323 GB, free: 16.11 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.0001995/1.027, allocations: 192.9 kB / 0.7325 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/1.027, allocations: 46.25 kB / 0.7325 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000924/1.028, allocations: 487 kB / 0.733 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/1.028, allocations: 2.625 kB / 0.733 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/1.028, allocations: 3.406 kB / 0.733 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/1.028, allocations: 4.281 kB / 0.733 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/1.031, allocations: 2.438 MB / 0.7354 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/1.031, allocations: 4.062 kB / 0.7354 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/1.031, allocations: 64.19 kB / 0.7355 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/1.031, allocations: 6.219 kB / 0.7355 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/1.031, allocations: 13.19 kB / 0.7355 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/1.031, allocations: 4.75 kB / 0.7355 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.031, allocations: 3.625 kB / 0.7355 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007636/1.032, allocations: 0.6401 MB / 0.7361 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/1.032, allocations: 127.6 kB / 0.7362 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/1.032, allocations: 14.83 kB / 0.7362 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004212/1.032, allocations: 20.16 kB / 0.7363 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/1.033, allocations: 28.73 kB / 0.7363 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/1.033, allocations: 19.84 kB / 0.7363 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003507/1.033, allocations: 363.1 kB / 0.7367 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.033, allocations: 3.438 kB / 0.7367 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001215/1.034, allocations: 358.3 kB / 0.737 GB, free: 13.38 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.001125/1.035, allocations: 0.5045 MB / 0.7375 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007698/1.036, allocations: 473.8 kB / 0.7379 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.036, allocations: 0 / 0.7379 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000281/1.036, allocations: 174.9 kB / 0.7381 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/1.038, allocations: 280.1 kB / 0.7384 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/1.039, allocations: 0.7981 MB / 0.7392 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/1.039, allocations: 0.8391 MB / 0.74 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000382/1.04, allocations: 123.1 kB / 0.7401 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/1.04, allocations: 44.31 kB / 0.7401 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of SimCode: time 3.3e-07/1.04, allocations: 0 / 0.7401 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of Templates: time 0.023/1.063, allocations: 15.09 MB / 0.7549 GB, free: 10.85 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches