Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001802/0.001802, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.002135/0.002135, allocations: 160.9 kB / 24.27 MB, free: 168 kB / 18.57 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.47/1.47, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3462/0.3462, allocations: 34.25 MB / 295.2 MB, free: 0.6406 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 377.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.319e-05/3.543e-05, allocations: 2.312 kB / 377.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03559/0.03563, allocations: 25.76 MB / 403 MB, free: 9.055 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.0548, allocations: 11.78 MB / 414.7 MB, free: 13.23 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004455/0.05524, allocations: 19.75 kB / 414.8 MB, free: 13.21 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008818/0.05612, allocations: 230.4 kB / 415 MB, free: 12.99 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01068/0.06681, allocations: 3.705 MB / 418.7 MB, free: 9.27 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007201/0.07401, allocations: 2.382 MB / 421.1 MB, free: 6.879 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001636/0.07565, allocations: 0.9117 MB / 422 MB, free: 5.961 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004364/0.07608, allocations: 213 kB / 422.2 MB, free: 5.75 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.07711, allocations: 0.5529 MB / 422.7 MB, free: 5.195 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003818/0.07749, allocations: 239.3 kB / 423 MB, free: 4.961 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 6.727e-05/0.07755, allocations: 32 kB / 423 MB, free: 4.93 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0148/0.09236, allocations: 6.91 MB / 429.9 MB, free: 14.01 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.09257, allocations: 107.6 kB / 430 MB, free: 13.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003345/0.0929, allocations: 155.7 kB / 430.2 MB, free: 13.75 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.1058, allocations: 5.55 MB / 435.7 MB, free: 8.191 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1058, allocations: 0 / 435.7 MB, free: 8.191 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1058, allocations: 0 / 435.7 MB, free: 8.191 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1058, allocations: 0 / 435.7 MB, free: 8.191 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.003448/0.1093, allocations: 1.18 MB / 436.9 MB, free: 6.977 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1093, allocations: 8.031 kB / 436.9 MB, free: 6.969 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.1111, allocations: 315.7 kB / 437.2 MB, free: 6.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006728/0.1118, allocations: 324.5 kB / 437.5 MB, free: 6.316 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.1119, allocations: 29.03 kB / 437.6 MB, free: 6.289 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.214e-05/0.1119, allocations: 28.38 kB / 437.6 MB, free: 6.262 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.1137, allocations: 0.7336 MB / 438.3 MB, free: 5.449 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1137, allocations: 192 / 438.3 MB, free: 5.449 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.014e-05/0.1138, allocations: 15.94 kB / 438.3 MB, free: 5.434 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1138, allocations: 8 kB / 438.3 MB, free: 5.426 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.1155, allocations: 0.5292 MB / 438.9 MB, free: 4.898 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.003103/0.1186, allocations: 1.856 MB / 440.7 MB, free: 2.973 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.1203, allocations: 442.2 kB / 441.2 MB, free: 2.531 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004894/0.1208, allocations: 176.7 kB / 441.3 MB, free: 2.355 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2107/0.3315, allocations: 13.19 MB / 454.5 MB, free: 102.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.3315, allocations: 42.03 kB / 454.6 MB, free: 102.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.3315, allocations: 0 / 454.6 MB, free: 102.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002701/0.3342, allocations: 0.8349 MB / 455.4 MB, free: 102.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.3342, allocations: 113.3 kB / 455.5 MB, free: 102.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.3345, allocations: 273.4 kB / 455.8 MB, free: 102.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.3345, allocations: 29.7 kB / 455.8 MB, free: 102 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.837e-05/0.3346, allocations: 213.8 kB / 456 MB, free: 101.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.978e-05/0.3346, allocations: 87.72 kB / 456.1 MB, free: 101.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.3347, allocations: 74.12 kB / 456.2 MB, free: 101.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.944e-05/0.3348, allocations: 343.9 kB / 456.5 MB, free: 101.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003536/0.3351, allocations: 136.8 kB / 456.6 MB, free: 101.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.3356, allocations: 289.1 kB / 456.9 MB, free: 101.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007011/0.3363, allocations: 358.7 kB / 457.3 MB, free: 101.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3363, allocations: 0 / 457.3 MB, free: 101.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008909/0.3372, allocations: 434 kB / 457.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3372, allocations: 6.531 kB / 457.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3372, allocations: 0 / 457.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3372, allocations: 6.562 kB / 457.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003153/0.3375, allocations: 80.47 kB / 457.8 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.3375, allocations: 14.16 kB / 457.8 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.3378, allocations: 41.88 kB / 457.9 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.3378, allocations: 13.81 kB / 457.9 MB, free: 100.9 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.0001341/0.3379, allocations: 166.6 kB / 458 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/0.338, allocations: 43.42 kB / 458.1 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/0.34, allocations: 1.983 MB / 460.1 MB, free: 99.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/0.34, allocations: 30.64 kB / 460.1 MB, free: 99.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.34, allocations: 0 / 460.1 MB, free: 99.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.34, allocations: 10.28 kB / 460.1 MB, free: 99.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000661/0.3407, allocations: 0.8681 MB / 461 MB, free: 99.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3407, allocations: 0 / 461 MB, free: 99.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000284/0.341, allocations: 63.17 kB / 461 MB, free: 99.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.341, allocations: 2.812 kB / 461 MB, free: 99.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.341, allocations: 10.88 kB / 461 MB, free: 99.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.341, allocations: 3.938 kB / 461 MB, free: 99.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.341, allocations: 0 / 461 MB, free: 99.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.3423, allocations: 1.13 MB / 462.2 MB, free: 98.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.831e-05/0.3423, allocations: 86 kB / 462.3 MB, free: 98.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/0.3424, allocations: 31.44 kB / 462.3 MB, free: 98.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.3426, allocations: 23.22 kB / 462.3 MB, free: 98.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.973e-05/0.3427, allocations: 33.58 kB / 462.3 MB, free: 98.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.3428, allocations: 16.5 kB / 462.4 MB, free: 98.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002352/0.343, allocations: 297.8 kB / 462.6 MB, free: 98.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.343, allocations: 0 / 462.6 MB, free: 98.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002543/0.3455, allocations: 1.007 MB / 463.7 MB, free: 98.46 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.005035/0.3506, allocations: 1.315 MB / 465 MB, free: 98.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3518, allocations: 0.5948 MB / 465.6 MB, free: 97.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3518, allocations: 3.938 kB / 465.6 MB, free: 97.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005572/0.3523, allocations: 417.4 kB / 466 MB, free: 97.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.3534, allocations: 216.7 kB / 466.2 MB, free: 97.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.3553, allocations: 1.54 MB / 467.7 MB, free: 96.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.3555, allocations: 378.7 kB / 468.1 MB, free: 96.85 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004429/0.356, allocations: 265.9 kB / 468.4 MB, free: 96.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.3561, allocations: 47.91 kB / 468.4 MB, free: 96.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/0.3561, allocations: 0 / 468.4 MB, free: 96.82 MB / 410.7 MB Notification: Performance of Templates: time 0.04676/0.4029, allocations: 39.38 MB / 0.4959 GB, free: 69.58 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.909155522007495]