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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001953/0.001953, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008928/0.0008929, allocations: 94.94 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 45.15 MB / 383.8 MB, free: 304 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.001e-05, allocations: 3.938 kB / 453.2 MB, free: 75.86 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1359, allocations: 63.25 MB / 0.5044 GB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.175, allocations: 352.6 MB / 0.8487 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/1.176, allocations: 84.08 kB / 0.8487 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.024/2.199, allocations: 308.6 MB / 1.15 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.393e-06/2.199, allocations: 0 / 1.15 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002297/2.2, allocations: 47.92 kB / 1.15 GB, free: 10.61 MB / 0.5261 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.007316/2.207, allocations: 2.073 MB / 1.152 GB, free: 8.488 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/2.207, allocations: 12.03 kB / 1.152 GB, free: 8.477 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/2.208, allocations: 209.7 kB / 1.152 GB, free: 8.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003711/2.212, allocations: 1.263 MB / 1.154 GB, free: 6.949 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/2.212, allocations: 147.2 kB / 1.154 GB, free: 6.785 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003964/2.213, allocations: 67.91 kB / 1.154 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002523/2.215, allocations: 1.738 MB / 1.156 GB, free: 4.977 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002294/2.217, allocations: 1.76 MB / 1.157 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/2.217, allocations: 7.938 kB / 1.157 GB, free: 3.125 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/2.218, allocations: 0 / 1.157 GB, free: 3.125 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/2.218, allocations: 118.2 kB / 1.157 GB, free: 3.008 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4087/2.626, allocations: 6.722 MB / 1.164 GB, free: 68.96 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/2.628, allocations: 1.264 MB / 1.165 GB, free: 68.93 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009278/2.629, allocations: 0.7589 MB / 1.166 GB, free: 68.92 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005424/2.634, allocations: 4.408 MB / 1.17 GB, free: 66.65 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/2.634, allocations: 46.03 kB / 1.17 GB, free: 66.61 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007869/2.635, allocations: 178.3 kB / 1.17 GB, free: 66.61 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=117): time 3.226e-06/2.635, allocations: 3.531 kB / 1.17 GB, free: 66.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=132): time 0.01449/2.65, allocations: 5 MB / 1.175 GB, free: 66.03 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/2.65, allocations: 220.3 kB / 1.176 GB, free: 65.78 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/2.651, allocations: 0.8959 MB / 1.176 GB, free: 65.63 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000112/2.651, allocations: 27.52 kB / 1.176 GB, free: 65.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000434/2.652, allocations: 0.6702 MB / 1.177 GB, free: 65.37 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003363/2.652, allocations: 444.8 kB / 1.177 GB, free: 65.14 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.086e-05/2.652, allocations: 3.281 kB / 1.177 GB, free: 65.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001065/2.652, allocations: 369.4 kB / 1.178 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/2.653, allocations: 0.718 MB / 1.179 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/2.655, allocations: 1.031 MB / 1.18 GB, free: 64.51 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006574/2.661, allocations: 1.736 MB / 1.181 GB, free: 64.49 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/2.661, allocations: 3 kB / 1.181 GB, free: 64.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.009353/2.671, allocations: 3.16 MB / 1.184 GB, free: 64.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006859/2.671, allocations: 2.985 MB / 1.187 GB, free: 61.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-05/2.671, allocations: 9.422 kB / 1.187 GB, free: 61.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00566/2.677, allocations: 1.125 MB / 1.188 GB, free: 61.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/2.679, allocations: 331.8 kB / 1.189 GB, free: 61.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005052/2.684, allocations: 2.104 MB / 1.191 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/2.686, allocations: 73.02 kB / 1.191 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003167/2.686, allocations: 75.98 kB / 1.191 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/2.686, allocations: 3.625 kB / 1.191 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007935/2.694, allocations: 2.734 MB / 1.194 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-05/2.694, allocations: 9.812 kB / 1.194 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004769/2.699, allocations: 0.994 MB / 1.195 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/2.7, allocations: 344.9 kB / 1.195 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003074/2.703, allocations: 1.69 MB / 1.196 GB, free: 60.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/2.705, allocations: 72.41 kB / 1.197 GB, free: 60.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002605/2.706, allocations: 72.64 kB / 1.197 GB, free: 60.11 MB / 0.5261 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.0006212/2.706, allocations: 140.6 kB / 1.197 GB, free: 60 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006072/2.707, allocations: 153.5 kB / 1.197 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007059/2.714, allocations: 2.638 MB / 1.199 GB, free: 59.82 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/2.714, allocations: 20.59 kB / 1.2 GB, free: 59.82 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/2.714, allocations: 0 / 1.2 GB, free: 59.82 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/2.714, allocations: 9.375 kB / 1.2 GB, free: 59.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009046/2.723, allocations: 4.068 MB / 1.203 GB, free: 59.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/2.723, allocations: 0 / 1.203 GB, free: 59.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/2.724, allocations: 230 kB / 1.204 GB, free: 59.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002843/2.727, allocations: 0.9245 MB / 1.205 GB, free: 59.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/2.727, allocations: 21.69 kB / 1.205 GB, free: 59.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004025/2.731, allocations: 2.1 MB / 1.207 GB, free: 58.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/2.731, allocations: 0 / 1.207 GB, free: 58.91 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007487/2.739, allocations: 3.457 MB / 1.21 GB, free: 58.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/2.74, allocations: 429.4 kB / 1.21 GB, free: 58.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006222/2.741, allocations: 7.406 kB / 1.21 GB, free: 58.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/2.743, allocations: 76.62 kB / 1.211 GB, free: 58.47 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/2.743, allocations: 114.4 kB / 1.211 GB, free: 58.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/2.743, allocations: 60.94 kB / 1.211 GB, free: 58.47 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00131/2.744, allocations: 0.6629 MB / 1.211 GB, free: 58.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.01e-07/2.744, allocations: 2.781 kB / 1.211 GB, free: 58.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006227/2.751, allocations: 1.344 MB / 1.213 GB, free: 58.36 MB / 0.5261 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.004541/2.755, allocations: 1.227 MB / 1.214 GB, free: 58.25 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007117/2.762, allocations: 2.969 MB / 1.217 GB, free: 58.14 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/2.762, allocations: 0 / 1.217 GB, free: 58.14 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002055/2.764, allocations: 0.9621 MB / 1.218 GB, free: 58.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004015/2.768, allocations: 0.6129 MB / 1.218 GB, free: 58.12 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006935/2.775, allocations: 2.713 MB / 1.221 GB, free: 57.55 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/2.777, allocations: 1.418 MB / 1.222 GB, free: 56.83 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003302/2.78, allocations: 0.6376 MB / 1.223 GB, free: 56.81 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004422/2.78, allocations: 121.1 kB / 1.223 GB, free: 56.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.373e-06/2.78, allocations: 0 / 1.223 GB, free: 56.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.07548/2.856, allocations: 44.54 MB / 1.267 GB, free: 54.33 MB / 0.5261 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