Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0007906/0.0007906, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001183/0.001973, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007621/0.0007621, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001006/0.001768, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9838/0.9838, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1036/1.087, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2952/0.2952, allocations: 32.8 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0263/0.3215, allocations: 12.53 MB / 289.3 MB, free: 8.672 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.216e-06/3.216e-06, allocations: 1.281 kB / 290.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/2.085e-05, allocations: 2.969 kB / 290.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01787/0.01789, allocations: 14.9 MB / 305.5 MB, free: 9.363 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01006/0.02795, allocations: 11.92 MB / 317.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.02815, allocations: 15.88 kB / 317.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003364/0.02848, allocations: 142.9 kB / 317.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005972/0.03445, allocations: 3.334 MB / 320.9 MB, free: 9.887 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004314/0.03877, allocations: 1.95 MB / 322.9 MB, free: 7.93 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009776/0.03975, allocations: 0.9353 MB / 323.8 MB, free: 6.992 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003698/0.04012, allocations: 228.9 kB / 324 MB, free: 6.766 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007876/0.0409, allocations: 0.5696 MB / 324.6 MB, free: 6.195 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002532/0.04116, allocations: 223.3 kB / 324.8 MB, free: 5.977 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.347e-05/0.0412, allocations: 32 kB / 324.8 MB, free: 5.945 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009505/0.05071, allocations: 7.275 MB / 332.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.437e-05/0.0508, allocations: 75.73 kB / 332.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.05093, allocations: 131.8 kB / 332.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00579/0.05672, allocations: 4.008 MB / 336.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.005e-05/0.05674, allocations: 0 / 336.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.05674, allocations: 0 / 336.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.485e-05/0.05677, allocations: 4 kB / 336.3 MB, free: 10.44 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.002824/0.05959, allocations: 1.519 MB / 337.9 MB, free: 8.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.05963, allocations: 8.031 kB / 337.9 MB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009415/0.06057, allocations: 331.9 kB / 338.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.06092, allocations: 288.5 kB / 338.5 MB, free: 8.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.06095, allocations: 29.03 kB / 338.5 MB, free: 8.199 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.06099, allocations: 36.36 kB / 338.5 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007827/0.06177, allocations: 0.6715 MB / 339.2 MB, free: 7.414 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.06178, allocations: 4.188 kB / 339.2 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.06181, allocations: 15.94 kB / 339.2 MB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.06182, allocations: 8 kB / 339.2 MB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004977/0.06232, allocations: 323.6 kB / 339.6 MB, free: 7.066 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.001356/0.06367, allocations: 1.526 MB / 341.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/0.06431, allocations: 326.2 kB / 341.4 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.06441, allocations: 65.42 kB / 341.5 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1166/0.181, allocations: 72.57 MB / 414 MB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.1811, allocations: 38.5 kB / 414.1 MB, free: 12.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.866e-06/0.1811, allocations: 0 / 414.1 MB, free: 12.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001155/0.1822, allocations: 0.5298 MB / 414.6 MB, free: 11.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.1823, allocations: 55.41 kB / 414.6 MB, free: 11.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.1825, allocations: 258.9 kB / 414.9 MB, free: 11.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1825, allocations: 29.7 kB / 414.9 MB, free: 11.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.481e-05/0.1826, allocations: 188.9 kB / 415.1 MB, free: 11.31 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.707e-05/0.1826, allocations: 87.22 kB / 415.2 MB, free: 11.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.389e-05/0.1827, allocations: 65.64 kB / 415.3 MB, free: 11.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.989e-05/0.1828, allocations: 342.8 kB / 415.6 MB, free: 10.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.922e-05/0.1829, allocations: 51.95 kB / 415.6 MB, free: 10.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.183, allocations: 209.8 kB / 415.9 MB, free: 10.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.1832, allocations: 221.3 kB / 416.1 MB, free: 10.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1832, allocations: 0 / 416.1 MB, free: 10.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002245/0.1834, allocations: 221.2 kB / 416.3 MB, free: 10.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1834, allocations: 4 kB / 416.3 MB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1834, allocations: 4 kB / 416.3 MB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1834, allocations: 4 kB / 416.3 MB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.1836, allocations: 88.19 kB / 416.4 MB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.1836, allocations: 8 kB / 416.4 MB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.1838, allocations: 35.77 kB / 416.4 MB, free: 9.891 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.1838, allocations: 15.94 kB / 416.4 MB, free: 9.875 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 0.000104/0.1839, allocations: 132.6 kB / 416.6 MB, free: 9.734 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.1839, allocations: 31.91 kB / 416.6 MB, free: 9.703 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008219/0.1847, allocations: 1.106 MB / 417.7 MB, free: 8.582 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.1848, allocations: 27.95 kB / 417.7 MB, free: 8.555 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1848, allocations: 4 kB / 417.7 MB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1848, allocations: 3.984 kB / 417.7 MB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004491/0.1852, allocations: 0.5385 MB / 418.3 MB, free: 7.992 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.1852, allocations: 4 kB / 418.3 MB, free: 7.988 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.1854, allocations: 63.89 kB / 418.3 MB, free: 7.926 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.201e-05/0.1854, allocations: 83.22 kB / 418.4 MB, free: 7.844 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1854, allocations: 7.938 kB / 418.4 MB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.1854, allocations: 11.98 kB / 418.4 MB, free: 7.824 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.1854, allocations: 0 / 418.4 MB, free: 7.824 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1854, allocations: 4 kB / 418.5 MB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005213/0.1859, allocations: 0.6559 MB / 419.1 MB, free: 7.148 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.371e-05/0.186, allocations: 35.66 kB / 419.1 MB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.686e-05/0.1861, allocations: 19.98 kB / 419.2 MB, free: 7.094 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.1861, allocations: 27.94 kB / 419.2 MB, free: 7.066 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.1862, allocations: 8 kB / 419.2 MB, free: 7.059 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.1863, allocations: 160.7 kB / 419.4 MB, free: 6.898 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1863, allocations: 0 / 419.4 MB, free: 6.898 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001971/0.1882, allocations: 1.006 MB / 420.4 MB, free: 5.891 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.0025/0.1907, allocations: 1.374 MB / 421.7 MB, free: 4.504 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002949/0.191, allocations: 255.1 kB / 422 MB, free: 4.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/0.191, allocations: 8 kB / 422 MB, free: 4.242 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.1912, allocations: 197.7 kB / 422.2 MB, free: 4.051 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005441/0.1917, allocations: 261.7 kB / 422.4 MB, free: 3.805 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.1963, allocations: 1.339 MB / 423.8 MB, free: 2.426 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.1964, allocations: 185.5 kB / 424 MB, free: 2.227 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002602/0.1967, allocations: 264.6 kB / 424.2 MB, free: 1.969 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.197, allocations: 201.2 kB / 424.4 MB, free: 1.77 MB / 410.7 MB Notification: Performance of SimCode: time 1.764e-06/0.197, allocations: 0 / 424.4 MB, free: 1.77 MB / 410.7 MB Notification: Performance of Templates: time 0.1922/0.3891, allocations: 44.58 MB / 469 MB, free: 103.3 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.698846973478794]