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.001026/0.001026, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001437/0.002464, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009945/0.0009945, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001313/0.002308, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9004/0.9004, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09273/0.9931, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.2461/0.2461, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0229/0.269, allocations: 13.11 MB / 291.5 MB, free: 7.324 MB / 282.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.473e-06/1.473e-06, allocations: 0 / 292.8 MB, free: 6.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.507e-05/1.654e-05, allocations: 8.812 kB / 292.8 MB, free: 6.199 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01369/0.01371, allocations: 14.9 MB / 307.7 MB, free: 7.242 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009732/0.02344, allocations: 11.93 MB / 319.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001688/0.02361, allocations: 15.81 kB / 319.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005218/0.02413, allocations: 135 kB / 319.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005511/0.02964, allocations: 3.338 MB / 323.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003419/0.03306, allocations: 1.943 MB / 325.1 MB, free: 5.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007728/0.03383, allocations: 0.9392 MB / 326 MB, free: 4.875 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002931/0.03412, allocations: 232.8 kB / 326.3 MB, free: 4.645 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007285/0.03485, allocations: 0.5657 MB / 326.8 MB, free: 4.078 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006175/0.03547, allocations: 227.3 kB / 327 MB, free: 3.855 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.03551, allocations: 36 kB / 327.1 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008584/0.0441, allocations: 7.261 MB / 334.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.844e-05/0.04418, allocations: 83.72 kB / 334.4 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.04429, allocations: 131.8 kB / 334.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0044/0.04869, allocations: 3.984 MB / 338.5 MB, free: 8.348 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.0487, allocations: 0 / 338.5 MB, free: 8.348 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.0487, allocations: 4 kB / 338.5 MB, free: 8.344 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.04871, allocations: 0 / 338.5 MB, free: 8.344 MB / 330.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.001629/0.05034, allocations: 1.519 MB / 340.1 MB, free: 6.777 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.772e-05/0.05037, allocations: 8.031 kB / 340.1 MB, free: 6.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008729/0.05124, allocations: 331.9 kB / 340.4 MB, free: 6.445 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.05152, allocations: 284.5 kB / 340.7 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.05155, allocations: 36.95 kB / 340.7 MB, free: 6.102 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.207e-05/0.05158, allocations: 32.31 kB / 340.7 MB, free: 6.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009832/0.05256, allocations: 0.6706 MB / 341.4 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.05257, allocations: 192 / 341.4 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.481e-05/0.0526, allocations: 19.94 kB / 341.4 MB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.0526, allocations: 4 kB / 341.4 MB, free: 5.297 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004646/0.05307, allocations: 325.7 kB / 341.8 MB, free: 4.977 MB / 330.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.001128/0.0542, allocations: 1.533 MB / 343.3 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007848/0.05498, allocations: 342.4 kB / 343.6 MB, free: 3.047 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.983e-05/0.05505, allocations: 61.47 kB / 343.7 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1169/0.172, allocations: 72.56 MB / 416.2 MB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.172, allocations: 38.55 kB / 416.3 MB, free: 10.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.734e-06/0.172, allocations: 0 / 416.3 MB, free: 10.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001052/0.1731, allocations: 0.5258 MB / 416.8 MB, free: 9.762 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.1731, allocations: 55.41 kB / 416.9 MB, free: 9.695 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.1733, allocations: 258.9 kB / 417.1 MB, free: 9.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.1733, allocations: 33.7 kB / 417.1 MB, free: 9.391 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.1734, allocations: 180.9 kB / 417.3 MB, free: 9.211 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.1734, allocations: 91.2 kB / 417.4 MB, free: 9.121 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.696e-05/0.1735, allocations: 61.66 kB / 417.5 MB, free: 9.055 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.807e-05/0.1736, allocations: 346.7 kB / 417.8 MB, free: 8.707 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.967e-05/0.1736, allocations: 55.95 kB / 417.9 MB, free: 8.652 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.1737, allocations: 206.5 kB / 418.1 MB, free: 8.398 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.1739, allocations: 220.4 kB / 418.3 MB, free: 8.152 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1739, allocations: 8 kB / 418.3 MB, free: 8.145 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000211/0.1741, allocations: 213.2 kB / 418.5 MB, free: 7.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1741, allocations: 8 kB / 418.5 MB, free: 7.922 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1742, allocations: 4 kB / 418.5 MB, free: 7.918 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1742, allocations: 4 kB / 418.5 MB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.1743, allocations: 84.2 kB / 418.6 MB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1743, allocations: 11.92 kB / 418.6 MB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.1745, allocations: 35.78 kB / 418.6 MB, free: 7.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.1745, allocations: 15.98 kB / 418.7 MB, free: 7.77 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_a.phase,V1.state_b.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.234e-05/0.1746, allocations: 124.6 kB / 418.8 MB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.1746, allocations: 35.91 kB / 418.8 MB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007916/0.1754, allocations: 1.102 MB / 419.9 MB, free: 6.484 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.049e-05/0.1754, allocations: 31.95 kB / 419.9 MB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1754, allocations: 0 / 419.9 MB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1754, allocations: 0 / 419.9 MB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004802/0.1759, allocations: 0.554 MB / 420.5 MB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1759, allocations: 0 / 420.5 MB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.176, allocations: 59.95 kB / 420.6 MB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.753e-05/0.1761, allocations: 83.22 kB / 420.6 MB, free: 5.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1761, allocations: 7.938 kB / 420.7 MB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.1761, allocations: 8 kB / 420.7 MB, free: 5.723 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1761, allocations: 4 kB / 420.7 MB, free: 5.719 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1761, allocations: 7.938 kB / 420.7 MB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007845/0.1769, allocations: 0.6559 MB / 421.3 MB, free: 5.039 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/0.1769, allocations: 31.7 kB / 421.4 MB, free: 5.008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.177, allocations: 16 kB / 421.4 MB, free: 4.992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.945e-05/0.1771, allocations: 31.94 kB / 421.4 MB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.1771, allocations: 15.98 kB / 421.4 MB, free: 4.945 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.1772, allocations: 152.7 kB / 421.6 MB, free: 4.793 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1772, allocations: 0 / 421.6 MB, free: 4.793 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002113/0.1793, allocations: 1.01 MB / 422.6 MB, free: 3.781 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.002756/0.1821, allocations: 1.37 MB / 423.9 MB, free: 2.398 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002662/0.1824, allocations: 253.7 kB / 424.2 MB, free: 2.145 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.1824, allocations: 7.984 kB / 424.2 MB, free: 2.137 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.1825, allocations: 228 kB / 424.4 MB, free: 1.914 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007781/0.1833, allocations: 1.085 MB / 425.5 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.1878, allocations: 1.343 MB / 426.9 MB, free: 15.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.1879, allocations: 185.5 kB / 427 MB, free: 15.07 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000238/0.1882, allocations: 261 kB / 427.3 MB, free: 14.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/0.1885, allocations: 209.2 kB / 427.5 MB, free: 14.62 MB / 426.7 MB Notification: Performance of SimCode: time 6.02e-07/0.1885, allocations: 0 / 427.5 MB, free: 14.62 MB / 426.7 MB Notification: Performance of Templates: time 0.1532/0.3417, allocations: 39.29 MB / 466.8 MB, free: 102.8 MB / 426.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.806577823124826]