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.001084/0.001084, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2039/0.2039, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 71.88 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1156, allocations: 62.46 MB / 481.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3744/0.49, allocations: 184.7 MB / 0.6505 GB, free: 9.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.4917, allocations: 0.894 MB / 0.6514 GB, free: 9.035 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.4919, allocations: 11.94 kB / 0.6514 GB, free: 9.023 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005954/0.4925, allocations: 206.6 kB / 0.6516 GB, free: 8.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004734/0.493, allocations: 282.3 kB / 0.6519 GB, free: 8.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004722/0.4977, allocations: 1.91 MB / 0.6537 GB, free: 6.633 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009793/0.4987, allocations: 0.9788 MB / 0.6547 GB, free: 5.652 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.4992, allocations: 334.8 kB / 0.655 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002914/0.5021, allocations: 1.569 MB / 0.6565 GB, free: 3.758 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.5025, allocations: 318.8 kB / 0.6569 GB, free: 3.445 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.5026, allocations: 48 kB / 0.6569 GB, free: 3.398 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004287/0.5069, allocations: 2.784 MB / 0.6596 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.5071, allocations: 195.5 kB / 0.6598 GB, free: 428 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.5074, allocations: 266.9 kB / 0.6601 GB, free: 160 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00275/0.5102, allocations: 2.05 MB / 0.6621 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.5102, allocations: 0 / 0.6621 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5102, allocations: 4 kB / 0.6621 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.5102, allocations: 0 / 0.6621 GB, free: 14.1 MB / 0.4981 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.001699/0.5119, allocations: 1.048 MB / 0.6631 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.512, allocations: 8.031 kB / 0.6631 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.5122, allocations: 67.38 kB / 0.6632 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.5128, allocations: 381.9 kB / 0.6635 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.5128, allocations: 28.94 kB / 0.6636 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.466e-05/0.5129, allocations: 43.94 kB / 0.6636 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008823/0.5138, allocations: 0.5198 MB / 0.6641 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.5138, allocations: 0 / 0.6641 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.709e-05/0.5139, allocations: 16 kB / 0.6641 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.5139, allocations: 12 kB / 0.6641 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008355/0.5147, allocations: 0.4953 MB / 0.6646 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00265/0.5174, allocations: 1.967 MB / 0.6665 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006869/0.5181, allocations: 448.7 kB / 0.667 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.5184, allocations: 186.1 kB / 0.6671 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007665/0.5192, allocations: 0.9494 MB / 0.6681 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.5192, allocations: 42.5 kB / 0.6681 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 3.817e-06/0.5192, allocations: 3.984 kB / 0.6681 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001101/0.5204, allocations: 0.4931 MB / 0.6686 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.5204, allocations: 106.8 kB / 0.6687 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.5209, allocations: 397.6 kB / 0.6691 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/0.5209, allocations: 33.7 kB / 0.6691 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.5211, allocations: 220.1 kB / 0.6693 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.41e-05/0.5212, allocations: 98.5 kB / 0.6694 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.5213, allocations: 78.05 kB / 0.6695 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.5215, allocations: 354.8 kB / 0.6698 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.5218, allocations: 148.7 kB / 0.67 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.5221, allocations: 258.2 kB / 0.6702 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006275/0.5228, allocations: 487.3 kB / 0.6707 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5228, allocations: 5.188 kB / 0.6707 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009283/0.5237, allocations: 0.5353 MB / 0.6712 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.009e-05/0.5238, allocations: 67.39 kB / 0.6713 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5238, allocations: 4.375 kB / 0.6713 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.5238, allocations: 12 kB / 0.6713 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/0.5242, allocations: 79.83 kB / 0.6714 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.5242, allocations: 11.94 kB / 0.6714 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.5245, allocations: 55.42 kB / 0.6714 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-05/0.5246, allocations: 26.5 kB / 0.6714 GB, free: 3.762 MB / 0.4981 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.0002045/0.5248, allocations: 181.6 kB / 0.6716 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.525, allocations: 43.53 kB / 0.6717 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000984/0.526, allocations: 484.2 kB / 0.6721 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.526, allocations: 4.297 kB / 0.6721 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/0.526, allocations: 11.92 kB / 0.6721 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.526, allocations: 11.98 kB / 0.6721 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.5289, allocations: 2.44 MB / 0.6745 GB, free: 248 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5289, allocations: 0 / 0.6745 GB, free: 248 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/0.5292, allocations: 63.91 kB / 0.6746 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.5292, allocations: 7.938 kB / 0.6746 GB, free: 176 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.5293, allocations: 8 kB / 0.6746 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.5293, allocations: 4 kB / 0.6746 GB, free: 164 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5293, allocations: 7.984 kB / 0.6746 GB, free: 156 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008172/0.5301, allocations: 0.6356 MB / 0.6752 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.5303, allocations: 128.5 kB / 0.6754 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.75e-05/0.5303, allocations: 15.84 kB / 0.6754 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004/0.5307, allocations: 15.98 kB / 0.6754 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.809e-05/0.5308, allocations: 27.91 kB / 0.6754 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.5309, allocations: 23.98 kB / 0.6754 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003705/0.5312, allocations: 363.1 kB / 0.6758 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5312, allocations: 7.938 kB / 0.6758 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001059/0.5323, allocations: 339.8 kB / 0.6761 GB, free: 14.56 MB / 0.5137 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.001048/0.5334, allocations: 0.4925 MB / 0.6766 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007721/0.5341, allocations: 474.3 kB / 0.6771 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5342, allocations: 0 / 0.6771 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002988/0.5345, allocations: 163.8 kB / 0.6772 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.5358, allocations: 290.6 kB / 0.6775 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.537, allocations: 0.7923 MB / 0.6783 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.5375, allocations: 0.8429 MB / 0.6791 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003746/0.5379, allocations: 114.5 kB / 0.6792 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.538, allocations: 47.42 kB / 0.6792 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of SimCode: time 4.41e-07/0.538, allocations: 0 / 0.6792 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of Templates: time 0.02263/0.5606, allocations: 15.02 MB / 0.6939 GB, free: 12.36 MB / 0.5294 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 -s cvode -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/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_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches