Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.00236/0.002359, allocations: 187.6 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001164/0.001164, allocations: 93.78 kB / 270.9 MB, free: 8.375 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.511/0.511, allocations: 43.56 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007498/0.0007499, allocations: 12 kB / 431.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1258, allocations: 58.84 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.204/8.33, allocations: 2.754 GB / 3.233 GB, free: 58.75 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/8.33, allocations: 88.2 kB / 3.233 GB, free: 58.71 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.104/9.434, allocations: 217.2 MB / 3.445 GB, free: 45.39 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.104e-06/9.434, allocations: 0 / 3.445 GB, free: 45.39 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.044e-05/9.434, allocations: 19.98 kB / 3.445 GB, free: 45.38 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.005469/9.439, allocations: 1.208 MB / 3.446 GB, free: 44.11 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/9.44, allocations: 12.03 kB / 3.446 GB, free: 44.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002467/9.442, allocations: 215.3 kB / 3.447 GB, free: 43.89 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007269/9.443, allocations: 370.1 kB / 3.447 GB, free: 43.49 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/9.443, allocations: 29.69 kB / 3.447 GB, free: 43.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.546e-05/9.443, allocations: 28 kB / 3.447 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/9.445, allocations: 0.6025 MB / 3.448 GB, free: 42.79 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/9.445, allocations: 4.516 kB / 3.448 GB, free: 42.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.217e-05/9.445, allocations: 12 kB / 3.448 GB, free: 42.77 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/9.445, allocations: 12.28 kB / 3.448 GB, free: 42.76 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002381/9.448, allocations: 0.5602 MB / 3.448 GB, free: 42.2 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.00384/9.451, allocations: 2.605 MB / 3.451 GB, free: 39.36 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/9.454, allocations: 466.2 kB / 3.451 GB, free: 38.89 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07045/9.524, allocations: 24.07 MB / 3.475 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/9.524, allocations: 30.56 kB / 3.475 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 3.056e-06/9.524, allocations: 0 / 3.475 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.004152/9.529, allocations: 0.8106 MB / 3.476 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/9.529, allocations: 118.8 kB / 3.476 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/9.529, allocations: 267.6 kB / 3.476 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/9.529, allocations: 29.7 kB / 3.476 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/9.529, allocations: 250.7 kB / 3.476 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.629e-05/9.529, allocations: 86.73 kB / 3.476 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/9.529, allocations: 8 kB / 3.476 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.367e-05/9.529, allocations: 322.8 kB / 3.477 GB, free: 9.969 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006274/9.53, allocations: 139.9 kB / 3.477 GB, free: 9.832 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006749/9.531, allocations: 240.3 kB / 3.477 GB, free: 9.559 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006456/9.531, allocations: 152 kB / 3.477 GB, free: 9.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/9.531, allocations: 0 / 3.477 GB, free: 9.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001502/9.533, allocations: 413.9 kB / 3.478 GB, free: 9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/9.533, allocations: 11.95 kB / 3.478 GB, free: 8.988 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.036e-06/9.533, allocations: 0 / 3.478 GB, free: 8.988 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/9.533, allocations: 4 kB / 3.478 GB, free: 8.984 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005948/9.534, allocations: 92.19 kB / 3.478 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/9.534, allocations: 11.92 kB / 3.478 GB, free: 8.883 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005643/9.534, allocations: 67.66 kB / 3.478 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/9.534, allocations: 12 kB / 3.478 GB, free: 8.805 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 () * Number of clocked 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 0.0002396/9.535, allocations: 165.7 kB / 3.478 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.478e-05/9.535, allocations: 31.62 kB / 3.478 GB, free: 8.602 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003219/9.538, allocations: 1.923 MB / 3.48 GB, free: 6.664 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.55e-05/9.538, allocations: 31.94 kB / 3.48 GB, free: 6.633 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/9.538, allocations: 4 kB / 3.48 GB, free: 6.629 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/9.538, allocations: 0 / 3.48 GB, free: 6.629 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/9.539, allocations: 0.9999 MB / 3.481 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/9.539, allocations: 0 / 3.481 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005664/9.54, allocations: 83.88 kB / 3.481 GB, free: 5.496 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/9.54, allocations: 7.984 kB / 3.481 GB, free: 5.488 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/9.54, allocations: 12 kB / 3.481 GB, free: 5.477 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/9.54, allocations: 3.953 kB / 3.481 GB, free: 5.473 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/9.54, allocations: 0 / 3.481 GB, free: 5.473 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/9.542, allocations: 1.081 MB / 3.482 GB, free: 4.375 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/9.542, allocations: 223.4 kB / 3.482 GB, free: 4.137 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.066e-05/9.542, allocations: 8 kB / 3.482 GB, free: 4.129 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000529/9.543, allocations: 47.95 kB / 3.482 GB, free: 4.082 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/9.543, allocations: 35.91 kB / 3.482 GB, free: 4.047 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/9.543, allocations: 8 kB / 3.482 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004729/9.543, allocations: 323.1 kB / 3.483 GB, free: 3.727 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.463e-06/9.543, allocations: 0 / 3.483 GB, free: 3.727 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004857/9.548, allocations: 1.007 MB / 3.484 GB, free: 2.719 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 () * Number of clocked 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.008418/9.557, allocations: 1.374 MB / 3.485 GB, free: 1.348 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001798/9.558, allocations: 0.6039 MB / 3.485 GB, free: 0.7461 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/9.559, allocations: 0 / 3.485 GB, free: 0.7461 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009449/9.559, allocations: 0.5165 MB / 3.486 GB, free: 236 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/9.561, allocations: 196.7 kB / 3.486 GB, free: 44 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3466/9.908, allocations: 1.884 MB / 3.488 GB, free: 71.21 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006059/9.908, allocations: 0.9784 MB / 3.489 GB, free: 70.51 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/9.909, allocations: 45.84 kB / 3.489 GB, free: 70.5 MB / 0.4948 GB Notification: Performance of SimCode: time 9.62e-07/9.909, allocations: 0 / 3.489 GB, free: 70.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.06023/9.969, allocations: 26.59 MB / 3.515 GB, free: 69.02 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches