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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007216/0.0007216, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001253/0.001974, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000685/0.000685, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009871/0.001672, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9063/0.9063, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1603/1.067, allocations: 52.49 MB / 238.5 MB, free: 7.625 MB / 234.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.1349/0.1349, allocations: 32.8 MB / 272 MB, free: 6.301 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0215/0.1564, allocations: 12.54 MB / 284.5 MB, free: 9.719 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 2.064e-06/2.064e-06, allocations: 0 / 285.8 MB, free: 8.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.348e-05, allocations: 6.312 kB / 285.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01479/0.01482, allocations: 14.8 MB / 300.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.02529, allocations: 11.9 MB / 312.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002783/0.02557, allocations: 15.81 kB / 312.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000373/0.02594, allocations: 146.9 kB / 312.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006736/0.03267, allocations: 3.33 MB / 316 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004129/0.0368, allocations: 1.937 MB / 318 MB, free: 8.16 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009566/0.03776, allocations: 0.9353 MB / 318.9 MB, free: 7.223 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003398/0.0381, allocations: 232.8 kB / 319.1 MB, free: 6.988 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000681/0.03878, allocations: 0.5773 MB / 319.7 MB, free: 6.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.03902, allocations: 223.4 kB / 319.9 MB, free: 6.191 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.03907, allocations: 32 kB / 320 MB, free: 6.16 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1616/0.2007, allocations: 7.254 MB / 327.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.2009, allocations: 86.95 kB / 327.3 MB, free: 9.164 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002795/0.2012, allocations: 130.3 kB / 327.4 MB, free: 9.164 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.2131, allocations: 3.98 MB / 331.4 MB, free: 9.148 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.817e-05/0.2131, allocations: 1.188 kB / 331.4 MB, free: 9.148 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2131, allocations: 3.5 kB / 331.4 MB, free: 9.148 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.2131, allocations: 0 / 331.4 MB, free: 9.148 MB / 314.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.004665/0.2178, allocations: 1.509 MB / 332.9 MB, free: 8.465 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.2178, allocations: 11.27 kB / 332.9 MB, free: 8.465 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/0.2189, allocations: 333.6 kB / 333.3 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.2194, allocations: 285.4 kB / 333.5 MB, free: 8.254 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.2194, allocations: 27.56 kB / 333.6 MB, free: 8.254 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.2195, allocations: 28.89 kB / 333.6 MB, free: 8.254 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009324/0.2204, allocations: 0.6683 MB / 334.3 MB, free: 7.922 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.2204, allocations: 3.75 kB / 334.3 MB, free: 7.922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.2204, allocations: 20.44 kB / 334.3 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.2204, allocations: 8.219 kB / 334.3 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006005/0.221, allocations: 322.3 kB / 334.6 MB, free: 7.902 MB / 314.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.00139/0.2224, allocations: 1.528 MB / 336.1 MB, free: 6.871 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00076/0.2232, allocations: 333.9 kB / 336.5 MB, free: 6.848 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.661e-05/0.2233, allocations: 61.77 kB / 336.5 MB, free: 6.836 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1366/0.3599, allocations: 72.49 MB / 409 MB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.3599, allocations: 42.31 kB / 409.1 MB, free: 9.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 3.567e-06/0.3599, allocations: 1.219 kB / 409.1 MB, free: 9.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001281/0.3612, allocations: 0.5261 MB / 409.6 MB, free: 8.789 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.3612, allocations: 55.41 kB / 409.6 MB, free: 8.723 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.3614, allocations: 264.9 kB / 409.9 MB, free: 8.496 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.3615, allocations: 29.7 kB / 409.9 MB, free: 8.461 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.618e-05/0.3616, allocations: 185.6 kB / 410.1 MB, free: 8.297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.3616, allocations: 86.31 kB / 410.2 MB, free: 8.227 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.948e-05/0.3617, allocations: 65.3 kB / 410.3 MB, free: 8.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.859e-05/0.3618, allocations: 344.9 kB / 410.6 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.754e-05/0.3619, allocations: 51.14 kB / 410.6 MB, free: 7.801 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.362, allocations: 199.9 kB / 410.8 MB, free: 7.566 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001887/0.3622, allocations: 217.1 kB / 411.1 MB, free: 7.344 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.3622, allocations: 4 kB / 411.1 MB, free: 7.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002439/0.3625, allocations: 217.9 kB / 411.3 MB, free: 7.148 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3625, allocations: 8 kB / 411.3 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3625, allocations: 5.562 kB / 411.3 MB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3625, allocations: 4.875 kB / 411.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.3627, allocations: 90.84 kB / 411.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.3627, allocations: 4 kB / 411.4 MB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.3628, allocations: 39.52 kB / 411.4 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.3629, allocations: 11.5 kB / 411.4 MB, free: 7.012 MB / 378.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.0001165/0.363, allocations: 126.9 kB / 411.6 MB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.363, allocations: 35.41 kB / 411.6 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009388/0.364, allocations: 1.115 MB / 412.7 MB, free: 5.844 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/0.364, allocations: 31.92 kB / 412.7 MB, free: 5.824 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.364, allocations: 0 / 412.7 MB, free: 5.824 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.364, allocations: 7.5 kB / 412.7 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005684/0.3646, allocations: 0.5466 MB / 413.3 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.3646, allocations: 0 / 413.3 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.3647, allocations: 63 kB / 413.4 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.063e-05/0.3648, allocations: 83.22 kB / 413.4 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.3648, allocations: 7.938 kB / 413.4 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.3648, allocations: 7.484 kB / 413.4 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3648, allocations: 4 kB / 413.5 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3648, allocations: 1.969 kB / 413.5 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.3653, allocations: 0.6591 MB / 414.1 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.3654, allocations: 23.41 kB / 414.1 MB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3655, allocations: 20.48 kB / 414.2 MB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.916e-05/0.3655, allocations: 38.88 kB / 414.2 MB, free: 4.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.3656, allocations: 7.688 kB / 414.2 MB, free: 4.566 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001238/0.3657, allocations: 157.8 kB / 414.4 MB, free: 4.434 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3657, allocations: 0 / 414.4 MB, free: 4.434 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004493/0.3702, allocations: 0.9947 MB / 415.4 MB, free: 3.477 MB / 378.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.005979/0.3762, allocations: 1.395 MB / 416.7 MB, free: 2.242 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005138/0.3767, allocations: 258.7 kB / 417 MB, free: 2.012 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.96e-05/0.3767, allocations: 4.281 kB / 417 MB, free: 2.008 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.3769, allocations: 235.7 kB / 417.2 MB, free: 1.797 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.3779, allocations: 1.081 MB / 418.3 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004844/0.3828, allocations: 1.352 MB / 419.7 MB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.3829, allocations: 181.5 kB / 419.8 MB, free: 15.15 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003411/0.3832, allocations: 274.1 kB / 420.1 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.3836, allocations: 199.7 kB / 420.3 MB, free: 14.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/0.3836, allocations: 0 / 420.3 MB, free: 14.7 MB / 394.7 MB Notification: Performance of Templates: time 0.04309/0.4267, allocations: 39.21 MB / 459.5 MB, free: 7.977 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.991435505449772]