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.001007/0.001006, allocations: 177.6 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.3 MB / 213.7 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008379/0.0008378, allocations: 98.22 kB / 261.8 MB, free: 1.609 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.1864/0.1864, allocations: 43.5 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.773e-05/1.777e-05, allocations: 0 / 418.3 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1152, allocations: 58.85 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.536/6.652, allocations: 2.754 GB / 3.219 GB, free: 110 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/6.652, allocations: 85.73 kB / 3.22 GB, free: 110 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.6912/7.343, allocations: 213.9 MB / 3.428 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.774e-06/7.343, allocations: 0 / 3.428 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.869e-05/7.343, allocations: 6.625 kB / 3.428 GB, free: 85.52 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.004605/7.348, allocations: 1.161 MB / 3.43 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/7.348, allocations: 14.56 kB / 3.43 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001837/7.35, allocations: 222.9 kB / 3.43 GB, free: 84.73 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006932/7.35, allocations: 368.1 kB / 3.43 GB, free: 84.45 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/7.35, allocations: 17.19 kB / 3.43 GB, free: 84.45 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/7.35, allocations: 16.28 kB / 3.43 GB, free: 84.45 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004723/7.351, allocations: 300.6 kB / 3.43 GB, free: 84.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005178/7.351, allocations: 381.2 kB / 3.431 GB, free: 84.11 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/7.351, allocations: 0 / 3.431 GB, free: 84.11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.136e-05/7.352, allocations: 7.562 kB / 3.431 GB, free: 84.11 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/7.352, allocations: 11.2 kB / 3.431 GB, free: 84.11 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.01653/7.368, allocations: 10.13 MB / 3.441 GB, free: 77.34 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/7.368, allocations: 233.6 kB / 3.441 GB, free: 77.24 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/7.369, allocations: 119.9 kB / 3.441 GB, free: 77.19 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04085/7.41, allocations: 24.15 MB / 3.465 GB, free: 61.69 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/7.41, allocations: 38.62 kB / 3.465 GB, free: 61.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 2.725e-06/7.41, allocations: 4 kB / 3.465 GB, free: 61.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.002029/7.412, allocations: 0.5082 MB / 3.465 GB, free: 61.48 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/7.412, allocations: 106.1 kB / 3.465 GB, free: 61.35 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/7.412, allocations: 231.2 kB / 3.466 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/7.412, allocations: 29.7 kB / 3.466 GB, free: 61.18 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/7.412, allocations: 210.2 kB / 3.466 GB, free: 61 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.772e-05/7.412, allocations: 81.95 kB / 3.466 GB, free: 60.94 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/7.412, allocations: 0 / 3.466 GB, free: 60.94 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.666e-05/7.412, allocations: 333.8 kB / 3.466 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/7.412, allocations: 83.45 kB / 3.466 GB, free: 60.58 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/7.413, allocations: 180.1 kB / 3.466 GB, free: 60.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006805/7.413, allocations: 170.6 kB / 3.467 GB, free: 60.38 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/7.413, allocations: 0 / 3.467 GB, free: 60.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009838/7.414, allocations: 356.5 kB / 3.467 GB, free: 60.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/7.414, allocations: 7.094 kB / 3.467 GB, free: 60.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/7.414, allocations: 7.609 kB / 3.467 GB, free: 60.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/7.414, allocations: 7.875 kB / 3.467 GB, free: 60.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004184/7.415, allocations: 93.98 kB / 3.467 GB, free: 60.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.674e-05/7.415, allocations: 7.719 kB / 3.467 GB, free: 60.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/7.415, allocations: 59.84 kB / 3.467 GB, free: 60.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/7.415, allocations: 11.75 kB / 3.467 GB, free: 60.19 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 0.0001217/7.416, allocations: 112.5 kB / 3.467 GB, free: 60.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.256e-05/7.416, allocations: 26.09 kB / 3.467 GB, free: 60.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/7.418, allocations: 1.63 MB / 3.469 GB, free: 59.28 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.112e-05/7.418, allocations: 30.77 kB / 3.469 GB, free: 59.27 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/7.418, allocations: 4 kB / 3.469 GB, free: 59.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/7.418, allocations: 0 / 3.469 GB, free: 59.27 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009898/7.419, allocations: 0.839 MB / 3.47 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/7.419, allocations: 0 / 3.47 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003064/7.419, allocations: 77.25 kB / 3.47 GB, free: 58.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/7.419, allocations: 7.688 kB / 3.47 GB, free: 58.75 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/7.419, allocations: 3.984 kB / 3.47 GB, free: 58.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/7.419, allocations: 3.906 kB / 3.47 GB, free: 58.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/7.419, allocations: 0 / 3.47 GB, free: 58.74 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009517/7.42, allocations: 0.913 MB / 3.471 GB, free: 58.19 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/7.42, allocations: 210.4 kB / 3.471 GB, free: 57.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/7.42, allocations: 0 / 3.471 GB, free: 57.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/7.421, allocations: 42.98 kB / 3.471 GB, free: 57.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.356e-05/7.421, allocations: 35.7 kB / 3.471 GB, free: 57.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/7.421, allocations: 7.5 kB / 3.471 GB, free: 57.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002301/7.421, allocations: 288.8 kB / 3.471 GB, free: 57.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/7.421, allocations: 7.938 kB / 3.471 GB, free: 57.74 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00394/7.425, allocations: 0.9911 MB / 3.472 GB, free: 56.75 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: 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.005257/7.43, allocations: 1.425 MB / 3.474 GB, free: 55.41 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005636/7.431, allocations: 470.1 kB / 3.474 GB, free: 54.95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/7.431, allocations: 3.938 kB / 3.474 GB, free: 54.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003048/7.431, allocations: 413.2 kB / 3.474 GB, free: 54.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008968/7.432, allocations: 155.2 kB / 3.475 GB, free: 54.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/7.433, allocations: 1.028 MB / 3.476 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/7.434, allocations: 0.9635 MB / 3.477 GB, free: 52.36 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0003726/7.434, allocations: 261.1 kB / 3.477 GB, free: 52.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.777e-05/7.434, allocations: 39.42 kB / 3.477 GB, free: 52.06 MB / 0.4948 GB Notification: Performance of SimCode: time 5.82e-07/7.434, allocations: 0 / 3.477 GB, free: 52.06 MB / 0.4948 GB Notification: Performance of Templates: time 0.03083/7.465, allocations: 27.59 MB / 3.504 GB, free: 24.49 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