Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001858/0.001858, allocations: 179.6 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.663/1.663, allocations: 205.4 MB / 222.5 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008474/0.0008475, allocations: 86.36 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3692/0.3692, allocations: 43.56 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 12 kB / 431.4 MB, free: 5.914 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1309, allocations: 58.84 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4475/0.5785, allocations: 169.5 MB / 0.6443 GB, free: 13.2 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.5805, allocations: 0.8901 MB / 0.6452 GB, free: 12.31 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004017/0.5809, allocations: 15.88 kB / 0.6452 GB, free: 12.29 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006305/0.5815, allocations: 135 kB / 0.6453 GB, free: 12.16 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.000806/0.5824, allocations: 286.4 kB / 0.6456 GB, free: 11.88 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005065/0.5874, allocations: 1.598 MB / 0.6472 GB, free: 10.29 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.5889, allocations: 1.1 MB / 0.6482 GB, free: 9.191 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005969/0.5895, allocations: 266.9 kB / 0.6485 GB, free: 8.941 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003783/0.5933, allocations: 1.473 MB / 0.6499 GB, free: 7.469 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005828/0.5939, allocations: 306.9 kB / 0.6502 GB, free: 7.168 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.594, allocations: 23.94 kB / 0.6502 GB, free: 7.145 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004881/0.5989, allocations: 2.453 MB / 0.6526 GB, free: 4.691 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003549/0.5993, allocations: 167.6 kB / 0.6528 GB, free: 4.527 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.5996, allocations: 117.5 kB / 0.6529 GB, free: 4.406 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00318/0.6028, allocations: 1.368 MB / 0.6543 GB, free: 3.035 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.6028, allocations: 0 / 0.6543 GB, free: 3.035 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6029, allocations: 0 / 0.6543 GB, free: 3.035 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.452e-05/0.6029, allocations: 0 / 0.6543 GB, free: 3.035 MB / 474.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.002419/0.6053, allocations: 0.9777 MB / 0.6552 GB, free: 2 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.6054, allocations: 12.03 kB / 0.6552 GB, free: 1.988 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.6057, allocations: 59.44 kB / 0.6553 GB, free: 1.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006093/0.6063, allocations: 362.1 kB / 0.6556 GB, free: 1.539 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.442e-05/0.6064, allocations: 29 kB / 0.6556 GB, free: 1.512 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.743e-05/0.6065, allocations: 32 kB / 0.6557 GB, free: 1.48 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.6075, allocations: 0.5336 MB / 0.6562 GB, free: 0.918 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.6075, allocations: 3.938 kB / 0.6562 GB, free: 0.9141 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.901e-05/0.6076, allocations: 16 kB / 0.6562 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.6076, allocations: 8 kB / 0.6562 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009087/0.6085, allocations: 0.5034 MB / 0.6567 GB, free: 396 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002877/0.6114, allocations: 1.972 MB / 0.6586 GB, free: 14.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007302/0.6121, allocations: 458.1 kB / 0.6591 GB, free: 13.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003308/0.6125, allocations: 178.5 kB / 0.6592 GB, free: 13.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008384/0.6133, allocations: 0.9533 MB / 0.6602 GB, free: 12.44 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.6134, allocations: 46.48 kB / 0.6602 GB, free: 12.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.6134, allocations: 4 kB / 0.6602 GB, free: 12.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=30): time 0.001167/0.6146, allocations: 0.5031 MB / 0.6607 GB, free: 11.88 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.6146, allocations: 110.8 kB / 0.6608 GB, free: 11.74 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004517/0.6151, allocations: 401.5 kB / 0.6612 GB, free: 11.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.6152, allocations: 29.7 kB / 0.6612 GB, free: 11.31 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.6153, allocations: 220.1 kB / 0.6614 GB, free: 11.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.645e-05/0.6154, allocations: 102.5 kB / 0.6615 GB, free: 10.99 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.851e-05/0.6155, allocations: 12 kB / 0.6616 GB, free: 10.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.6156, allocations: 346.8 kB / 0.6619 GB, free: 10.63 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.6159, allocations: 152.6 kB / 0.662 GB, free: 10.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.6163, allocations: 270 kB / 0.6623 GB, free: 10.17 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.6168, allocations: 248.6 kB / 0.6625 GB, free: 9.918 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.6168, allocations: 4 kB / 0.6625 GB, free: 9.914 MB / 490.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00102/0.6178, allocations: 0.5609 MB / 0.6631 GB, free: 9.336 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.59e-05/0.6179, allocations: 63.39 kB / 0.6631 GB, free: 9.262 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.6179, allocations: 4 kB / 0.6631 GB, free: 9.258 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.6179, allocations: 4 kB / 0.6631 GB, free: 9.254 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004309/0.6183, allocations: 83.89 kB / 0.6632 GB, free: 9.172 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.847e-05/0.6184, allocations: 8 kB / 0.6632 GB, free: 9.164 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.6188, allocations: 71.41 kB / 0.6633 GB, free: 9.094 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.611e-05/0.6189, allocations: 27.42 kB / 0.6633 GB, free: 9.07 MB / 490.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002399/0.6191, allocations: 185.7 kB / 0.6635 GB, free: 8.879 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.6192, allocations: 39.53 kB / 0.6635 GB, free: 8.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.6203, allocations: 0.4913 MB / 0.664 GB, free: 8.336 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.6203, allocations: 4 kB / 0.664 GB, free: 8.332 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.6203, allocations: 0 / 0.664 GB, free: 8.332 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.6203, allocations: 0 / 0.664 GB, free: 8.332 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003035/0.6234, allocations: 2.437 MB / 0.6664 GB, free: 5.547 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.6234, allocations: 4 kB / 0.6664 GB, free: 5.543 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.6237, allocations: 67.84 kB / 0.6665 GB, free: 5.477 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.6237, allocations: 7.953 kB / 0.6665 GB, free: 5.469 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.6238, allocations: 11.98 kB / 0.6665 GB, free: 5.457 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.6238, allocations: 4 kB / 0.6665 GB, free: 5.453 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.6238, allocations: 7.938 kB / 0.6665 GB, free: 5.445 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008211/0.6246, allocations: 0.6378 MB / 0.6671 GB, free: 4.773 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.6248, allocations: 152.4 kB / 0.6673 GB, free: 4.605 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.087e-05/0.6249, allocations: 15.95 kB / 0.6673 GB, free: 4.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004642/0.6253, allocations: 23.92 kB / 0.6673 GB, free: 4.566 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.696e-05/0.6254, allocations: 27.97 kB / 0.6673 GB, free: 4.539 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.439e-05/0.6255, allocations: 23.98 kB / 0.6674 GB, free: 4.516 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003958/0.6259, allocations: 351.1 kB / 0.6677 GB, free: 4.176 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.363e-06/0.6259, allocations: 0 / 0.6677 GB, free: 4.176 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001164/0.6271, allocations: 375.6 kB / 0.6681 GB, free: 3.809 MB / 490.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001524/0.6286, allocations: 0.5693 MB / 0.6686 GB, free: 3.242 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0008284/0.6294, allocations: 483.2 kB / 0.6691 GB, free: 2.746 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.6295, allocations: 0.75 kB / 0.6691 GB, free: 2.746 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.6298, allocations: 172 kB / 0.6692 GB, free: 2.578 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/0.6312, allocations: 264 kB / 0.6695 GB, free: 2.328 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.6327, allocations: 0.9677 MB / 0.6704 GB, free: 1.312 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.6331, allocations: 0.8315 MB / 0.6712 GB, free: 468 kB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.6333, allocations: 51.42 kB / 0.6713 GB, free: 420 kB / 490.7 MB Notification: Performance of SimCode: time 4.21e-07/0.6333, allocations: 0 / 0.6713 GB, free: 420 kB / 490.7 MB Notification: Performance of Templates: time 0.1984/0.8317, allocations: 11.81 MB / 0.6828 GB, free: 148.3 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches