Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001425/0.001425, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001106, allocations: 90.39 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3027/0.3027, allocations: 43.49 MB / 353.6 MB, free: 2.254 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.142e-05, allocations: 224 / 418.2 MB, free: 41.02 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3985/0.3986, allocations: 58.86 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8328/1.231, allocations: 350.8 MB / 0.8085 GB, free: 2.785 MB / 491.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/1.232, allocations: 86.81 kB / 0.8086 GB, free: 2.738 MB / 491.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.876/3.108, allocations: 303.8 MB / 1.105 GB, free: 82.52 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.505e-06/3.108, allocations: 0 / 1.105 GB, free: 82.52 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.000251/3.108, allocations: 52.77 kB / 1.105 GB, free: 82.51 MB / 0.4952 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.00922/3.117, allocations: 2.06 MB / 1.107 GB, free: 81.42 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/3.117, allocations: 11.47 kB / 1.107 GB, free: 81.42 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001455/3.119, allocations: 199.7 kB / 1.108 GB, free: 81.33 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004842/3.124, allocations: 1.271 MB / 1.109 GB, free: 80.95 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/3.124, allocations: 145.5 kB / 1.109 GB, free: 80.85 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006746/3.125, allocations: 66.28 kB / 1.109 GB, free: 80.85 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005091/3.13, allocations: 1.75 MB / 1.111 GB, free: 80.84 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005529/3.135, allocations: 1.752 MB / 1.112 GB, free: 80.61 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.565e-05/3.136, allocations: 3.094 kB / 1.112 GB, free: 80.61 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002999/3.136, allocations: 7.859 kB / 1.112 GB, free: 80.61 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002554/3.136, allocations: 113 kB / 1.112 GB, free: 80.61 MB / 0.4952 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.02101/3.157, allocations: 6.724 MB / 1.119 GB, free: 78.39 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00318/3.16, allocations: 1.269 MB / 1.12 GB, free: 78.36 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/3.162, allocations: 0.7604 MB / 1.121 GB, free: 78.35 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01024/3.173, allocations: 4.41 MB / 1.125 GB, free: 76 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.983e-05/3.173, allocations: 49.91 kB / 1.125 GB, free: 75.96 MB / 0.4952 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001686/3.174, allocations: 176.6 kB / 1.126 GB, free: 75.91 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=117): time 7.023e-06/3.175, allocations: 0 / 1.126 GB, free: 75.91 MB / 0.4952 GB Notification: Performance of matching and sorting (n=132): time 0.02557/3.2, allocations: 4.997 MB / 1.13 GB, free: 74.23 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.246e-05/3.2, allocations: 222.5 kB / 1.131 GB, free: 73.98 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/3.202, allocations: 0.9055 MB / 1.132 GB, free: 73.58 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0004317/3.203, allocations: 25.7 kB / 1.132 GB, free: 73.55 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004649/3.203, allocations: 0.6603 MB / 1.132 GB, free: 72.98 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005113/3.204, allocations: 436.7 kB / 1.133 GB, free: 72.64 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/3.204, allocations: 0 / 1.133 GB, free: 72.64 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0001233/3.204, allocations: 373.4 kB / 1.133 GB, free: 72.3 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/3.206, allocations: 0.7221 MB / 1.134 GB, free: 72.02 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/3.207, allocations: 1.029 MB / 1.135 GB, free: 71.38 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0199/3.227, allocations: 2.547 MB / 1.137 GB, free: 70.91 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.54e-05/3.227, allocations: 3 kB / 1.137 GB, free: 70.91 MB / 0.4952 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.02419/3.252, allocations: 3.891 MB / 1.141 GB, free: 69.99 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006652/3.252, allocations: 2.963 MB / 1.144 GB, free: 66.84 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.352e-05/3.252, allocations: 13.06 kB / 1.144 GB, free: 66.84 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009962/3.262, allocations: 1.13 MB / 1.145 GB, free: 66.67 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/3.265, allocations: 333.4 kB / 1.145 GB, free: 66.66 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007152/3.272, allocations: 2.089 MB / 1.147 GB, free: 65.62 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002793/3.275, allocations: 81.75 kB / 1.147 GB, free: 65.61 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002966/3.276, allocations: 77.8 kB / 1.148 GB, free: 65.59 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/3.276, allocations: 3.906 kB / 1.148 GB, free: 65.59 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02253/3.298, allocations: 3.543 MB / 1.151 GB, free: 64.77 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-05/3.298, allocations: 12.91 kB / 1.151 GB, free: 64.77 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009284/3.307, allocations: 0.9793 MB / 1.152 GB, free: 64.64 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002866/3.31, allocations: 347.7 kB / 1.152 GB, free: 64.61 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005048/3.316, allocations: 1.653 MB / 1.154 GB, free: 63.44 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/3.318, allocations: 79.72 kB / 1.154 GB, free: 63.38 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003268/3.318, allocations: 71.48 kB / 1.154 GB, free: 63.32 MB / 0.4952 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.0005945/3.319, allocations: 143.4 kB / 1.154 GB, free: 63.18 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005449/3.319, allocations: 146.2 kB / 1.154 GB, free: 63.04 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01128/3.331, allocations: 2.642 MB / 1.157 GB, free: 60.93 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.889e-05/3.331, allocations: 16 kB / 1.157 GB, free: 60.92 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/3.331, allocations: 0 / 1.157 GB, free: 60.92 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-05/3.331, allocations: 9.844 kB / 1.157 GB, free: 60.92 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/3.344, allocations: 4.073 MB / 1.161 GB, free: 57.68 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/3.344, allocations: 0 / 1.161 GB, free: 57.68 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002151/3.346, allocations: 236.7 kB / 1.161 GB, free: 57.48 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005112/3.352, allocations: 0.9198 MB / 1.162 GB, free: 56.78 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004051/3.352, allocations: 21.91 kB / 1.162 GB, free: 56.77 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006538/3.359, allocations: 2.095 MB / 1.164 GB, free: 54.92 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.223e-06/3.359, allocations: 0 / 1.164 GB, free: 54.92 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/3.37, allocations: 3.458 MB / 1.167 GB, free: 51.91 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/3.372, allocations: 440.6 kB / 1.168 GB, free: 51.53 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005423/3.372, allocations: 0 / 1.168 GB, free: 51.53 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002429/3.375, allocations: 79.73 kB / 1.168 GB, free: 51.48 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004636/3.375, allocations: 114.9 kB / 1.168 GB, free: 51.41 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002421/3.376, allocations: 58.45 kB / 1.168 GB, free: 51.36 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.001328/3.377, allocations: 0.6611 MB / 1.169 GB, free: 50.75 MB / 0.4952 GB Notification: Performance of sort global known variables: time 5.91e-07/3.377, allocations: 2.844 kB / 1.169 GB, free: 50.75 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.006022/3.383, allocations: 1.334 MB / 1.17 GB, free: 49.45 MB / 0.4952 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.004292/3.387, allocations: 1.214 MB / 1.171 GB, free: 48.46 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.009994/3.397, allocations: 2.914 MB / 1.174 GB, free: 45.84 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/3.397, allocations: 3.906 kB / 1.174 GB, free: 45.83 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.003324/3.401, allocations: 0.9523 MB / 1.175 GB, free: 44.96 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005584/3.406, allocations: 0.6135 MB / 1.176 GB, free: 44.36 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008719/3.415, allocations: 2.778 MB / 1.178 GB, free: 41.58 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/3.416, allocations: 1.402 MB / 1.18 GB, free: 40.15 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/3.417, allocations: 155.4 kB / 1.18 GB, free: 40 MB / 0.4952 GB Notification: Performance of SimCode: time 1.182e-06/3.417, allocations: 0 / 1.18 GB, free: 40 MB / 0.4952 GB Notification: Performance of Templates: time 0.07875/3.496, allocations: 40.22 MB / 1.219 GB, free: 244 kB / 0.4952 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/jenkins1/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