Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 181.4 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.000786/0.0007862, allocations: 93.97 kB / 271.9 MB, free: 8.25 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.3295/0.3295, allocations: 43.56 MB / 363.8 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003674, allocations: 16 kB / 432.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1184, allocations: 58.85 MB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.784/4.902, allocations: 2.754 GB / 3.234 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/4.903, allocations: 86.58 kB / 3.234 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.6272/5.53, allocations: 217.3 MB / 3.447 GB, free: 62.05 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.164e-06/5.53, allocations: 3.938 kB / 3.447 GB, free: 62.05 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.042e-05/5.53, allocations: 7.906 kB / 3.447 GB, free: 62.05 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.004081/5.534, allocations: 1.222 MB / 3.448 GB, free: 61.26 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/5.534, allocations: 11.66 kB / 3.448 GB, free: 61.26 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/5.536, allocations: 222.2 kB / 3.448 GB, free: 61.23 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/5.536, allocations: 376.9 kB / 3.448 GB, free: 60.94 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/5.536, allocations: 29.44 kB / 3.448 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/5.536, allocations: 30.98 kB / 3.448 GB, free: 60.91 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/5.537, allocations: 0.6222 MB / 3.449 GB, free: 60.64 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/5.537, allocations: 6.438 kB / 3.449 GB, free: 60.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/5.538, allocations: 12.34 kB / 3.449 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/5.538, allocations: 7.938 kB / 3.449 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/5.539, allocations: 0.5849 MB / 3.45 GB, free: 60.5 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.002188/5.541, allocations: 2.608 MB / 3.452 GB, free: 58.31 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/5.543, allocations: 483 kB / 3.453 GB, free: 58.19 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004189/5.543, allocations: 203.8 kB / 3.453 GB, free: 58.13 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03715/5.58, allocations: 24.08 MB / 3.476 GB, free: 42.65 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/5.58, allocations: 33.59 kB / 3.476 GB, free: 42.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 2.244e-06/5.58, allocations: 0 / 3.476 GB, free: 42.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.00272/5.583, allocations: 0.8488 MB / 3.477 GB, free: 42.39 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/5.583, allocations: 108.8 kB / 3.477 GB, free: 42.27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003101/5.583, allocations: 311.3 kB / 3.478 GB, free: 42.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/5.583, allocations: 33.7 kB / 3.478 GB, free: 42.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.437e-05/5.583, allocations: 212.8 kB / 3.478 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.698e-05/5.584, allocations: 84.84 kB / 3.478 GB, free: 41.81 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.816e-05/5.584, allocations: 8 kB / 3.478 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.548e-05/5.584, allocations: 341.1 kB / 3.478 GB, free: 41.48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/5.584, allocations: 156.7 kB / 3.478 GB, free: 41.44 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004086/5.584, allocations: 248 kB / 3.479 GB, free: 41.29 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007745/5.585, allocations: 399.9 kB / 3.479 GB, free: 41.09 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/5.585, allocations: 0 / 3.479 GB, free: 41.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009406/5.586, allocations: 464.1 kB / 3.479 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/5.586, allocations: 3.906 kB / 3.479 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/5.586, allocations: 4.281 kB / 3.479 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/5.586, allocations: 7.812 kB / 3.479 GB, free: 40.92 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003532/5.587, allocations: 97.27 kB / 3.48 GB, free: 40.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/5.587, allocations: 11.28 kB / 3.48 GB, free: 40.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/5.587, allocations: 70.83 kB / 3.48 GB, free: 40.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/5.587, allocations: 13.75 kB / 3.48 GB, free: 40.88 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.0001617/5.587, allocations: 159.1 kB / 3.48 GB, free: 40.74 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.274e-05/5.587, allocations: 38.09 kB / 3.48 GB, free: 40.72 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/5.589, allocations: 1.941 MB / 3.482 GB, free: 39.84 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/5.589, allocations: 38.41 kB / 3.482 GB, free: 39.83 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/5.589, allocations: 3.938 kB / 3.482 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/5.589, allocations: 0 / 3.482 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007791/5.59, allocations: 1.009 MB / 3.483 GB, free: 39.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/5.59, allocations: 7.844 kB / 3.483 GB, free: 39.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003138/5.59, allocations: 83.56 kB / 3.483 GB, free: 39.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/5.59, allocations: 0 / 3.483 GB, free: 39.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/5.59, allocations: 9.047 kB / 3.483 GB, free: 39.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/5.59, allocations: 4 kB / 3.483 GB, free: 39.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/5.59, allocations: 7.5 kB / 3.483 GB, free: 39.22 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/5.592, allocations: 1.107 MB / 3.484 GB, free: 38.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/5.592, allocations: 225 kB / 3.484 GB, free: 38.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.207e-05/5.592, allocations: 7.844 kB / 3.484 GB, free: 38.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/5.592, allocations: 50.12 kB / 3.484 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/5.592, allocations: 33.88 kB / 3.484 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/5.592, allocations: 15.12 kB / 3.484 GB, free: 38.47 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00028/5.593, allocations: 322.5 kB / 3.485 GB, free: 38.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/5.593, allocations: 0 / 3.485 GB, free: 38.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00358/5.596, allocations: 1.01 MB / 3.486 GB, free: 38.11 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: 18 ($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) * 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.006445/5.603, allocations: 1.369 MB / 3.487 GB, free: 37.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00118/5.604, allocations: 0.6319 MB / 3.488 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/5.604, allocations: 0 / 3.488 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005942/5.605, allocations: 0.5282 MB / 3.488 GB, free: 37.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/5.606, allocations: 213.4 kB / 3.488 GB, free: 37.24 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/5.608, allocations: 1.891 MB / 3.49 GB, free: 36.11 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/5.608, allocations: 0.9653 MB / 3.491 GB, free: 35.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/5.608, allocations: 45.09 kB / 3.491 GB, free: 35.38 MB / 0.4948 GB Notification: Performance of SimCode: time 3.4e-07/5.608, allocations: 0 / 3.491 GB, free: 35.38 MB / 0.4948 GB Notification: Performance of Templates: time 0.03016/5.638, allocations: 23.87 MB / 3.514 GB, free: 21.96 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches