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: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_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.00208/0.00208, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.002352/0.002352, allocations: 188 kB / 19.34 MB, free: 3.641 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.544/1.544, allocations: 222.9 MB / 243 MB, free: 15.14 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.2168/0.2168, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 76.02 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1264, allocations: 60.81 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4697/0.5962, allocations: 181.3 MB / 0.6367 GB, free: 10.77 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.5982, allocations: 0.9008 MB / 0.6376 GB, free: 9.867 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002676/0.5985, allocations: 7.938 kB / 0.6376 GB, free: 9.859 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006391/0.5991, allocations: 202.7 kB / 0.6378 GB, free: 9.66 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005355/0.5997, allocations: 286.3 kB / 0.6381 GB, free: 9.379 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005982/0.6057, allocations: 1.903 MB / 0.6399 GB, free: 7.484 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001887/0.6076, allocations: 0.9827 MB / 0.6409 GB, free: 6.496 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005308/0.6082, allocations: 333.4 kB / 0.6412 GB, free: 6.176 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003429/0.6116, allocations: 1.523 MB / 0.6427 GB, free: 4.648 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005557/0.6122, allocations: 330.8 kB / 0.643 GB, free: 4.324 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-05/0.6123, allocations: 48 kB / 0.6431 GB, free: 4.277 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004599/0.6169, allocations: 2.734 MB / 0.6457 GB, free: 1.539 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002574/0.6172, allocations: 191.5 kB / 0.6459 GB, free: 1.352 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.6175, allocations: 274.9 kB / 0.6462 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.6208, allocations: 2.019 MB / 0.6482 GB, free: 15.06 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.6208, allocations: 0 / 0.6482 GB, free: 15.06 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6208, allocations: 0 / 0.6482 GB, free: 15.06 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.6208, allocations: 0 / 0.6482 GB, free: 15.06 MB / 494.1 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.001742/0.6226, allocations: 1.036 MB / 0.6492 GB, free: 13.96 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.6226, allocations: 8.031 kB / 0.6492 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002725/0.6229, allocations: 63.36 kB / 0.6492 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00057/0.6235, allocations: 377.9 kB / 0.6496 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.6235, allocations: 29 kB / 0.6496 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.6236, allocations: 39.94 kB / 0.6497 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008324/0.6244, allocations: 0.524 MB / 0.6502 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.6245, allocations: 0 / 0.6502 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.6245, allocations: 16 kB / 0.6502 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.6245, allocations: 8 kB / 0.6502 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008306/0.6254, allocations: 0.4918 MB / 0.6507 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.628, allocations: 1.967 MB / 0.6526 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006975/0.6287, allocations: 456.7 kB / 0.653 GB, free: 9.742 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.629, allocations: 182.5 kB / 0.6532 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007876/0.6298, allocations: 0.9493 MB / 0.6541 GB, free: 8.402 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.6298, allocations: 46.72 kB / 0.6542 GB, free: 8.348 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.6299, allocations: 0 / 0.6542 GB, free: 8.348 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001086/0.6309, allocations: 499.7 kB / 0.6547 GB, free: 7.855 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.631, allocations: 118.7 kB / 0.6548 GB, free: 7.715 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004101/0.6314, allocations: 397.6 kB / 0.6552 GB, free: 7.316 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.6315, allocations: 33.7 kB / 0.6552 GB, free: 7.277 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.6316, allocations: 224 kB / 0.6554 GB, free: 7.055 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.941e-05/0.6317, allocations: 98.56 kB / 0.6555 GB, free: 6.957 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.6319, allocations: 78.05 kB / 0.6556 GB, free: 6.875 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.632, allocations: 350.8 kB / 0.6559 GB, free: 6.523 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.6323, allocations: 148.6 kB / 0.656 GB, free: 6.379 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.6327, allocations: 270 kB / 0.6563 GB, free: 6.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006841/0.6334, allocations: 479 kB / 0.6568 GB, free: 5.547 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6334, allocations: 0 / 0.6568 GB, free: 5.547 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009429/0.6343, allocations: 0.547 MB / 0.6573 GB, free: 4.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.702e-05/0.6344, allocations: 59.41 kB / 0.6573 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.6344, allocations: 4 kB / 0.6573 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.6344, allocations: 8 kB / 0.6574 GB, free: 4.898 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.6348, allocations: 84.25 kB / 0.6574 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.6348, allocations: 15.94 kB / 0.6575 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.6352, allocations: 51.42 kB / 0.6575 GB, free: 4.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.6352, allocations: 20 kB / 0.6575 GB, free: 4.73 MB / 494.1 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.000214/0.6354, allocations: 185.6 kB / 0.6577 GB, free: 4.539 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.6356, allocations: 43.53 kB / 0.6577 GB, free: 4.496 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009758/0.6365, allocations: 490.7 kB / 0.6582 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.892e-06/0.6366, allocations: 4 kB / 0.6582 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6366, allocations: 0 / 0.6582 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-06/0.6366, allocations: 8 kB / 0.6582 GB, free: 4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00286/0.6395, allocations: 2.428 MB / 0.6606 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.6395, allocations: 4.062 kB / 0.6606 GB, free: 1.223 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002836/0.6398, allocations: 63.89 kB / 0.6607 GB, free: 1.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.6398, allocations: 11.88 kB / 0.6607 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.6398, allocations: 8 kB / 0.6607 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.273e-06/0.6398, allocations: 7.938 kB / 0.6607 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.6398, allocations: 4 kB / 0.6607 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007729/0.6406, allocations: 0.6398 MB / 0.6613 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.6407, allocations: 132.4 kB / 0.6614 GB, free: 312 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.541e-05/0.6408, allocations: 15.89 kB / 0.6615 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.6412, allocations: 15.98 kB / 0.6615 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.3e-05/0.6413, allocations: 23.97 kB / 0.6615 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/0.6414, allocations: 23.98 kB / 0.6615 GB, free: 232 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004034/0.6418, allocations: 363.1 kB / 0.6619 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6418, allocations: 4 kB / 0.6619 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001103/0.6429, allocations: 339.7 kB / 0.6622 GB, free: 15.54 MB / 0.4981 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.00114/0.644, allocations: 495.8 kB / 0.6627 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008421/0.6449, allocations: 478.3 kB / 0.6631 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.6449, allocations: 0 / 0.6631 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003111/0.6452, allocations: 172.8 kB / 0.6633 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.6466, allocations: 289.6 kB / 0.6636 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.6479, allocations: 0.7919 MB / 0.6643 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.6483, allocations: 0.8351 MB / 0.6651 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003993/0.6487, allocations: 116.2 kB / 0.6653 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.6489, allocations: 47.42 kB / 0.6653 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of SimCode: time 4.91e-07/0.6489, allocations: 0 / 0.6653 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of Templates: time 0.02393/0.6728, allocations: 14.87 MB / 0.6798 GB, free: 13.54 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/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