Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.00213/0.00213, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001114/0.001114, allocations: 90.62 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3655/0.3655, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.85e-05/2.853e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1119, allocations: 58.86 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.467/8.579, allocations: 2.754 GB / 3.227 GB, free: 87.11 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003983/8.58, allocations: 86.84 kB / 3.227 GB, free: 87.08 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.266/9.845, allocations: 216.6 MB / 3.439 GB, free: 86.86 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.954e-06/9.846, allocations: 0 / 3.439 GB, free: 86.86 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.083e-05/9.846, allocations: 15.94 kB / 3.439 GB, free: 86.84 MB / 0.5105 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.005179/9.851, allocations: 1.16 MB / 3.44 GB, free: 85.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/9.851, allocations: 11.97 kB / 3.44 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002424/9.853, allocations: 225.1 kB / 3.44 GB, free: 85.41 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008699/9.854, allocations: 371.6 kB / 3.44 GB, free: 85.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.785e-05/9.854, allocations: 28.78 kB / 3.44 GB, free: 84.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.456e-05/9.854, allocations: 27.98 kB / 3.44 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/9.856, allocations: 0.5918 MB / 3.441 GB, free: 84.34 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/9.856, allocations: 2.625 kB / 3.441 GB, free: 84.34 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.251e-05/9.856, allocations: 12 kB / 3.441 GB, free: 84.32 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/9.856, allocations: 11.98 kB / 3.441 GB, free: 84.31 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/9.858, allocations: 0.4977 MB / 3.441 GB, free: 83.81 MB / 0.5105 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.003949/9.862, allocations: 2.589 MB / 3.444 GB, free: 81.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/9.864, allocations: 433.6 kB / 3.444 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/9.864, allocations: 132.8 kB / 3.445 GB, free: 80.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07327/9.937, allocations: 24.16 MB / 3.468 GB, free: 53.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/9.937, allocations: 42.55 kB / 3.468 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.935e-06/9.937, allocations: 0 / 3.468 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.00292/9.94, allocations: 0.626 MB / 3.469 GB, free: 52.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/9.94, allocations: 106.8 kB / 3.469 GB, free: 52.77 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/9.941, allocations: 270.7 kB / 3.469 GB, free: 52.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/9.941, allocations: 37.7 kB / 3.469 GB, free: 52.46 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/9.941, allocations: 254.4 kB / 3.469 GB, free: 52.21 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.45e-05/9.941, allocations: 85.66 kB / 3.469 GB, free: 52.13 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.537e-05/9.941, allocations: 4 kB / 3.469 GB, free: 52.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.285e-05/9.941, allocations: 322.8 kB / 3.47 GB, free: 51.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/9.942, allocations: 87.98 kB / 3.47 GB, free: 51.71 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/9.942, allocations: 183 kB / 3.47 GB, free: 51.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/9.942, allocations: 111.9 kB / 3.47 GB, free: 51.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/9.942, allocations: 0 / 3.47 GB, free: 51.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007903/9.943, allocations: 309.6 kB / 3.47 GB, free: 51.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/9.943, allocations: 11.98 kB / 3.47 GB, free: 51.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/9.943, allocations: 4 kB / 3.47 GB, free: 51.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/9.943, allocations: 4 kB / 3.47 GB, free: 51.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006609/9.944, allocations: 87.88 kB / 3.471 GB, free: 50.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/9.944, allocations: 4 kB / 3.471 GB, free: 50.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000634/9.944, allocations: 67.56 kB / 3.471 GB, free: 50.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.961e-05/9.945, allocations: 15.98 kB / 3.471 GB, free: 50.89 MB / 0.5105 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.0001492/9.945, allocations: 124.9 kB / 3.471 GB, free: 50.76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/9.945, allocations: 43.5 kB / 3.471 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/9.947, allocations: 1.845 MB / 3.473 GB, free: 48.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.457e-05/9.948, allocations: 27.95 kB / 3.473 GB, free: 48.83 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/9.948, allocations: 3.938 kB / 3.473 GB, free: 48.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.964e-06/9.948, allocations: 0 / 3.473 GB, free: 48.82 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/9.949, allocations: 0.9973 MB / 3.474 GB, free: 47.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/9.949, allocations: 4 kB / 3.474 GB, free: 47.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006216/9.95, allocations: 91.86 kB / 3.474 GB, free: 47.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-06/9.95, allocations: 0 / 3.474 GB, free: 47.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/9.95, allocations: 8 kB / 3.474 GB, free: 47.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/9.95, allocations: 3.953 kB / 3.474 GB, free: 47.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/9.95, allocations: 0 / 3.474 GB, free: 47.68 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/9.951, allocations: 0.9868 MB / 3.475 GB, free: 46.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/9.951, allocations: 215.5 kB / 3.475 GB, free: 46.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.697e-05/9.952, allocations: 11.98 kB / 3.475 GB, free: 46.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005776/9.952, allocations: 47.88 kB / 3.475 GB, free: 46.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/9.952, allocations: 35.91 kB / 3.475 GB, free: 46.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/9.952, allocations: 11.98 kB / 3.475 GB, free: 46.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004936/9.953, allocations: 313.2 kB / 3.475 GB, free: 46.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.11e-07/9.953, allocations: 0 / 3.475 GB, free: 46.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004969/9.958, allocations: 1.015 MB / 3.476 GB, free: 45.02 MB / 0.5105 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 () * 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.00954/9.967, allocations: 1.368 MB / 3.478 GB, free: 43.78 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001084/9.969, allocations: 0.498 MB / 3.478 GB, free: 43.28 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/9.969, allocations: 0 / 3.478 GB, free: 43.28 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006176/9.969, allocations: 473.7 kB / 3.479 GB, free: 42.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001885/9.971, allocations: 193.7 kB / 3.479 GB, free: 42.63 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/9.973, allocations: 1.164 MB / 3.48 GB, free: 41.43 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/9.974, allocations: 0.9758 MB / 3.481 GB, free: 40.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/9.974, allocations: 43.42 kB / 3.481 GB, free: 40.39 MB / 0.5105 GB Notification: Performance of SimCode: time 1.183e-06/9.974, allocations: 0 / 3.481 GB, free: 40.39 MB / 0.5105 GB Notification: Performance of Templates: time 0.05516/10.03, allocations: 26.36 MB / 3.507 GB, free: 13.99 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches