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.001114/0.001114, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.37/1.37, allocations: 221.3 MB / 236 MB, free: 2.98 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.0009109/0.0009109, allocations: 98.08 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1897/0.1897, allocations: 44.16 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.187e-05/3.198e-05, allocations: 4.219 kB / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1347, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.045/6.179, allocations: 2.76 GB / 3.261 GB, free: 160 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/6.18, allocations: 82.98 kB / 3.261 GB, free: 160 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.7838/6.963, allocations: 218.8 MB / 3.475 GB, free: 90.99 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.014e-06/6.963, allocations: 1.344 kB / 3.475 GB, free: 90.99 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.487e-05/6.963, allocations: 9.688 kB / 3.475 GB, free: 90.99 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.005132/6.969, allocations: 1.162 MB / 3.476 GB, free: 90.43 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/6.969, allocations: 9.438 kB / 3.476 GB, free: 90.43 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001691/6.97, allocations: 219.1 kB / 3.476 GB, free: 90.41 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005814/6.971, allocations: 373 kB / 3.477 GB, free: 90.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/6.971, allocations: 29.08 kB / 3.477 GB, free: 90.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/6.971, allocations: 29.44 kB / 3.477 GB, free: 90.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/6.972, allocations: 0.5874 MB / 3.477 GB, free: 90.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/6.972, allocations: 1.156 kB / 3.477 GB, free: 90.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/6.972, allocations: 14.69 kB / 3.477 GB, free: 90.05 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/6.972, allocations: 8.969 kB / 3.477 GB, free: 90.05 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/6.974, allocations: 497.4 kB / 3.478 GB, free: 90.05 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.002775/6.976, allocations: 2.607 MB / 3.48 GB, free: 88.16 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/6.978, allocations: 420.4 kB / 3.481 GB, free: 88.14 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/6.978, allocations: 138 kB / 3.481 GB, free: 88.13 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04204/7.02, allocations: 24.16 MB / 3.505 GB, free: 73.48 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/7.02, allocations: 30.56 kB / 3.505 GB, free: 73.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 2.444e-06/7.02, allocations: 0 / 3.505 GB, free: 73.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002065/7.022, allocations: 0.6282 MB / 3.505 GB, free: 73.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/7.022, allocations: 118.1 kB / 3.505 GB, free: 73.27 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/7.022, allocations: 269.5 kB / 3.506 GB, free: 73.16 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/7.022, allocations: 32.98 kB / 3.506 GB, free: 73.13 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/7.023, allocations: 200.6 kB / 3.506 GB, free: 73.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.093e-05/7.023, allocations: 91.19 kB / 3.506 GB, free: 72.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.554e-05/7.023, allocations: 6.812 kB / 3.506 GB, free: 72.98 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.892e-05/7.023, allocations: 344.6 kB / 3.506 GB, free: 72.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/7.023, allocations: 88.78 kB / 3.506 GB, free: 72.67 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/7.023, allocations: 181.6 kB / 3.506 GB, free: 72.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/7.023, allocations: 110 kB / 3.507 GB, free: 72.56 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/7.023, allocations: 0 / 3.507 GB, free: 72.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004376/7.024, allocations: 328 kB / 3.507 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/7.024, allocations: 8.219 kB / 3.507 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/7.024, allocations: 3.938 kB / 3.507 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/7.024, allocations: 3.844 kB / 3.507 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/7.024, allocations: 87.78 kB / 3.507 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/7.024, allocations: 7.656 kB / 3.507 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/7.025, allocations: 72.19 kB / 3.507 GB, free: 72.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/7.025, allocations: 13.78 kB / 3.507 GB, free: 72.5 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 9.35e-05/7.025, allocations: 119 kB / 3.507 GB, free: 72.39 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.009e-05/7.025, allocations: 31.91 kB / 3.507 GB, free: 72.38 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/7.026, allocations: 1.862 MB / 3.509 GB, free: 72.17 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.668e-05/7.027, allocations: 24.94 kB / 3.509 GB, free: 72.17 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/7.027, allocations: 0 / 3.509 GB, free: 72.17 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/7.027, allocations: 14.48 kB / 3.509 GB, free: 72.17 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009365/7.027, allocations: 1.001 MB / 3.51 GB, free: 71.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/7.027, allocations: 0 / 3.51 GB, free: 71.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/7.028, allocations: 81.86 kB / 3.51 GB, free: 71.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/7.028, allocations: 3.906 kB / 3.51 GB, free: 71.94 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/7.028, allocations: 10.61 kB / 3.51 GB, free: 71.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/7.028, allocations: 3.562 kB / 3.51 GB, free: 71.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/7.028, allocations: 0 / 3.51 GB, free: 71.94 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008833/7.029, allocations: 0.9827 MB / 3.511 GB, free: 71.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/7.029, allocations: 218.1 kB / 3.511 GB, free: 71.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/7.029, allocations: 7.25 kB / 3.511 GB, free: 71.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/7.029, allocations: 47.53 kB / 3.511 GB, free: 71.56 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.889e-05/7.029, allocations: 30.27 kB / 3.511 GB, free: 71.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/7.029, allocations: 18.17 kB / 3.511 GB, free: 71.56 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003051/7.03, allocations: 318.4 kB / 3.512 GB, free: 71.47 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.51e-07/7.03, allocations: 0 / 3.512 GB, free: 71.47 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00607/7.036, allocations: 1.006 MB / 3.513 GB, free: 71.32 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 () * 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.007005/7.043, allocations: 1.373 MB / 3.514 GB, free: 71.08 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0009253/7.044, allocations: 0.5039 MB / 3.515 GB, free: 71.06 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/7.044, allocations: 0 / 3.515 GB, free: 71.06 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000434/7.044, allocations: 473.7 kB / 3.515 GB, free: 71.06 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/7.045, allocations: 197.7 kB / 3.515 GB, free: 71.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/7.047, allocations: 1.127 MB / 3.516 GB, free: 70.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/7.047, allocations: 0.9811 MB / 3.517 GB, free: 70.07 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004136/7.048, allocations: 237.2 kB / 3.517 GB, free: 70.07 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.043e-05/7.048, allocations: 41.38 kB / 3.517 GB, free: 70.06 MB / 0.5261 GB Notification: Performance of SimCode: time 5.91e-07/7.048, allocations: 3.031 kB / 3.517 GB, free: 70.06 MB / 0.5261 GB Notification: Performance of Templates: time 0.04019/7.088, allocations: 32.53 MB / 3.549 GB, free: 68.78 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