Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001735/0.001734, allocations: 173.8 kB / 8.146 MB, free: 2.152 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.636/1.636, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001342/0.001341, allocations: 96.17 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2688/0.2688, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.704e-06/7.835e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2756, allocations: 58.84 MB / 476.5 MB, free: 5.105 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6675/0.9432, allocations: 350.7 MB / 0.8079 GB, free: 52 kB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.9436, allocations: 90.56 kB / 0.8079 GB, free: 4 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.527/2.471, allocations: 305.3 MB / 1.106 GB, free: 82.69 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000217/2.471, allocations: 47.11 kB / 1.106 GB, free: 82.68 MB / 0.4948 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.009082/2.48, allocations: 2.097 MB / 1.108 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/2.48, allocations: 7.875 kB / 1.108 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/2.482, allocations: 203.5 kB / 1.108 GB, free: 81.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004914/2.487, allocations: 1.277 MB / 1.11 GB, free: 81.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/2.487, allocations: 146.9 kB / 1.11 GB, free: 81.03 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006086/2.488, allocations: 65.19 kB / 1.11 GB, free: 81.03 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005329/2.493, allocations: 1.787 MB / 1.112 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005273/2.498, allocations: 1.789 MB / 1.113 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.719e-05/2.498, allocations: 3.031 kB / 1.113 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002799/2.499, allocations: 3.75 kB / 1.113 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001739/2.499, allocations: 127.4 kB / 1.114 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02148/2.52, allocations: 6.772 MB / 1.12 GB, free: 78.44 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002733/2.523, allocations: 1.02 MB / 1.121 GB, free: 78.06 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001965/2.525, allocations: 0.7881 MB / 1.122 GB, free: 77.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/2.535, allocations: 4.385 MB / 1.126 GB, free: 74.61 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/2.536, allocations: 49.72 kB / 1.126 GB, free: 74.56 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=117): time 4.278e-06/2.536, allocations: 0.75 kB / 1.126 GB, free: 74.56 MB / 0.4948 GB Notification: Performance of matching and sorting (n=132): time 0.03026/2.566, allocations: 5.21 MB / 1.131 GB, free: 72.87 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/2.566, allocations: 227.8 kB / 1.132 GB, free: 72.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002245/2.568, allocations: 0.9048 MB / 1.132 GB, free: 72.22 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004902/2.569, allocations: 27.8 kB / 1.132 GB, free: 72.19 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/2.569, allocations: 473.6 kB / 1.133 GB, free: 71.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007247/2.57, allocations: 441 kB / 1.133 GB, free: 71.46 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/2.57, allocations: 0 / 1.133 GB, free: 71.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001423/2.57, allocations: 368.1 kB / 1.134 GB, free: 71.12 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002249/2.572, allocations: 0.7423 MB / 1.134 GB, free: 70.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002665/2.575, allocations: 1.056 MB / 1.135 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02296/2.598, allocations: 2.714 MB / 1.138 GB, free: 69.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.428e-05/2.598, allocations: 3.969 kB / 1.138 GB, free: 69.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.02784/2.626, allocations: 4.085 MB / 1.142 GB, free: 68.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006251/2.627, allocations: 2.967 MB / 1.145 GB, free: 65.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.237e-05/2.627, allocations: 8.781 kB / 1.145 GB, free: 65.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01135/2.638, allocations: 1.153 MB / 1.146 GB, free: 65.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002965/2.641, allocations: 326.6 kB / 1.146 GB, free: 65.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008904/2.65, allocations: 2.15 MB / 1.148 GB, free: 64.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/2.653, allocations: 72.05 kB / 1.149 GB, free: 64.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003012/2.653, allocations: 78.81 kB / 1.149 GB, free: 64.39 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/2.653, allocations: 4.031 kB / 1.149 GB, free: 64.39 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02628/2.679, allocations: 3.736 MB / 1.152 GB, free: 62.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.668e-05/2.679, allocations: 13.02 kB / 1.152 GB, free: 62.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/2.69, allocations: 1.011 MB / 1.153 GB, free: 61.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/2.693, allocations: 346 kB / 1.154 GB, free: 61.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00598/2.699, allocations: 1.757 MB / 1.155 GB, free: 59.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002353/2.701, allocations: 72.95 kB / 1.155 GB, free: 59.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004404/2.702, allocations: 75.47 kB / 1.155 GB, free: 59.7 MB / 0.4948 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.0007177/2.703, allocations: 68.58 kB / 1.156 GB, free: 59.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005936/2.703, allocations: 146.2 kB / 1.156 GB, free: 59.49 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01313/2.716, allocations: 2.832 MB / 1.158 GB, free: 57.24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.008e-05/2.717, allocations: 15.27 kB / 1.158 GB, free: 57.23 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/2.717, allocations: 4.75 kB / 1.158 GB, free: 57.23 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.296e-05/2.717, allocations: 8.016 kB / 1.158 GB, free: 57.23 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/2.732, allocations: 4.179 MB / 1.163 GB, free: 53.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/2.732, allocations: 0 / 1.163 GB, free: 53.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00215/2.734, allocations: 230.9 kB / 1.163 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005489/2.74, allocations: 0.9373 MB / 1.164 GB, free: 52.43 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003748/2.74, allocations: 27.97 kB / 1.164 GB, free: 52.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007115/2.747, allocations: 2.19 MB / 1.166 GB, free: 50.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/2.747, allocations: 0 / 1.166 GB, free: 50.19 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01239/2.76, allocations: 3.585 MB / 1.169 GB, free: 46.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/2.761, allocations: 434.8 kB / 1.17 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000616/2.762, allocations: 7.938 kB / 1.17 GB, free: 46.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002786/2.765, allocations: 83.27 kB / 1.17 GB, free: 46.08 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005913/2.766, allocations: 117.1 kB / 1.17 GB, free: 45.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002757/2.766, allocations: 55.97 kB / 1.17 GB, free: 45.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001604/2.767, allocations: 0.6673 MB / 1.171 GB, free: 45.24 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006985/2.775, allocations: 1.338 MB / 1.172 GB, free: 43.9 MB / 0.4948 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.004601/2.779, allocations: 1.216 MB / 1.173 GB, free: 42.83 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01204/2.791, allocations: 3.005 MB / 1.176 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.791, allocations: 0 / 1.176 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004046/2.795, allocations: 0.9769 MB / 1.177 GB, free: 38.85 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006099/2.802, allocations: 0.5813 MB / 1.178 GB, free: 38.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/2.813, allocations: 2.892 MB / 1.18 GB, free: 35.58 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/2.815, allocations: 1.581 MB / 1.182 GB, free: 33.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.192e-06/2.815, allocations: 0 / 1.182 GB, free: 33.98 MB / 0.4948 GB Notification: Performance of Templates: time 0.2584/3.073, allocations: 40.2 MB / 1.221 GB, free: 125.4 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestDelayedValve/TestDelayedValve.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches