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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 95.2 kB / 20.43 MB, free: 4.141 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 165 kB / 23.79 MB, free: 0.7773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7706/0.7706, allocations: 158.6 MB / 185.7 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1176/0.1176, allocations: 32.36 MB / 270.4 MB, free: 14.71 MB / 266.7 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..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=5006,variableFilter="time|SourceP1.ports.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.62e-07/9.62e-07, allocations: 0 / 347.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.333e-05/1.429e-05, allocations: 13.28 kB / 347.7 MB, free: 9.441 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.009756/0.009771, allocations: 14.73 MB / 362.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009845/0.01962, allocations: 11.87 MB / 374.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.01977, allocations: 11.88 kB / 374.3 MB, free: 14.73 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003898/0.02016, allocations: 142.9 kB / 374.4 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00518/0.02534, allocations: 3.682 MB / 378.1 MB, free: 10.9 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003352/0.0287, allocations: 2.081 MB / 380.2 MB, free: 8.809 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000779/0.02948, allocations: 0.9275 MB / 381.1 MB, free: 7.879 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000287/0.02976, allocations: 225 kB / 381.3 MB, free: 7.656 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000563/0.03033, allocations: 0.522 MB / 381.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.03054, allocations: 247.3 kB / 382.1 MB, free: 6.891 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.03058, allocations: 39.94 kB / 382.1 MB, free: 6.852 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007593/0.03818, allocations: 6.75 MB / 388.9 MB, free: 96 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.03829, allocations: 103.7 kB / 389 MB, free: 15.99 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.03842, allocations: 167.5 kB / 389.2 MB, free: 15.83 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005101/0.04352, allocations: 5.215 MB / 394.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.04353, allocations: 0 / 394.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.04353, allocations: 0 / 394.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.04354, allocations: 4 kB / 394.4 MB, free: 10.6 MB / 330.7 MB 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.001728/0.04526, allocations: 1.229 MB / 395.6 MB, free: 9.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.0453, allocations: 8.031 kB / 395.6 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009853/0.04629, allocations: 299.8 kB / 395.9 MB, free: 9.027 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.04665, allocations: 331.2 kB / 396.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.04668, allocations: 29.03 kB / 396.3 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/0.04671, allocations: 32.38 kB / 396.3 MB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008593/0.04757, allocations: 0.7061 MB / 397 MB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.04758, allocations: 4.125 kB / 397 MB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.04761, allocations: 15.94 kB / 397 MB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.04762, allocations: 8 kB / 397 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005994/0.04822, allocations: 367.4 kB / 397.4 MB, free: 7.43 MB / 330.7 MB 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.001634/0.04985, allocations: 2.269 MB / 399.6 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007082/0.05056, allocations: 366.6 kB / 400 MB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.05067, allocations: 75.66 kB / 400.1 MB, free: 4.625 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02378/0.07445, allocations: 12.73 MB / 412.8 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/0.07449, allocations: 37.39 kB / 412.8 MB, free: 7.828 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/0.0745, allocations: 0 / 412.8 MB, free: 7.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.001343/0.07584, allocations: 0.604 MB / 413.4 MB, free: 7.219 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.0759, allocations: 106.8 kB / 413.6 MB, free: 7.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.07615, allocations: 318.3 kB / 413.9 MB, free: 6.758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.07618, allocations: 33.7 kB / 413.9 MB, free: 6.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.0763, allocations: 255.2 kB / 414.1 MB, free: 6.465 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.504e-05/0.07635, allocations: 91.25 kB / 414.2 MB, free: 6.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.834e-05/0.07644, allocations: 79.3 kB / 414.3 MB, free: 6.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.07657, allocations: 0.5156 MB / 414.8 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.07668, allocations: 67.88 kB / 414.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.07685, allocations: 258.9 kB / 415.1 MB, free: 5.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.07709, allocations: 249.2 kB / 415.4 MB, free: 5.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.0771, allocations: 4 kB / 415.4 MB, free: 5.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003491/0.07745, allocations: 305 kB / 415.7 MB, free: 4.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.07746, allocations: 4 kB / 415.7 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.07747, allocations: 8 kB / 415.7 MB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.07749, allocations: 4 kB / 415.7 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.07765, allocations: 79.89 kB / 415.8 MB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.07766, allocations: 4 kB / 415.8 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.07778, allocations: 31.83 kB / 415.8 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.0778, allocations: 28.2 kB / 415.8 MB, free: 4.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.07791, allocations: 176.5 kB / 416 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.07797, allocations: 39.81 kB / 416.1 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009998/0.07897, allocations: 1.228 MB / 417.3 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.07899, allocations: 27.95 kB / 417.3 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.07899, allocations: 7.984 kB / 417.3 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.079, allocations: 3.984 kB / 417.3 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004897/0.07949, allocations: 0.6643 MB / 418 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.07949, allocations: 0 / 418 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.07962, allocations: 59.89 kB / 418 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.07962, allocations: 4 kB / 418.1 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.07964, allocations: 8 kB / 418.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.07964, allocations: 0 / 418.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.07964, allocations: 0 / 418.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006332/0.08028, allocations: 0.8227 MB / 418.9 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.646e-05/0.08033, allocations: 91.09 kB / 419 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.08037, allocations: 27.84 kB / 419 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.08047, allocations: 15.98 kB / 419 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.08054, allocations: 35.8 kB / 419 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.08056, allocations: 19.98 kB / 419.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001879/0.08075, allocations: 299 kB / 419.4 MB, free: 1.027 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.08075, allocations: 0 / 419.4 MB, free: 1.027 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002012/0.08276, allocations: 1.002 MB / 420.4 MB, free: 24 kB / 346.7 MB 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,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003131/0.08589, allocations: 1.285 MB / 421.6 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004605/0.08635, allocations: 321.6 kB / 422 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.08636, allocations: 4 kB / 422 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000233/0.08659, allocations: 255.5 kB / 422.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.08721, allocations: 212.1 kB / 422.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.08878, allocations: 1.343 MB / 423.8 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.08889, allocations: 181.5 kB / 423.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000269/0.08916, allocations: 275.9 kB / 424.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.565e-05/0.08924, allocations: 44.48 kB / 424.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/0.08924, allocations: 0 / 424.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of Templates: time 0.1475/0.2367, allocations: 46.14 MB / 470.4 MB, free: 50.75 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.233695902861655]