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.001814/0.001814, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 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.002117/0.002117, allocations: 206.2 kB / 24.47 MB, free: 4.023 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.461/1.461, allocations: 230.2 MB / 257.8 MB, free: 8.508 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.2333/0.2333, allocations: 46.9 MB / 361.1 MB, free: 4.621 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.002297/0.002297, allocations: 75.88 kB / 0.4968 GB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3087, allocations: 65.99 MB / 0.5612 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03386/0.3425, allocations: 28.64 MB / 0.5892 GB, free: 8.254 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0176/0.3601, allocations: 13.38 MB / 0.6022 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002769/0.3604, allocations: 7.938 kB / 0.6022 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007753/0.3612, allocations: 258.4 kB / 0.6025 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009363/0.3705, allocations: 3.666 MB / 0.6061 GB, free: 6.891 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006559/0.3771, allocations: 2.383 MB / 0.6084 GB, free: 4.512 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.3783, allocations: 0.8925 MB / 0.6093 GB, free: 3.617 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/0.3787, allocations: 212.7 kB / 0.6095 GB, free: 3.406 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007781/0.3795, allocations: 466.1 kB / 0.6099 GB, free: 2.949 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.3799, allocations: 270.9 kB / 0.6102 GB, free: 2.684 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.324e-05/0.3799, allocations: 32 kB / 0.6102 GB, free: 2.652 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01419/0.3941, allocations: 7.254 MB / 0.6173 GB, free: 11.39 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.3943, allocations: 107.6 kB / 0.6174 GB, free: 11.28 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003135/0.3946, allocations: 215.1 kB / 0.6176 GB, free: 11.07 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008809/0.4034, allocations: 4.431 MB / 0.6219 GB, free: 6.629 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4034, allocations: 0 / 0.6219 GB, free: 6.629 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.4034, allocations: 7.922 kB / 0.6219 GB, free: 6.621 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.4034, allocations: 0 / 0.6219 GB, free: 6.621 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.003215/0.4067, allocations: 1.259 MB / 0.6232 GB, free: 5.309 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.4067, allocations: 8.031 kB / 0.6232 GB, free: 5.301 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/0.4085, allocations: 220.5 kB / 0.6234 GB, free: 5.086 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006026/0.4091, allocations: 387.4 kB / 0.6238 GB, free: 4.672 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.055e-05/0.4091, allocations: 25.03 kB / 0.6238 GB, free: 4.648 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.4092, allocations: 32.38 kB / 0.6238 GB, free: 4.617 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.4109, allocations: 0.5822 MB / 0.6244 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.4109, allocations: 0 / 0.6244 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.637e-05/0.4109, allocations: 16 kB / 0.6244 GB, free: 3.977 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.4109, allocations: 8 kB / 0.6244 GB, free: 3.969 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.4127, allocations: 0.525 MB / 0.6249 GB, free: 3.445 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.003432/0.4161, allocations: 2.621 MB / 0.6275 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.4178, allocations: 450.1 kB / 0.6279 GB, free: 140 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004923/0.4183, allocations: 176.7 kB / 0.6281 GB, free: 15.96 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05875/0.477, allocations: 26.87 MB / 0.6543 GB, free: 1.676 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.4771, allocations: 34.56 kB / 0.6543 GB, free: 1.633 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 1.884e-06/0.4771, allocations: 4 kB / 0.6543 GB, free: 1.629 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.00307/0.4801, allocations: 0.7858 MB / 0.6551 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.442e-05/0.4802, allocations: 114.8 kB / 0.6552 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003944/0.4806, allocations: 312.4 kB / 0.6555 GB, free: 396 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.952e-05/0.4807, allocations: 33.7 kB / 0.6556 GB, free: 356 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.4808, allocations: 204.6 kB / 0.6557 GB, free: 148 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.103e-05/0.4809, allocations: 91.14 kB / 0.6558 GB, free: 56 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.4811, allocations: 69.73 kB / 0.6559 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4812, allocations: 342.8 kB / 0.6562 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004365/0.4817, allocations: 143.9 kB / 0.6564 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005246/0.4822, allocations: 231.8 kB / 0.6566 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008916/0.4831, allocations: 357.9 kB / 0.6569 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4831, allocations: 7.938 kB / 0.6569 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001096/0.4842, allocations: 421 kB / 0.6573 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.4842, allocations: 8 kB / 0.6573 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.4842, allocations: 4 kB / 0.6573 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.4842, allocations: 7.938 kB / 0.6574 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.4846, allocations: 79.89 kB / 0.6574 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.4846, allocations: 12.23 kB / 0.6574 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.4849, allocations: 47.77 kB / 0.6575 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.4849, allocations: 15.98 kB / 0.6575 GB, free: 14.25 MB / 0.4981 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 (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.0002023/0.4851, allocations: 161.7 kB / 0.6577 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.885e-05/0.4852, allocations: 39.77 kB / 0.6577 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.4879, allocations: 1.885 MB / 0.6595 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.349e-05/0.4879, allocations: 39.83 kB / 0.6596 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.4879, allocations: 4 kB / 0.6596 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.488, allocations: 7.984 kB / 0.6596 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.4891, allocations: 1.012 MB / 0.6606 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4891, allocations: 0 / 0.6606 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.4894, allocations: 67.94 kB / 0.6606 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.4894, allocations: 0 / 0.6606 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.4895, allocations: 8 kB / 0.6606 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4895, allocations: 3.938 kB / 0.6607 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4895, allocations: 11.94 kB / 0.6607 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.4911, allocations: 1.085 MB / 0.6617 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.4913, allocations: 168.3 kB / 0.6619 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.4914, allocations: 23.78 kB / 0.6619 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.4916, allocations: 31.91 kB / 0.6619 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.934e-05/0.4917, allocations: 31.95 kB / 0.662 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.4918, allocations: 12 kB / 0.662 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003924/0.4922, allocations: 331 kB / 0.6623 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.4922, allocations: 0 / 0.6623 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002712/0.4949, allocations: 1.002 MB / 0.6633 GB, free: 8.234 MB / 0.4981 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,$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.004114/0.499, allocations: 1.185 MB / 0.6644 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001326/0.5003, allocations: 0.5787 MB / 0.665 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5003, allocations: 0.625 kB / 0.665 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000698/0.501, allocations: 410.2 kB / 0.6654 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.5023, allocations: 219.2 kB / 0.6656 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.5046, allocations: 1.537 MB / 0.6671 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006488/0.5053, allocations: 0.9638 MB / 0.668 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000463/0.5057, allocations: 266.8 kB / 0.6683 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.5058, allocations: 47.42 kB / 0.6683 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.5058, allocations: 0 / 0.6683 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of Templates: time 0.06061/0.5665, allocations: 39.86 MB / 0.7073 GB, free: 11.16 MB / 0.545 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.763920935802162]