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.001144/0.001144, allocations: 175.1 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008919/0.0008919, allocations: 84.58 kB / 281.6 MB, free: 5.262 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.2054/0.2054, allocations: 44.14 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.029e-05/2.032e-05, allocations: 224 / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1808, allocations: 61.92 MB / 0.4947 GB, free: 1.242 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.422/7.602, allocations: 2.759 GB / 3.254 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/7.603, allocations: 80.41 kB / 3.254 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.787/8.39, allocations: 216.1 MB / 3.465 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.523e-06/8.39, allocations: 3.125 kB / 3.465 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.176e-05/8.39, allocations: 10.41 kB / 3.465 GB, free: 105.9 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.005024/8.395, allocations: 1.16 MB / 3.466 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/8.395, allocations: 11.58 kB / 3.466 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/8.397, allocations: 227.7 kB / 3.466 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005873/8.397, allocations: 369.2 kB / 3.466 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/8.397, allocations: 14.56 kB / 3.466 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/8.397, allocations: 15.53 kB / 3.466 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000491/8.398, allocations: 304.4 kB / 3.467 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005217/8.399, allocations: 379.4 kB / 3.467 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/8.399, allocations: 3.969 kB / 3.467 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/8.399, allocations: 7.656 kB / 3.467 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/8.399, allocations: 6.062 kB / 3.467 GB, free: 104.9 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.0169/8.416, allocations: 10.13 MB / 3.477 GB, free: 98.47 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/8.416, allocations: 243.8 kB / 3.477 GB, free: 98.44 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/8.416, allocations: 117.3 kB / 3.477 GB, free: 98.41 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0424/8.459, allocations: 24.16 MB / 3.501 GB, free: 83.29 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/8.459, allocations: 38.56 kB / 3.501 GB, free: 83.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/8.459, allocations: 0 / 3.501 GB, free: 83.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.00174/8.46, allocations: 0.5013 MB / 3.501 GB, free: 83.08 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/8.46, allocations: 110.6 kB / 3.502 GB, free: 82.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/8.461, allocations: 237.2 kB / 3.502 GB, free: 82.81 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/8.461, allocations: 25.7 kB / 3.502 GB, free: 82.78 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/8.461, allocations: 209.4 kB / 3.502 GB, free: 82.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.806e-05/8.461, allocations: 87.8 kB / 3.502 GB, free: 82.54 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.467e-05/8.461, allocations: 0 / 3.502 GB, free: 82.54 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.144e-05/8.461, allocations: 337.5 kB / 3.502 GB, free: 82.21 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/8.461, allocations: 81.16 kB / 3.503 GB, free: 82.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/8.461, allocations: 178.5 kB / 3.503 GB, free: 82.03 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005656/8.462, allocations: 165.6 kB / 3.503 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/8.462, allocations: 0 / 3.503 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008024/8.463, allocations: 359.5 kB / 3.503 GB, free: 81.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/8.463, allocations: 3.969 kB / 3.503 GB, free: 81.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/8.463, allocations: 7.469 kB / 3.503 GB, free: 81.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/8.463, allocations: 3.688 kB / 3.503 GB, free: 81.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00036/8.463, allocations: 89.14 kB / 3.503 GB, free: 81.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/8.463, allocations: 4.125 kB / 3.503 GB, free: 81.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/8.463, allocations: 56.09 kB / 3.503 GB, free: 81.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/8.463, allocations: 20.81 kB / 3.503 GB, free: 81.8 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 () * 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 8.357e-05/8.464, allocations: 116.3 kB / 3.503 GB, free: 81.68 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.373e-05/8.464, allocations: 30.23 kB / 3.503 GB, free: 81.67 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/8.465, allocations: 1.622 MB / 3.505 GB, free: 80.89 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/8.465, allocations: 29.75 kB / 3.505 GB, free: 80.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/8.465, allocations: 3.891 kB / 3.505 GB, free: 80.88 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/8.465, allocations: 3.422 kB / 3.505 GB, free: 80.88 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007002/8.466, allocations: 0.8468 MB / 3.506 GB, free: 80.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/8.466, allocations: 0 / 3.506 GB, free: 80.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002936/8.466, allocations: 84.16 kB / 3.506 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/8.466, allocations: 0 / 3.506 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/8.466, allocations: 3.875 kB / 3.506 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/8.466, allocations: 5.609 kB / 3.506 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/8.466, allocations: 3.984 kB / 3.506 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000999/8.467, allocations: 0.9111 MB / 3.507 GB, free: 79.91 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/8.467, allocations: 208.1 kB / 3.507 GB, free: 79.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.648e-05/8.468, allocations: 3.609 kB / 3.507 GB, free: 79.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002964/8.468, allocations: 43.08 kB / 3.507 GB, free: 79.72 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/8.468, allocations: 31.11 kB / 3.507 GB, free: 79.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/8.468, allocations: 15.02 kB / 3.507 GB, free: 79.71 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002324/8.468, allocations: 289.9 kB / 3.507 GB, free: 79.55 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/8.468, allocations: 0 / 3.507 GB, free: 79.55 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004326/8.473, allocations: 0.9886 MB / 3.508 GB, free: 79.36 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: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.006139/8.479, allocations: 1.447 MB / 3.51 GB, free: 78.97 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0006764/8.479, allocations: 459.3 kB / 3.51 GB, free: 78.79 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/8.479, allocations: 1.344 kB / 3.51 GB, free: 78.79 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003529/8.48, allocations: 420.5 kB / 3.511 GB, free: 78.58 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009798/8.481, allocations: 166 kB / 3.511 GB, free: 78.54 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/8.482, allocations: 1.024 MB / 3.512 GB, free: 78.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/8.482, allocations: 0.9616 MB / 3.513 GB, free: 77.35 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004405/8.483, allocations: 267.5 kB / 3.513 GB, free: 77.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.53e-05/8.483, allocations: 34.56 kB / 3.513 GB, free: 77.31 MB / 0.5261 GB Notification: Performance of SimCode: time 3.71e-07/8.483, allocations: 0 / 3.513 GB, free: 77.31 MB / 0.5261 GB Notification: Performance of Templates: time 0.03666/8.52, allocations: 27.62 MB / 3.54 GB, free: 72.39 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