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.001411/0.001411, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001531/0.001531, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.476/1.476, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 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.3392/0.3392, allocations: 34.27 MB / 295.3 MB, free: 0.6953 MB / 266.7 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 1.834e-06/1.834e-06, allocations: 0 / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.979e-05/3.162e-05, allocations: 10.31 kB / 377.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03737/0.0374, allocations: 25.76 MB / 403 MB, free: 9.125 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01896/0.05635, allocations: 11.76 MB / 414.8 MB, free: 13.32 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004038/0.05676, allocations: 19.81 kB / 414.8 MB, free: 13.3 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008094/0.05757, allocations: 226.4 kB / 415 MB, free: 13.07 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0121/0.06967, allocations: 3.705 MB / 418.8 MB, free: 9.355 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007211/0.07688, allocations: 2.386 MB / 421.1 MB, free: 6.961 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0015/0.07838, allocations: 0.9078 MB / 422 MB, free: 6.047 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004752/0.07885, allocations: 213.1 kB / 422.3 MB, free: 5.836 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001216/0.08007, allocations: 0.5567 MB / 422.8 MB, free: 5.277 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003996/0.08047, allocations: 235.3 kB / 423 MB, free: 5.047 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.413e-05/0.08054, allocations: 36 kB / 423.1 MB, free: 5.012 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01617/0.09672, allocations: 6.906 MB / 430 MB, free: 14.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002261/0.09694, allocations: 107.6 kB / 430.1 MB, free: 13.99 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003469/0.09729, allocations: 155.7 kB / 430.2 MB, free: 13.84 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.1108, allocations: 5.558 MB / 435.8 MB, free: 8.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1108, allocations: 0 / 435.8 MB, free: 8.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1108, allocations: 0 / 435.8 MB, free: 8.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.1108, allocations: 0 / 435.8 MB, free: 8.27 MB / 410.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.003836/0.1146, allocations: 1.176 MB / 437 MB, free: 7.059 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1147, allocations: 8.031 kB / 437 MB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002117/0.1168, allocations: 311.7 kB / 437.3 MB, free: 6.746 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007071/0.1175, allocations: 332.4 kB / 437.6 MB, free: 6.398 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.1175, allocations: 21.03 kB / 437.6 MB, free: 6.379 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.787e-05/0.1176, allocations: 36.38 kB / 437.7 MB, free: 6.344 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.1195, allocations: 0.7297 MB / 438.4 MB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.1195, allocations: 4.125 kB / 438.4 MB, free: 5.531 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.098e-05/0.1196, allocations: 15.94 kB / 438.4 MB, free: 5.516 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.1196, allocations: 8 kB / 438.4 MB, free: 5.508 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.1213, allocations: 0.5253 MB / 439 MB, free: 4.984 MB / 410.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.003231/0.1246, allocations: 1.856 MB / 440.8 MB, free: 3.059 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.1263, allocations: 442.1 kB / 441.2 MB, free: 2.617 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.1268, allocations: 176.7 kB / 441.4 MB, free: 2.441 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2036/0.3305, allocations: 13.2 MB / 454.6 MB, free: 102.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.3305, allocations: 33.69 kB / 454.6 MB, free: 102.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.3305, allocations: 0 / 454.6 MB, free: 102.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002725/0.3332, allocations: 0.8352 MB / 455.5 MB, free: 102.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.3333, allocations: 109.3 kB / 455.6 MB, free: 102.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.3336, allocations: 277.6 kB / 455.9 MB, free: 102.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.3336, allocations: 29.7 kB / 455.9 MB, free: 102.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.922e-05/0.3337, allocations: 210.6 kB / 456.1 MB, free: 102.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.3337, allocations: 93.89 kB / 456.2 MB, free: 102.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.3338, allocations: 70.53 kB / 456.3 MB, free: 102.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.56e-05/0.3339, allocations: 343.1 kB / 456.6 MB, free: 101.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.3343, allocations: 135.7 kB / 456.7 MB, free: 101.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/0.3347, allocations: 293.5 kB / 457 MB, free: 101.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007088/0.3354, allocations: 353.7 kB / 457.4 MB, free: 101.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3354, allocations: 3.469 kB / 457.4 MB, free: 101.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009088/0.3363, allocations: 435 kB / 457.8 MB, free: 101.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.3363, allocations: 6.656 kB / 457.8 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.3363, allocations: 3.438 kB / 457.8 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3364, allocations: 3.25 kB / 457.8 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.3367, allocations: 85.38 kB / 457.9 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3367, allocations: 6.656 kB / 457.9 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.3369, allocations: 44.16 kB / 457.9 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.337, allocations: 16.53 kB / 457.9 MB, free: 101.1 MB / 410.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.0001403/0.3371, allocations: 162.6 kB / 458.1 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.449e-05/0.3372, allocations: 42.42 kB / 458.1 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002048/0.3392, allocations: 1.982 MB / 460.1 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.273e-05/0.3393, allocations: 26.83 kB / 460.1 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.3393, allocations: 8.188 kB / 460.2 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3393, allocations: 3.375 kB / 460.2 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006868/0.34, allocations: 0.8741 MB / 461 MB, free: 99.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.34, allocations: 0 / 461 MB, free: 99.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.3403, allocations: 73.08 kB / 461.1 MB, free: 99.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3403, allocations: 0 / 461.1 MB, free: 99.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.3403, allocations: 7.312 kB / 461.1 MB, free: 99.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.3403, allocations: 0 / 461.1 MB, free: 99.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3403, allocations: 7.25 kB / 461.1 MB, free: 99.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.3416, allocations: 1.125 MB / 462.2 MB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.059e-05/0.3416, allocations: 87.55 kB / 462.3 MB, free: 99.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.567e-05/0.3417, allocations: 26.16 kB / 462.4 MB, free: 99.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/0.3419, allocations: 24.69 kB / 462.4 MB, free: 99.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.824e-05/0.342, allocations: 33.98 kB / 462.4 MB, free: 99.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.342, allocations: 20.81 kB / 462.4 MB, free: 99.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002559/0.3423, allocations: 298.1 kB / 462.7 MB, free: 98.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3423, allocations: 0 / 462.7 MB, free: 98.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002472/0.3448, allocations: 1.006 MB / 463.7 MB, free: 98.71 MB / 410.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.00405/0.3488, allocations: 1.317 MB / 465 MB, free: 98.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.35, allocations: 0.5938 MB / 465.6 MB, free: 98.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.35, allocations: 0 / 465.6 MB, free: 98.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005417/0.3505, allocations: 414.7 kB / 466 MB, free: 98.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.3516, allocations: 218.9 kB / 466.3 MB, free: 98.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.3534, allocations: 1.545 MB / 467.8 MB, free: 97.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.3536, allocations: 372.6 kB / 468.2 MB, free: 97.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004356/0.354, allocations: 273.6 kB / 468.4 MB, free: 97.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.3542, allocations: 45.5 kB / 468.5 MB, free: 97.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.3542, allocations: 0 / 468.5 MB, free: 97.07 MB / 410.7 MB Notification: Performance of Templates: time 0.04584/0.4, allocations: 39.39 MB / 0.496 GB, free: 69.78 MB / 410.7 MB " [Timeout remaining time 660] 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: 7.672924639075063]