Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001355/0.001355, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001466/0.001466, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2348/0.2348, allocations: 46.97 MB / 360.9 MB, free: 4.031 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 67.89 kB / 0.4966 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.359, allocations: 66.03 MB / 0.5611 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0363/0.3953, allocations: 25.91 MB / 0.5864 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01834/0.4137, allocations: 11.76 MB / 0.5979 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003602/0.414, allocations: 15.88 kB / 0.5979 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008572/0.4149, allocations: 226.4 kB / 0.5981 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01064/0.4255, allocations: 3.646 MB / 0.6017 GB, free: 10.47 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00719/0.4327, allocations: 2.352 MB / 0.604 GB, free: 8.121 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.4343, allocations: 0.9042 MB / 0.6048 GB, free: 7.215 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004603/0.4348, allocations: 212.9 kB / 0.605 GB, free: 7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.4358, allocations: 438.2 kB / 0.6055 GB, free: 6.57 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004447/0.4362, allocations: 270.8 kB / 0.6057 GB, free: 6.305 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.4363, allocations: 35.94 kB / 0.6057 GB, free: 6.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01499/0.4513, allocations: 6.899 MB / 0.6125 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002399/0.4515, allocations: 103.6 kB / 0.6126 GB, free: 15.26 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003473/0.4519, allocations: 183.2 kB / 0.6128 GB, free: 15.08 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.011/0.4629, allocations: 4.431 MB / 0.6171 GB, free: 10.64 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4629, allocations: 0 / 0.6171 GB, free: 10.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4629, allocations: 0 / 0.6171 GB, free: 10.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.4629, allocations: 0 / 0.6171 GB, free: 10.64 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.003517/0.4664, allocations: 1.176 MB / 0.6182 GB, free: 9.426 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.4665, allocations: 8.031 kB / 0.6182 GB, free: 9.418 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001751/0.4682, allocations: 224.5 kB / 0.6185 GB, free: 9.199 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006989/0.4689, allocations: 317.1 kB / 0.6188 GB, free: 8.859 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.295e-05/0.469, allocations: 33.03 kB / 0.6188 GB, free: 8.828 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.195e-05/0.469, allocations: 24.38 kB / 0.6188 GB, free: 8.805 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.4707, allocations: 0.733 MB / 0.6195 GB, free: 7.996 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.4707, allocations: 7.938 kB / 0.6195 GB, free: 7.988 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.241e-05/0.4708, allocations: 12 kB / 0.6195 GB, free: 7.977 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.4708, allocations: 8 kB / 0.6196 GB, free: 7.969 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.4724, allocations: 0.5215 MB / 0.6201 GB, free: 7.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.003024/0.4754, allocations: 1.856 MB / 0.6219 GB, free: 5.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.477, allocations: 442.2 kB / 0.6223 GB, free: 5.078 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.4774, allocations: 176.7 kB / 0.6225 GB, free: 4.902 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04918/0.5266, allocations: 13.2 MB / 0.6354 GB, free: 7.68 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001356/0.5267, allocations: 42.5 kB / 0.6354 GB, free: 7.629 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.334e-06/0.5267, allocations: 0 / 0.6354 GB, free: 7.629 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002979/0.5297, allocations: 0.782 MB / 0.6362 GB, free: 6.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.66e-05/0.5298, allocations: 110.8 kB / 0.6363 GB, free: 6.707 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.5302, allocations: 272.2 kB / 0.6365 GB, free: 6.434 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.5302, allocations: 33.7 kB / 0.6366 GB, free: 6.395 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.5305, allocations: 220.3 kB / 0.6368 GB, free: 6.176 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.826e-05/0.5305, allocations: 83.23 kB / 0.6369 GB, free: 6.094 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.5307, allocations: 69.69 kB / 0.6369 GB, free: 6.02 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002266/0.531, allocations: 342.8 kB / 0.6372 GB, free: 5.676 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/0.5314, allocations: 139.9 kB / 0.6374 GB, free: 5.539 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005338/0.5319, allocations: 291.2 kB / 0.6377 GB, free: 5.207 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008494/0.5328, allocations: 357.9 kB / 0.638 GB, free: 4.824 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.5328, allocations: 0 / 0.638 GB, free: 4.824 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00105/0.5338, allocations: 417.3 kB / 0.6384 GB, free: 4.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.5338, allocations: 12 kB / 0.6384 GB, free: 4.398 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.5338, allocations: 0 / 0.6384 GB, free: 4.398 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.5339, allocations: 7.984 kB / 0.6384 GB, free: 4.391 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.5342, allocations: 79.89 kB / 0.6385 GB, free: 4.312 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.5342, allocations: 7.938 kB / 0.6385 GB, free: 4.305 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.5345, allocations: 43.81 kB / 0.6385 GB, free: 4.262 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.5345, allocations: 16 kB / 0.6386 GB, free: 4.246 MB / 478.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.0002229/0.5348, allocations: 165.7 kB / 0.6387 GB, free: 4.074 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.12e-05/0.5348, allocations: 31.81 kB / 0.6387 GB, free: 4.043 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002916/0.5377, allocations: 1.979 MB / 0.6407 GB, free: 2.059 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-05/0.5378, allocations: 35.94 kB / 0.6407 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.5378, allocations: 3.938 kB / 0.6407 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.5378, allocations: 0 / 0.6407 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.5389, allocations: 0.8633 MB / 0.6416 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.5389, allocations: 0 / 0.6416 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.5393, allocations: 79.81 kB / 0.6416 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-06/0.5393, allocations: 4 kB / 0.6416 GB, free: 1.039 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.5393, allocations: 4 kB / 0.6416 GB, free: 1.035 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.5393, allocations: 4 kB / 0.6416 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5393, allocations: 0 / 0.6416 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.541, allocations: 1.12 MB / 0.6427 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.5411, allocations: 83.16 kB / 0.6428 GB, free: 15.81 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.938e-05/0.5412, allocations: 23.84 kB / 0.6428 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.5415, allocations: 27.97 kB / 0.6429 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.5416, allocations: 35.88 kB / 0.6429 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/0.5416, allocations: 11.94 kB / 0.6429 GB, free: 15.71 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000384/0.542, allocations: 303.1 kB / 0.6432 GB, free: 15.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.542, allocations: 0 / 0.6432 GB, free: 15.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002976/0.545, allocations: 1.014 MB / 0.6442 GB, free: 14.4 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.004377/0.5493, allocations: 1.173 MB / 0.6453 GB, free: 13.22 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.5508, allocations: 0.5943 MB / 0.6459 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5508, allocations: 0 / 0.6459 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007026/0.5515, allocations: 417.6 kB / 0.6463 GB, free: 12.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.5526, allocations: 194.7 kB / 0.6465 GB, free: 12.04 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.555, allocations: 1.539 MB / 0.648 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.5554, allocations: 378.1 kB / 0.6484 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004631/0.5559, allocations: 266.8 kB / 0.6486 GB, free: 9.805 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.556, allocations: 43.42 kB / 0.6487 GB, free: 9.762 MB / 494.1 MB Notification: Performance of SimCode: time 7.02e-07/0.556, allocations: 0 / 0.6487 GB, free: 9.762 MB / 494.1 MB Notification: Performance of Templates: time 0.06441/0.6204, allocations: 40.02 MB / 0.6877 GB, free: 1.922 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 8.044840309768915]