Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_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 trunk/package.mo): time 0.002142/0.002142, allocations: 205.8 kB / 8.535 MB, free: 2.637 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001145/0.001145, allocations: 84.25 kB / 286.3 MB, free: 0.5078 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.485/0.485, allocations: 45.14 MB / 383.3 MB, free: 43.03 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 1.042e-05/1.076e-05, allocations: 0 / 452.6 MB, free: 8.812 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.49/0.49, allocations: 63.25 MB / 0.5038 GB, free: 41.36 MB / 382.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7122/1.202, allocations: 352.5 MB / 0.848 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003607/1.203, allocations: 90.23 kB / 0.8481 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523/2.726, allocations: 310.2 MB / 1.151 GB, free: 59.17 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0003143/2.727, allocations: 51.47 kB / 1.151 GB, free: 59.16 MB / 0.5294 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.01038/2.737, allocations: 2.1 MB / 1.153 GB, free: 58.14 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/2.737, allocations: 8.812 kB / 1.153 GB, free: 58.14 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001947/2.739, allocations: 204.4 kB / 1.153 GB, free: 58.05 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005217/2.744, allocations: 1.285 MB / 1.155 GB, free: 57.67 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/2.745, allocations: 138.3 kB / 1.155 GB, free: 57.57 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007951/2.745, allocations: 71.67 kB / 1.155 GB, free: 57.57 MB / 0.5294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004472/2.75, allocations: 1.78 MB / 1.156 GB, free: 57.57 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004562/2.754, allocations: 1.796 MB / 1.158 GB, free: 57.34 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.914e-05/2.754, allocations: 0 / 1.158 GB, free: 57.34 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/2.755, allocations: 6.094 kB / 1.158 GB, free: 57.34 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001881/2.755, allocations: 120.5 kB / 1.158 GB, free: 57.33 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/2.77, allocations: 6.79 MB / 1.165 GB, free: 55.12 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/2.771, allocations: 1.024 MB / 1.166 GB, free: 55.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/2.772, allocations: 0.7789 MB / 1.167 GB, free: 55.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00786/2.78, allocations: 4.38 MB / 1.171 GB, free: 52.75 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.809e-05/2.78, allocations: 55.88 kB / 1.171 GB, free: 52.71 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=117): time 5.119e-06/2.78, allocations: 0 / 1.171 GB, free: 52.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132): time 0.02156/2.802, allocations: 5.204 MB / 1.176 GB, free: 52.09 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/2.802, allocations: 229.7 kB / 1.176 GB, free: 51.84 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/2.804, allocations: 0.9066 MB / 1.177 GB, free: 51.68 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003261/2.805, allocations: 26.55 kB / 1.177 GB, free: 51.65 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000378/2.805, allocations: 489.5 kB / 1.178 GB, free: 51.36 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/2.806, allocations: 437.8 kB / 1.178 GB, free: 51.07 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.927e-05/2.806, allocations: 0 / 1.178 GB, free: 51.07 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001829/2.806, allocations: 375.4 kB / 1.179 GB, free: 50.77 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/2.807, allocations: 0.7388 MB / 1.179 GB, free: 50.77 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/2.809, allocations: 1.048 MB / 1.18 GB, free: 50.44 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007844/2.817, allocations: 1.855 MB / 1.182 GB, free: 50.43 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.133e-05/2.817, allocations: 0 / 1.182 GB, free: 50.43 MB / 0.5294 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.0118/2.828, allocations: 3.316 MB / 1.185 GB, free: 50.28 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008337/2.829, allocations: 2.979 MB / 1.188 GB, free: 47.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.502e-05/2.829, allocations: 11.25 kB / 1.188 GB, free: 47.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006415/2.836, allocations: 1.162 MB / 1.189 GB, free: 47.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/2.838, allocations: 337.2 kB / 1.19 GB, free: 47.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/2.844, allocations: 2.191 MB / 1.192 GB, free: 46.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/2.846, allocations: 74.31 kB / 1.192 GB, free: 46.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005139/2.847, allocations: 77.19 kB / 1.192 GB, free: 46.62 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/2.847, allocations: 8.875 kB / 1.192 GB, free: 46.62 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009193/2.856, allocations: 2.875 MB / 1.195 GB, free: 46.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.261e-05/2.856, allocations: 11.11 kB / 1.195 GB, free: 46.58 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00566/2.862, allocations: 1.025 MB / 1.196 GB, free: 46.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/2.864, allocations: 348.3 kB / 1.196 GB, free: 46.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004354/2.868, allocations: 1.769 MB / 1.198 GB, free: 46.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/2.87, allocations: 69.95 kB / 1.198 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005178/2.871, allocations: 76.77 kB / 1.198 GB, free: 46.02 MB / 0.5294 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.0009033/2.872, allocations: 143 kB / 1.198 GB, free: 45.91 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007388/2.872, allocations: 147.9 kB / 1.198 GB, free: 45.84 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/2.883, allocations: 2.837 MB / 1.201 GB, free: 45.72 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/2.883, allocations: 23.75 kB / 1.201 GB, free: 45.72 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/2.883, allocations: 0 / 1.201 GB, free: 45.72 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.954e-05/2.883, allocations: 15.27 kB / 1.201 GB, free: 45.72 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/2.894, allocations: 4.171 MB / 1.205 GB, free: 45.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/2.894, allocations: 1.219 kB / 1.205 GB, free: 45.39 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/2.895, allocations: 232.2 kB / 1.205 GB, free: 45.38 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003227/2.898, allocations: 0.9418 MB / 1.206 GB, free: 45.36 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002047/2.899, allocations: 24.58 kB / 1.206 GB, free: 45.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004613/2.903, allocations: 2.187 MB / 1.208 GB, free: 44.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/2.903, allocations: 2.656 kB / 1.208 GB, free: 44.81 MB / 0.5294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008308/2.912, allocations: 3.589 MB / 1.212 GB, free: 44.54 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/2.913, allocations: 426.4 kB / 1.212 GB, free: 44.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005964/2.914, allocations: 3.656 kB / 1.212 GB, free: 44.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001801/2.915, allocations: 81.86 kB / 1.212 GB, free: 44.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003444/2.916, allocations: 115.5 kB / 1.213 GB, free: 44.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/2.916, allocations: 65.86 kB / 1.213 GB, free: 44.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 0.001606/2.918, allocations: 0.6687 MB / 1.213 GB, free: 44.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006938/2.925, allocations: 1.351 MB / 1.215 GB, free: 44.01 MB / 0.5294 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.004084/2.929, allocations: 1.214 MB / 1.216 GB, free: 43.65 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007718/2.936, allocations: 3.045 MB / 1.219 GB, free: 42.95 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/2.936, allocations: 2.719 kB / 1.219 GB, free: 42.95 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002365/2.939, allocations: 0.9793 MB / 1.22 GB, free: 42.64 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003883/2.943, allocations: 0.5962 MB / 1.22 GB, free: 42.54 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008195/2.951, allocations: 2.845 MB / 1.223 GB, free: 41.63 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00205/2.953, allocations: 1.591 MB / 1.225 GB, free: 40.86 MB / 0.5294 GB Notification: Performance of SimCode: time 1.282e-06/2.953, allocations: 0 / 1.225 GB, free: 40.86 MB / 0.5294 GB Notification: Performance of Templates: time 0.0887/3.042, allocations: 51.86 MB / 1.275 GB, free: 8.348 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches