Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|valveDelayed.filter.x.1.|valveDelayed.filter.x.2.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|valveDelayed.filter.x.1.|valveDelayed.filter.x.2.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 179.9 kB / 8.519 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 221.4 MB / 230.3 MB, free: 7.652 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 90.36 kB / 281.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1863/0.1863, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.905e-06/7.935e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1345, allocations: 61.9 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7669/0.9015, allocations: 351.4 MB / 0.8373 GB, free: 38.53 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.9017, allocations: 88.72 kB / 0.8374 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.1/2.001, allocations: 310.9 MB / 1.141 GB, free: 76.29 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001277/2.001, allocations: 45.36 kB / 1.141 GB, free: 76.29 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.005673/2.007, allocations: 2.095 MB / 1.143 GB, free: 75.34 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/2.007, allocations: 13.97 kB / 1.143 GB, free: 75.34 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007177/2.008, allocations: 206.4 kB / 1.143 GB, free: 75.24 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00254/2.01, allocations: 1.287 MB / 1.145 GB, free: 74.87 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/2.011, allocations: 142.3 kB / 1.145 GB, free: 74.77 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/2.011, allocations: 64.59 kB / 1.145 GB, free: 74.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002599/2.013, allocations: 1.786 MB / 1.147 GB, free: 74.76 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/2.016, allocations: 1.789 MB / 1.148 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/2.016, allocations: 0 / 1.148 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/2.016, allocations: 3.812 kB / 1.148 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.851e-05/2.016, allocations: 128 kB / 1.148 GB, free: 74.53 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01087/2.027, allocations: 6.777 MB / 1.155 GB, free: 72.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/2.028, allocations: 1.022 MB / 1.156 GB, free: 72.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008812/2.029, allocations: 0.7708 MB / 1.157 GB, free: 72.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005234/2.034, allocations: 4.389 MB / 1.161 GB, free: 69.96 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/2.034, allocations: 53.66 kB / 1.161 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=117): time 3.337e-06/2.034, allocations: 0 / 1.161 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.01571/2.05, allocations: 5.208 MB / 1.166 GB, free: 69.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/2.05, allocations: 226.2 kB / 1.166 GB, free: 69.04 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/2.052, allocations: 0.9044 MB / 1.167 GB, free: 68.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001177/2.052, allocations: 27.73 kB / 1.167 GB, free: 68.85 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/2.052, allocations: 489.4 kB / 1.168 GB, free: 68.57 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003131/2.052, allocations: 440.4 kB / 1.168 GB, free: 68.28 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.573e-05/2.052, allocations: 0 / 1.168 GB, free: 68.28 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.464e-05/2.052, allocations: 372.1 kB / 1.169 GB, free: 67.97 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009666/2.053, allocations: 0.7421 MB / 1.169 GB, free: 67.97 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/2.055, allocations: 1.053 MB / 1.17 GB, free: 67.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00521/2.06, allocations: 1.691 MB / 1.172 GB, free: 67.63 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/2.06, allocations: 2.688 kB / 1.172 GB, free: 67.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.007457/2.067, allocations: 3.147 MB / 1.175 GB, free: 67.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005504/2.068, allocations: 2.976 MB / 1.178 GB, free: 64.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-05/2.068, allocations: 12.09 kB / 1.178 GB, free: 64.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005938/2.074, allocations: 1.169 MB / 1.179 GB, free: 64.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/2.075, allocations: 328.3 kB / 1.179 GB, free: 64.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00467/2.08, allocations: 2.194 MB / 1.182 GB, free: 63.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/2.082, allocations: 72.95 kB / 1.182 GB, free: 63.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000233/2.082, allocations: 73.97 kB / 1.182 GB, free: 63.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/2.082, allocations: 9.781 kB / 1.182 GB, free: 63.84 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006861/2.089, allocations: 2.719 MB / 1.184 GB, free: 63.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.32e-05/2.089, allocations: 11.81 kB / 1.184 GB, free: 63.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005508/2.094, allocations: 1.025 MB / 1.185 GB, free: 63.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/2.096, allocations: 345 kB / 1.186 GB, free: 63.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003249/2.099, allocations: 1.77 MB / 1.187 GB, free: 63.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/2.101, allocations: 73.69 kB / 1.187 GB, free: 63.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/2.101, allocations: 74.06 kB / 1.188 GB, free: 63.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004684/2.101, allocations: 145 kB / 1.188 GB, free: 63.12 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004466/2.102, allocations: 151.5 kB / 1.188 GB, free: 63.04 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0072/2.109, allocations: 2.843 MB / 1.191 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/2.109, allocations: 17.88 kB / 1.191 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/2.109, allocations: 3.844 kB / 1.191 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.849e-05/2.109, allocations: 9.516 kB / 1.191 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009404/2.118, allocations: 4.175 MB / 1.195 GB, free: 62.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/2.119, allocations: 6.844 kB / 1.195 GB, free: 62.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/2.12, allocations: 233.7 kB / 1.195 GB, free: 62.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003519/2.123, allocations: 0.9431 MB / 1.196 GB, free: 61.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/2.123, allocations: 21.45 kB / 1.196 GB, free: 61.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004698/2.128, allocations: 2.185 MB / 1.198 GB, free: 60.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/2.128, allocations: 2.156 kB / 1.198 GB, free: 60.92 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007614/2.136, allocations: 3.592 MB / 1.202 GB, free: 59.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/2.137, allocations: 425.5 kB / 1.202 GB, free: 59.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004681/2.137, allocations: 5.719 kB / 1.202 GB, free: 59.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/2.139, allocations: 80.42 kB / 1.202 GB, free: 59.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002649/2.139, allocations: 112 kB / 1.202 GB, free: 59.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001798/2.139, allocations: 60.2 kB / 1.202 GB, free: 59.32 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001177/2.141, allocations: 0.6652 MB / 1.203 GB, free: 59.02 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004562/2.145, allocations: 1.347 MB / 1.204 GB, free: 58.73 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.003188/2.148, allocations: 1.206 MB / 1.205 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006341/2.155, allocations: 3.042 MB / 1.208 GB, free: 57.35 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/2.155, allocations: 3.219 kB / 1.208 GB, free: 57.35 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001929/2.157, allocations: 0.9824 MB / 1.209 GB, free: 57.04 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003184/2.16, allocations: 0.6014 MB / 1.21 GB, free: 56.94 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007376/2.167, allocations: 2.841 MB / 1.213 GB, free: 56.03 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001756/2.169, allocations: 1.594 MB / 1.214 GB, free: 54.93 MB / 0.5105 GB Notification: Performance of SimCode: time 1.052e-06/2.169, allocations: 0 / 1.214 GB, free: 54.93 MB / 0.5105 GB Notification: Performance of Templates: time 0.07341/2.242, allocations: 51.9 MB / 1.265 GB, free: 13.55 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestDelayedValve/TestDelayedValve.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches