Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 207.4 kB / 25.12 MB, free: 3.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 230.4 MB / 258.7 MB, free: 8.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2284/0.2284, allocations: 46.92 MB / 362 MB, free: 4.227 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002352, allocations: 79.86 kB / 0.4978 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.3001, allocations: 66.09 MB / 0.5623 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03445/0.3345, allocations: 28.32 MB / 0.59 GB, free: 7.84 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.3525, allocations: 13.27 MB / 0.603 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003692/0.3529, allocations: 11.88 kB / 0.603 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000787/0.3537, allocations: 254.4 kB / 0.6032 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.3644, allocations: 3.677 MB / 0.6068 GB, free: 6.59 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007021/0.3715, allocations: 2.394 MB / 0.6091 GB, free: 4.195 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.3729, allocations: 0.9042 MB / 0.61 GB, free: 3.289 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.3733, allocations: 212.9 kB / 0.6102 GB, free: 3.074 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009141/0.3743, allocations: 462.2 kB / 0.6107 GB, free: 2.621 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004148/0.3747, allocations: 282.8 kB / 0.6109 GB, free: 2.344 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.177e-05/0.3747, allocations: 39.94 kB / 0.611 GB, free: 2.305 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01376/0.3885, allocations: 7.18 MB / 0.618 GB, free: 11.11 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.3887, allocations: 107.7 kB / 0.6181 GB, free: 11.01 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003508/0.3891, allocations: 226.9 kB / 0.6183 GB, free: 10.79 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.3993, allocations: 4.42 MB / 0.6226 GB, free: 6.355 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3993, allocations: 0 / 0.6226 GB, free: 6.355 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3993, allocations: 0 / 0.6226 GB, free: 6.355 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3993, allocations: 0 / 0.6226 GB, free: 6.355 MB / 462.1 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.003225/0.4025, allocations: 1.18 MB / 0.6238 GB, free: 5.141 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.4026, allocations: 12.03 kB / 0.6238 GB, free: 5.129 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001771/0.4043, allocations: 216.4 kB / 0.624 GB, free: 4.918 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006016/0.4049, allocations: 317.1 kB / 0.6243 GB, free: 4.578 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.405, allocations: 25.03 kB / 0.6243 GB, free: 4.555 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.883e-05/0.405, allocations: 28.38 kB / 0.6243 GB, free: 4.527 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.4067, allocations: 0.7291 MB / 0.6251 GB, free: 3.723 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.4067, allocations: 0 / 0.6251 GB, free: 3.723 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.74e-05/0.4068, allocations: 16 kB / 0.6251 GB, free: 3.707 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.4068, allocations: 8 kB / 0.6251 GB, free: 3.699 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.4084, allocations: 0.5331 MB / 0.6256 GB, free: 3.164 MB / 462.1 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.00328/0.4117, allocations: 2.515 MB / 0.6281 GB, free: 448 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.4133, allocations: 442.2 kB / 0.6285 GB, free: 15.99 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004406/0.4137, allocations: 181.6 kB / 0.6286 GB, free: 15.82 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04509/0.4588, allocations: 13.15 MB / 0.6415 GB, free: 2.645 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.4588, allocations: 38.56 kB / 0.6415 GB, free: 2.598 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.804e-06/0.4588, allocations: 0 / 0.6415 GB, free: 2.598 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.00295/0.4618, allocations: 0.7896 MB / 0.6423 GB, free: 1.801 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.816e-05/0.4619, allocations: 106.8 kB / 0.6424 GB, free: 1.672 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.4622, allocations: 312.5 kB / 0.6427 GB, free: 1.363 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.919e-05/0.4623, allocations: 33.7 kB / 0.6427 GB, free: 1.324 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.4625, allocations: 212.5 kB / 0.6429 GB, free: 1.113 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.415e-05/0.4625, allocations: 87.2 kB / 0.643 GB, free: 1.027 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.4627, allocations: 65.69 kB / 0.6431 GB, free: 0.957 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.4628, allocations: 342.8 kB / 0.6434 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003761/0.4632, allocations: 135.9 kB / 0.6435 GB, free: 492 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.4637, allocations: 291.1 kB / 0.6438 GB, free: 148 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008207/0.4645, allocations: 361.1 kB / 0.6442 GB, free: 15.76 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4645, allocations: 0 / 0.6442 GB, free: 15.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009874/0.4655, allocations: 430.1 kB / 0.6446 GB, free: 15.33 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.4655, allocations: 8 kB / 0.6446 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4655, allocations: 4 kB / 0.6446 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.4656, allocations: 7.938 kB / 0.6446 GB, free: 15.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003319/0.4659, allocations: 79.88 kB / 0.6447 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.4659, allocations: 4 kB / 0.6447 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/0.4662, allocations: 47.75 kB / 0.6447 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.4662, allocations: 12.06 kB / 0.6447 GB, free: 15.17 MB / 494.1 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.0001997/0.4664, allocations: 166 kB / 0.6449 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.347e-05/0.4665, allocations: 35.77 kB / 0.6449 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.4691, allocations: 1.97 MB / 0.6468 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.733e-05/0.4691, allocations: 39.88 kB / 0.6469 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4692, allocations: 0 / 0.6469 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4692, allocations: 0 / 0.6469 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.4703, allocations: 1.011 MB / 0.6479 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.4703, allocations: 8 kB / 0.6479 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.4706, allocations: 71.88 kB / 0.6479 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.4706, allocations: 3.938 kB / 0.6479 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.4706, allocations: 8 kB / 0.648 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.4706, allocations: 3.938 kB / 0.648 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4706, allocations: 0 / 0.648 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.4723, allocations: 1.116 MB / 0.649 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.4724, allocations: 91.14 kB / 0.6491 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.4725, allocations: 23.83 kB / 0.6492 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.4727, allocations: 31.92 kB / 0.6492 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.4728, allocations: 35.94 kB / 0.6492 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.4728, allocations: 15.92 kB / 0.6492 GB, free: 10.46 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003923/0.4732, allocations: 327.1 kB / 0.6495 GB, free: 10.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4732, allocations: 4 kB / 0.6496 GB, free: 10.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002721/0.476, allocations: 1.006 MB / 0.6505 GB, free: 9.129 MB / 494.1 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.004147/0.4801, allocations: 1.167 MB / 0.6517 GB, free: 7.953 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.4814, allocations: 0.5987 MB / 0.6523 GB, free: 7.355 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4814, allocations: 4 kB / 0.6523 GB, free: 7.352 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006553/0.482, allocations: 413.1 kB / 0.6527 GB, free: 6.949 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.4831, allocations: 209 kB / 0.6529 GB, free: 6.746 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.4855, allocations: 1.568 MB / 0.6544 GB, free: 5.148 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005979/0.4861, allocations: 0.9677 MB / 0.6553 GB, free: 4.152 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004591/0.4865, allocations: 273.8 kB / 0.6556 GB, free: 3.883 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.4866, allocations: 43.44 kB / 0.6556 GB, free: 3.84 MB / 494.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4866, allocations: 0 / 0.6556 GB, free: 3.84 MB / 494.1 MB Notification: Performance of Templates: time 0.05923/0.5459, allocations: 40.17 MB / 0.6949 GB, free: 11.72 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.599986708024517]