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.0009315/0.0009315, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.0009778/0.0009778, allocations: 165 kB / 24.56 MB, free: 12 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 0.9439/0.9439, allocations: 177.1 MB / 205 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.2591/0.2591, allocations: 34.26 MB / 295.7 MB, free: 0.7539 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.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..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.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..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.804e-06/1.804e-06, allocations: 0 / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.644e-05/2.824e-05, allocations: 2.312 kB / 378 MB, free: 2.641 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01427/0.0143, allocations: 14.85 MB / 392.9 MB, free: 3.727 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.025, allocations: 11.86 MB / 404.7 MB, free: 7.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.02528, allocations: 11.88 kB / 404.8 MB, free: 7.809 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004683/0.02575, allocations: 143 kB / 404.9 MB, free: 7.668 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007335/0.03308, allocations: 3.701 MB / 408.6 MB, free: 3.953 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004042/0.03712, allocations: 2.081 MB / 410.7 MB, free: 1.867 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.03829, allocations: 0.9391 MB / 411.6 MB, free: 0.9219 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004229/0.03871, allocations: 221 kB / 411.8 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007825/0.03949, allocations: 0.5417 MB / 412.4 MB, free: 164 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003277/0.03982, allocations: 235.3 kB / 412.6 MB, free: 15.93 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 5.211e-05/0.03987, allocations: 36 kB / 412.6 MB, free: 15.89 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009718/0.04959, allocations: 6.766 MB / 419.4 MB, free: 9.121 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.04975, allocations: 103.6 kB / 419.5 MB, free: 9.02 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002442/0.04999, allocations: 163.6 kB / 419.7 MB, free: 8.859 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008871/0.05887, allocations: 5.235 MB / 424.9 MB, free: 3.613 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.05887, allocations: 4 kB / 424.9 MB, free: 3.609 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.05887, allocations: 0 / 424.9 MB, free: 3.609 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.05888, allocations: 3.938 kB / 424.9 MB, free: 3.605 MB / 394.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.002472/0.06136, allocations: 1.229 MB / 426.1 MB, free: 2.336 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.0614, allocations: 12.03 kB / 426.2 MB, free: 2.324 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/0.0625, allocations: 299.7 kB / 426.4 MB, free: 2.031 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.06298, allocations: 327.3 kB / 426.8 MB, free: 1.688 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.06301, allocations: 25.03 kB / 426.8 MB, free: 1.664 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.431e-05/0.06306, allocations: 32.38 kB / 426.8 MB, free: 1.633 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.06406, allocations: 0.7061 MB / 427.5 MB, free: 0.832 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.06408, allocations: 4.125 kB / 427.5 MB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.06411, allocations: 19.94 kB / 427.6 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.06413, allocations: 8 kB / 427.6 MB, free: 0.8008 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006829/0.06481, allocations: 363.4 kB / 427.9 MB, free: 456 kB / 394.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.002295/0.0671, allocations: 2.265 MB / 430.2 MB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008282/0.06793, allocations: 369.9 kB / 430.5 MB, free: 13.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.06805, allocations: 79.64 kB / 430.6 MB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02407/0.09212, allocations: 13.21 MB / 443.8 MB, free: 424 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.09216, allocations: 41.39 kB / 443.9 MB, free: 372 kB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.615e-06/0.09217, allocations: 0 / 443.9 MB, free: 372 kB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.146/0.2381, allocations: 0.5879 MB / 444.5 MB, free: 77.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.2382, allocations: 106.3 kB / 444.6 MB, free: 77.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.2384, allocations: 325 kB / 444.9 MB, free: 77.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.2384, allocations: 33.36 kB / 444.9 MB, free: 77.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.707e-05/0.2385, allocations: 256.7 kB / 445.2 MB, free: 77.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.2386, allocations: 89.02 kB / 445.3 MB, free: 77.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.996e-05/0.2386, allocations: 80.88 kB / 445.3 MB, free: 77.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.204e-05/0.2387, allocations: 0.513 MB / 445.8 MB, free: 76.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.2388, allocations: 67.42 kB / 445.9 MB, free: 76.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.239, allocations: 247.8 kB / 446.2 MB, free: 76.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.2392, allocations: 258.2 kB / 446.4 MB, free: 76.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2392, allocations: 0 / 446.4 MB, free: 76.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003568/0.2395, allocations: 303.5 kB / 446.7 MB, free: 76.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2395, allocations: 8.406 kB / 446.7 MB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2396, allocations: 3.188 kB / 446.7 MB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.2396, allocations: 2.969 kB / 446.7 MB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.2398, allocations: 77.8 kB / 446.8 MB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2398, allocations: 8.375 kB / 446.8 MB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.2399, allocations: 36.78 kB / 446.8 MB, free: 76.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.2399, allocations: 18.14 kB / 446.9 MB, free: 76.28 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 9.743e-05/0.24, allocations: 169.8 kB / 447 MB, free: 76.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.2401, allocations: 44.41 kB / 447.1 MB, free: 76.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009698/0.241, allocations: 1.232 MB / 448.3 MB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.2411, allocations: 33.75 kB / 448.3 MB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.2411, allocations: 1.469 kB / 448.3 MB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2411, allocations: 3.469 kB / 448.3 MB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.2415, allocations: 0.6605 MB / 449 MB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.2415, allocations: 0 / 449 MB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.2417, allocations: 65.22 kB / 449.1 MB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2417, allocations: 3.141 kB / 449.1 MB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.2417, allocations: 7.375 kB / 449.1 MB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2417, allocations: 3.719 kB / 449.1 MB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2417, allocations: 1.094 kB / 449.1 MB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005938/0.2423, allocations: 0.8238 MB / 449.9 MB, free: 75.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.154e-05/0.2423, allocations: 87.12 kB / 450 MB, free: 75.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.2424, allocations: 27.33 kB / 450 MB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.2425, allocations: 19.73 kB / 450 MB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.139e-05/0.2426, allocations: 38.89 kB / 450.1 MB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.2426, allocations: 15.41 kB / 450.1 MB, free: 75.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000171/0.2428, allocations: 298.2 kB / 450.4 MB, free: 75.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2428, allocations: 2.516 kB / 450.4 MB, free: 75.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001941/0.2447, allocations: 1.009 MB / 451.4 MB, free: 75.26 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.003228/0.2479, allocations: 1.288 MB / 452.7 MB, free: 75.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000499/0.2484, allocations: 311.1 kB / 453 MB, free: 75.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2484, allocations: 0.9688 kB / 453 MB, free: 75.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.2487, allocations: 261.4 kB / 453.2 MB, free: 75.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006551/0.2493, allocations: 214.2 kB / 453.4 MB, free: 75.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.2509, allocations: 1.335 MB / 454.8 MB, free: 74.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.251, allocations: 184.9 kB / 455 MB, free: 74.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003114/0.2513, allocations: 269 kB / 455.2 MB, free: 74.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.556e-05/0.2514, allocations: 43.5 kB / 455.3 MB, free: 74.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/0.2514, allocations: 4 kB / 455.3 MB, free: 74.43 MB / 410.7 MB Notification: Performance of Templates: time 0.04262/0.294, allocations: 39.76 MB / 495 MB, free: 65.77 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.769230119884014]