Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008096/0.0008095, allocations: 79.98 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3873/0.3873, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005167/0.0005168, allocations: 8 kB / 459.9 MB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.391, allocations: 61.91 MB / 0.5096 GB, free: 38.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.722/7.113, allocations: 2.76 GB / 3.269 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/7.113, allocations: 87.02 kB / 3.269 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.7722/7.886, allocations: 219.5 MB / 3.484 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.144e-06/7.886, allocations: 0 / 3.484 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.423e-05/7.886, allocations: 15.98 kB / 3.484 GB, free: 19.91 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005616/7.891, allocations: 1.2 MB / 3.485 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/7.891, allocations: 8.031 kB / 3.485 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001801/7.893, allocations: 223.8 kB / 3.485 GB, free: 18.44 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000621/7.894, allocations: 366.4 kB / 3.485 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-05/7.894, allocations: 28.66 kB / 3.485 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.284e-05/7.894, allocations: 27.94 kB / 3.485 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/7.895, allocations: 0.6026 MB / 3.486 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/7.895, allocations: 3.938 kB / 3.486 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.503e-05/7.895, allocations: 19.94 kB / 3.486 GB, free: 17.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/7.896, allocations: 8 kB / 3.486 GB, free: 17.31 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/7.897, allocations: 0.5563 MB / 3.487 GB, free: 16.75 MB / 0.5261 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.002507/7.899, allocations: 2.607 MB / 3.489 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/7.901, allocations: 466.2 kB / 3.49 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3648/8.266, allocations: 24.07 MB / 3.513 GB, free: 76.78 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/8.266, allocations: 40.09 kB / 3.513 GB, free: 76.74 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 3.817e-06/8.266, allocations: 0.7031 kB / 3.513 GB, free: 76.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002693/8.268, allocations: 0.8124 MB / 3.514 GB, free: 76.71 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/8.268, allocations: 107.4 kB / 3.514 GB, free: 76.58 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/8.269, allocations: 274.6 kB / 3.514 GB, free: 76.48 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/8.269, allocations: 29.52 kB / 3.514 GB, free: 76.45 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/8.269, allocations: 204.9 kB / 3.515 GB, free: 76.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.171e-05/8.269, allocations: 79.45 kB / 3.515 GB, free: 76.31 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.612e-05/8.269, allocations: 10 kB / 3.515 GB, free: 76.31 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/8.269, allocations: 340.7 kB / 3.515 GB, free: 76 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/8.269, allocations: 142.5 kB / 3.515 GB, free: 76 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003784/8.27, allocations: 236.2 kB / 3.515 GB, free: 75.89 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003786/8.27, allocations: 155.8 kB / 3.515 GB, free: 75.89 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/8.27, allocations: 0 / 3.515 GB, free: 75.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009142/8.271, allocations: 441.9 kB / 3.516 GB, free: 75.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/8.271, allocations: 5.5 kB / 3.516 GB, free: 75.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/8.271, allocations: 2.688 kB / 3.516 GB, free: 75.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/8.271, allocations: 2.938 kB / 3.516 GB, free: 75.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/8.272, allocations: 85.78 kB / 3.516 GB, free: 75.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/8.272, allocations: 7.234 kB / 3.516 GB, free: 75.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003904/8.272, allocations: 69.36 kB / 3.516 GB, free: 75.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.274e-05/8.272, allocations: 15.38 kB / 3.516 GB, free: 75.83 MB / 0.5261 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.0002269/8.272, allocations: 164 kB / 3.516 GB, free: 75.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.827e-05/8.272, allocations: 37.75 kB / 3.516 GB, free: 75.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002442/8.275, allocations: 1.91 MB / 3.518 GB, free: 75.51 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.18e-05/8.275, allocations: 32.61 kB / 3.518 GB, free: 75.51 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/8.275, allocations: 7.719 kB / 3.518 GB, free: 75.51 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/8.275, allocations: 2.953 kB / 3.518 GB, free: 75.51 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/8.276, allocations: 1.004 MB / 3.519 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/8.276, allocations: 6.688 kB / 3.519 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003022/8.276, allocations: 76.94 kB / 3.519 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/8.277, allocations: 6.969 kB / 3.519 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/8.277, allocations: 5.812 kB / 3.519 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/8.277, allocations: 5.266 kB / 3.519 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/8.277, allocations: 1.031 kB / 3.519 GB, free: 75.28 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/8.278, allocations: 1.09 MB / 3.52 GB, free: 75.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/8.278, allocations: 212 kB / 3.52 GB, free: 74.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.321e-05/8.278, allocations: 12.55 kB / 3.52 GB, free: 74.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002968/8.278, allocations: 38.94 kB / 3.521 GB, free: 74.92 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/8.279, allocations: 33.11 kB / 3.521 GB, free: 74.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/8.279, allocations: 9.375 kB / 3.521 GB, free: 74.92 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003188/8.279, allocations: 324 kB / 3.521 GB, free: 74.83 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.854e-06/8.279, allocations: 0 / 3.521 GB, free: 74.83 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005079/8.284, allocations: 1.011 MB / 3.522 GB, free: 74.83 MB / 0.5261 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.006481/8.291, allocations: 1.386 MB / 3.523 GB, free: 74.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001166/8.292, allocations: 0.5915 MB / 3.524 GB, free: 74.72 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/8.292, allocations: 6.219 kB / 3.524 GB, free: 74.72 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005662/8.292, allocations: 0.512 MB / 3.524 GB, free: 74.71 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/8.293, allocations: 211.5 kB / 3.525 GB, free: 74.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/8.295, allocations: 1.866 MB / 3.526 GB, free: 73.87 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/8.296, allocations: 0.9754 MB / 3.527 GB, free: 73.17 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004199/8.296, allocations: 246.8 kB / 3.528 GB, free: 73.16 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.746e-05/8.296, allocations: 40.36 kB / 3.528 GB, free: 73.15 MB / 0.5261 GB Notification: Performance of SimCode: time 6.31e-07/8.296, allocations: 2.844 kB / 3.528 GB, free: 73.15 MB / 0.5261 GB Notification: Performance of Templates: time 0.04682/8.343, allocations: 31.27 MB / 3.558 GB, free: 72.61 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches