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.001354/0.001354, allocations: 179.1 kB / 18.08 MB, free: 3.754 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.347/1.347, allocations: 223.3 MB / 242.1 MB, free: 11.7 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.0007722/0.0007719, allocations: 96.22 kB / 293.3 MB, free: 10.82 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.3294/0.3294, allocations: 44.15 MB / 388.5 MB, free: 38.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003847, allocations: 12 kB / 461.1 MB, free: 1.598 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3954, allocations: 61.88 MB / 0.5107 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.961/6.356, allocations: 2.76 GB / 3.271 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/6.356, allocations: 94.75 kB / 3.271 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.7467/7.103, allocations: 219.5 MB / 3.485 GB, free: 72.38 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.955e-06/7.103, allocations: 0 / 3.485 GB, free: 72.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.04e-05/7.103, allocations: 7.812 kB / 3.485 GB, free: 72.38 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.00496/7.108, allocations: 1.199 MB / 3.486 GB, free: 71.59 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/7.108, allocations: 11.59 kB / 3.486 GB, free: 71.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001815/7.11, allocations: 223 kB / 3.486 GB, free: 71.56 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006374/7.111, allocations: 379.7 kB / 3.487 GB, free: 71.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/7.111, allocations: 29.44 kB / 3.487 GB, free: 71.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.046e-05/7.111, allocations: 31.41 kB / 3.487 GB, free: 71.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/7.112, allocations: 0.6039 MB / 3.487 GB, free: 70.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/7.112, allocations: 3.984 kB / 3.487 GB, free: 70.98 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/7.112, allocations: 11.78 kB / 3.487 GB, free: 70.97 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/7.112, allocations: 7.844 kB / 3.487 GB, free: 70.97 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/7.114, allocations: 0.561 MB / 3.488 GB, free: 70.84 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.002551/7.116, allocations: 2.603 MB / 3.491 GB, free: 68.66 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/7.118, allocations: 479.2 kB / 3.491 GB, free: 68.53 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/7.118, allocations: 177.5 kB / 3.491 GB, free: 68.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03631/7.154, allocations: 24.08 MB / 3.515 GB, free: 52.68 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/7.154, allocations: 34.53 kB / 3.515 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/7.154, allocations: 0 / 3.515 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002457/7.157, allocations: 0.8178 MB / 3.516 GB, free: 52.42 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/7.157, allocations: 118.7 kB / 3.516 GB, free: 52.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/7.157, allocations: 302.9 kB / 3.516 GB, free: 52.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/7.157, allocations: 32.73 kB / 3.516 GB, free: 52.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/7.157, allocations: 208 kB / 3.516 GB, free: 51.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/7.157, allocations: 86.81 kB / 3.516 GB, free: 51.85 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/7.157, allocations: 7.719 kB / 3.516 GB, free: 51.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.038e-05/7.157, allocations: 341.8 kB / 3.517 GB, free: 51.52 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003153/7.158, allocations: 140.5 kB / 3.517 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003463/7.158, allocations: 234.4 kB / 3.517 GB, free: 51.33 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006225/7.159, allocations: 366 kB / 3.517 GB, free: 51.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/7.159, allocations: 0 / 3.517 GB, free: 51.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007734/7.16, allocations: 430.8 kB / 3.518 GB, free: 50.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/7.16, allocations: 5.25 kB / 3.518 GB, free: 50.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/7.16, allocations: 7.594 kB / 3.518 GB, free: 50.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/7.16, allocations: 3.906 kB / 3.518 GB, free: 50.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/7.16, allocations: 91.84 kB / 3.518 GB, free: 50.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/7.16, allocations: 7.938 kB / 3.518 GB, free: 50.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/7.16, allocations: 63.11 kB / 3.518 GB, free: 50.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/7.16, allocations: 11.75 kB / 3.518 GB, free: 50.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.0001911/7.16, allocations: 157.7 kB / 3.518 GB, free: 50.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.524e-05/7.161, allocations: 35.62 kB / 3.518 GB, free: 50.63 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001854/7.162, allocations: 1.915 MB / 3.52 GB, free: 48.92 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/7.162, allocations: 35.33 kB / 3.52 GB, free: 48.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/7.162, allocations: 3.938 kB / 3.52 GB, free: 48.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/7.162, allocations: 4 kB / 3.52 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007944/7.163, allocations: 1.003 MB / 3.521 GB, free: 48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/7.163, allocations: 0 / 3.521 GB, free: 48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002724/7.164, allocations: 83.12 kB / 3.521 GB, free: 47.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/7.164, allocations: 4 kB / 3.521 GB, free: 47.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/7.164, allocations: 11.88 kB / 3.521 GB, free: 47.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/7.164, allocations: 4 kB / 3.521 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/7.164, allocations: 3.938 kB / 3.521 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/7.165, allocations: 1.074 MB / 3.522 GB, free: 46.92 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/7.165, allocations: 222.5 kB / 3.522 GB, free: 46.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.064e-05/7.165, allocations: 7.844 kB / 3.522 GB, free: 46.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002749/7.165, allocations: 47.73 kB / 3.522 GB, free: 46.66 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.437e-05/7.165, allocations: 34.94 kB / 3.522 GB, free: 46.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/7.165, allocations: 8 kB / 3.522 GB, free: 46.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002845/7.166, allocations: 323.9 kB / 3.523 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/7.166, allocations: 0 / 3.523 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004421/7.17, allocations: 1.013 MB / 3.524 GB, free: 45.37 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.006467/7.177, allocations: 1.375 MB / 3.525 GB, free: 44.25 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001138/7.178, allocations: 0.5988 MB / 3.526 GB, free: 43.72 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/7.178, allocations: 0 / 3.526 GB, free: 43.72 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005238/7.178, allocations: 0.5256 MB / 3.526 GB, free: 43.24 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/7.179, allocations: 209.8 kB / 3.526 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/7.181, allocations: 1.866 MB / 3.528 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/7.182, allocations: 0.9553 MB / 3.529 GB, free: 40.46 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0003879/7.182, allocations: 241.3 kB / 3.529 GB, free: 40.31 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.408e-05/7.182, allocations: 39.44 kB / 3.529 GB, free: 40.27 MB / 0.5261 GB Notification: Performance of SimCode: time 3.91e-07/7.182, allocations: 0 / 3.529 GB, free: 40.27 MB / 0.5261 GB Notification: Performance of Templates: time 0.04294/7.225, allocations: 33.49 MB / 3.562 GB, free: 7.715 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/jenkins1/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