Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0009457/0.0009457, allocations: 88.2 kB / 20.94 MB, free: 3.605 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.001065/0.001065, allocations: 169 kB / 24.25 MB, free: 308 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.916/0.916, allocations: 158.6 MB / 186 MB, free: 2.496 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1374/0.1374, allocations: 32.37 MB / 270.7 MB, free: 14.75 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 3.938 kB / 347.7 MB, free: 9.777 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.407e-05/1.55e-05, allocations: 10.25 kB / 347.7 MB, free: 9.766 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0208/0.02082, allocations: 28.67 MB / 376.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.03249, allocations: 13.08 MB / 389.4 MB, free: 15.87 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002771/0.03277, allocations: 15.88 kB / 389.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007423/0.03351, allocations: 234.4 kB / 389.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007299/0.04081, allocations: 3.681 MB / 393.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00513/0.04594, allocations: 2.378 MB / 395.7 MB, free: 9.539 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009074/0.04685, allocations: 0.9078 MB / 396.6 MB, free: 8.629 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003576/0.0472, allocations: 229 kB / 396.9 MB, free: 8.402 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007367/0.04794, allocations: 0.5335 MB / 397.4 MB, free: 7.867 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002747/0.04822, allocations: 235.3 kB / 397.6 MB, free: 7.637 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.598e-05/0.04826, allocations: 32 kB / 397.7 MB, free: 7.605 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008977/0.05724, allocations: 6.91 MB / 404.6 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.05735, allocations: 99.66 kB / 404.7 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.05751, allocations: 159.7 kB / 404.8 MB, free: 444 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006873/0.06438, allocations: 5.363 MB / 410.2 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.06439, allocations: 0 / 410.2 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.06439, allocations: 0 / 410.2 MB, free: 11.06 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.0644, allocations: 0 / 410.2 MB, free: 11.06 MB / 346.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.002498/0.06689, allocations: 1.268 MB / 411.5 MB, free: 9.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.06694, allocations: 16.03 kB / 411.5 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.06812, allocations: 295.8 kB / 411.8 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.06855, allocations: 323.3 kB / 412.1 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.06858, allocations: 25.03 kB / 412.1 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/0.06862, allocations: 36.36 kB / 412.1 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009697/0.06959, allocations: 0.7138 MB / 412.8 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.0696, allocations: 192 / 412.8 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.06963, allocations: 15.94 kB / 412.9 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.06965, allocations: 8 kB / 412.9 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006897/0.07034, allocations: 371.4 kB / 413.2 MB, free: 7.848 MB / 346.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.001808/0.07214, allocations: 2.265 MB / 415.5 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008025/0.07295, allocations: 362.7 kB / 415.8 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.07306, allocations: 83.58 kB / 415.9 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02199/0.09506, allocations: 12.73 MB / 428.7 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.0951, allocations: 49.31 kB / 428.7 MB, free: 8.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 2.354e-06/0.0951, allocations: 0 / 428.7 MB, free: 8.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.001444/0.09654, allocations: 0.5962 MB / 429.3 MB, free: 7.629 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.0966, allocations: 106.8 kB / 429.4 MB, free: 7.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002493/0.09685, allocations: 318.3 kB / 429.7 MB, free: 7.168 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.09688, allocations: 33.7 kB / 429.8 MB, free: 7.129 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.09701, allocations: 255.1 kB / 430 MB, free: 6.875 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.522e-05/0.09707, allocations: 91.22 kB / 430.1 MB, free: 6.785 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.493e-05/0.09715, allocations: 79.28 kB / 430.2 MB, free: 6.699 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.0973, allocations: 0.5156 MB / 430.7 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.09741, allocations: 67.88 kB / 430.8 MB, free: 6.105 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.09759, allocations: 253.7 kB / 431 MB, free: 5.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.09784, allocations: 261.1 kB / 431.3 MB, free: 5.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.09784, allocations: 3.938 kB / 431.3 MB, free: 5.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003633/0.09821, allocations: 305 kB / 431.6 MB, free: 5.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.09823, allocations: 8 kB / 431.6 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.09823, allocations: 0 / 431.6 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.09825, allocations: 4 kB / 431.6 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.09842, allocations: 75.89 kB / 431.6 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.09843, allocations: 4.312 kB / 431.7 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.09855, allocations: 39.83 kB / 431.7 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.09857, allocations: 15.94 kB / 431.7 MB, free: 5.039 MB / 362.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.0001178/0.09869, allocations: 184.4 kB / 431.9 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.51e-05/0.09874, allocations: 39.81 kB / 431.9 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.09987, allocations: 1.232 MB / 433.2 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.05e-05/0.09989, allocations: 27.95 kB / 433.2 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.0999, allocations: 0 / 433.2 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.0999, allocations: 4 kB / 433.2 MB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005171/0.1004, allocations: 0.6604 MB / 433.8 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1004, allocations: 0 / 433.8 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.1006, allocations: 63.89 kB / 433.9 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.1006, allocations: 0 / 433.9 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.1006, allocations: 8 kB / 433.9 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.1006, allocations: 4 kB / 433.9 MB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1006, allocations: 0 / 433.9 MB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006596/0.1012, allocations: 0.8226 MB / 434.7 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.1013, allocations: 91.14 kB / 434.8 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.365e-05/0.1013, allocations: 23.84 kB / 434.9 MB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.1014, allocations: 20 kB / 434.9 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.632e-05/0.1015, allocations: 39.86 kB / 434.9 MB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.1015, allocations: 12 kB / 434.9 MB, free: 1.738 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001997/0.1017, allocations: 303 kB / 435.2 MB, free: 1.441 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1017, allocations: 4 kB / 435.2 MB, free: 1.438 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0021/0.1038, allocations: 1.006 MB / 436.2 MB, free: 440 kB / 362.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.1446/0.2484, allocations: 1.304 MB / 437.5 MB, free: 73.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006044/0.249, allocations: 315.1 kB / 437.8 MB, free: 73.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.249, allocations: 0 / 437.8 MB, free: 73.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002259/0.2493, allocations: 263.1 kB / 438.1 MB, free: 73.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.2499, allocations: 219.7 kB / 438.3 MB, free: 73.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.2514, allocations: 1.342 MB / 439.7 MB, free: 72.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.504e-05/0.2515, allocations: 180.2 kB / 439.8 MB, free: 72.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000285/0.2518, allocations: 261.3 kB / 440.1 MB, free: 72.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.27e-05/0.2519, allocations: 40.34 kB / 440.1 MB, free: 72.81 MB / 362.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2519, allocations: 1.781 kB / 440.1 MB, free: 72.81 MB / 362.7 MB Notification: Performance of Templates: time 0.03361/0.2855, allocations: 39.99 MB / 480.1 MB, free: 44.34 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.817610064987093]