Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008871/0.0008871, allocations: 183.3 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.157/1.157, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007841/0.0007841, allocations: 90.53 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3019/0.3019, allocations: 43.47 MB / 358.6 MB, free: 52.37 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.599e-05/2.601e-05, allocations: 11.92 kB / 425.3 MB, free: 8.887 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09726/0.0973, allocations: 58.85 MB / 484.2 MB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.17/5.267, allocations: 2.754 GB / 3.227 GB, free: 69.41 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/5.267, allocations: 87.42 kB / 3.227 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.6036/5.871, allocations: 216.6 MB / 3.439 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.563e-06/5.871, allocations: 0 / 3.439 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.884e-05/5.871, allocations: 15.94 kB / 3.439 GB, free: 54.5 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003643/5.875, allocations: 1.158 MB / 3.44 GB, free: 53.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/5.875, allocations: 19.91 kB / 3.44 GB, free: 53.28 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/5.876, allocations: 223.2 kB / 3.44 GB, free: 53.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/5.877, allocations: 363.6 kB / 3.44 GB, free: 52.67 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/5.877, allocations: 32.78 kB / 3.44 GB, free: 52.64 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/5.877, allocations: 28 kB / 3.44 GB, free: 52.61 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/5.878, allocations: 0.5847 MB / 3.441 GB, free: 51.99 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/5.878, allocations: 0.5156 kB / 3.441 GB, free: 51.99 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/5.878, allocations: 12 kB / 3.441 GB, free: 51.98 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/5.878, allocations: 8.344 kB / 3.441 GB, free: 51.97 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009239/5.879, allocations: 0.4939 MB / 3.441 GB, free: 51.47 MB / 0.4948 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.001985/5.881, allocations: 2.601 MB / 3.444 GB, free: 48.63 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009677/5.882, allocations: 426.2 kB / 3.444 GB, free: 48.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/5.882, allocations: 129.2 kB / 3.445 GB, free: 48.07 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03491/5.917, allocations: 24.16 MB / 3.468 GB, free: 21.03 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/5.917, allocations: 42.55 kB / 3.468 GB, free: 20.98 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 1.973e-06/5.917, allocations: 0 / 3.468 GB, free: 20.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.001683/5.919, allocations: 0.6217 MB / 3.469 GB, free: 20.35 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/5.919, allocations: 110.8 kB / 3.469 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002387/5.919, allocations: 274.7 kB / 3.469 GB, free: 19.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/5.919, allocations: 29.7 kB / 3.469 GB, free: 19.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.569e-05/5.919, allocations: 208 kB / 3.469 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/5.919, allocations: 86.75 kB / 3.469 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.331e-05/5.919, allocations: 4 kB / 3.469 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.208e-05/5.919, allocations: 346.8 kB / 3.47 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/5.919, allocations: 83.98 kB / 3.47 GB, free: 19.18 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/5.919, allocations: 188.6 kB / 3.47 GB, free: 18.96 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/5.92, allocations: 115.9 kB / 3.47 GB, free: 18.84 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/5.92, allocations: 0 / 3.47 GB, free: 18.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003862/5.92, allocations: 329.2 kB / 3.47 GB, free: 18.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/5.92, allocations: 12.73 kB / 3.47 GB, free: 18.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/5.92, allocations: 0 / 3.47 GB, free: 18.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/5.92, allocations: 4 kB / 3.47 GB, free: 18.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/5.92, allocations: 95.81 kB / 3.471 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/5.92, allocations: 4 kB / 3.471 GB, free: 18.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/5.921, allocations: 67.83 kB / 3.471 GB, free: 18.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/5.921, allocations: 16 kB / 3.471 GB, free: 18.32 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.477e-05/5.921, allocations: 121.5 kB / 3.471 GB, free: 18.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.106e-05/5.921, allocations: 35.62 kB / 3.471 GB, free: 18.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/5.922, allocations: 1.845 MB / 3.473 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/5.922, allocations: 31.95 kB / 3.473 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/5.922, allocations: 3.938 kB / 3.473 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/5.922, allocations: 3.984 kB / 3.473 GB, free: 16.26 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/5.923, allocations: 1.004 MB / 3.474 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/5.923, allocations: 0 / 3.474 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/5.923, allocations: 87.88 kB / 3.474 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/5.923, allocations: 4 kB / 3.474 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/5.923, allocations: 4 kB / 3.474 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/5.923, allocations: 7.953 kB / 3.474 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/5.923, allocations: 0 / 3.474 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006887/5.924, allocations: 0.9868 MB / 3.475 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/5.924, allocations: 215.6 kB / 3.475 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/5.924, allocations: 8 kB / 3.475 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002823/5.924, allocations: 39.97 kB / 3.475 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/5.924, allocations: 35.91 kB / 3.475 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/5.924, allocations: 15.98 kB / 3.475 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002318/5.925, allocations: 317.2 kB / 3.475 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/5.925, allocations: 0 / 3.475 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003278/5.928, allocations: 1.007 MB / 3.476 GB, free: 12.46 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003618/5.932, allocations: 1.371 MB / 3.478 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004983/5.932, allocations: 0.4908 MB / 3.478 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/5.932, allocations: 4 kB / 3.478 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003163/5.932, allocations: 477.2 kB / 3.479 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009123/5.933, allocations: 203.9 kB / 3.479 GB, free: 9.938 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/5.934, allocations: 1.129 MB / 3.48 GB, free: 8.785 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/5.935, allocations: 0.9797 MB / 3.481 GB, free: 7.781 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000323/5.935, allocations: 248.5 kB / 3.481 GB, free: 7.535 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.542e-05/5.935, allocations: 39.42 kB / 3.481 GB, free: 7.496 MB / 0.4948 GB Notification: Performance of SimCode: time 2.51e-07/5.935, allocations: 0 / 3.481 GB, free: 7.496 MB / 0.4948 GB Notification: Performance of Templates: time 0.246/6.181, allocations: 32.49 MB / 3.513 GB, free: 78.35 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches