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.0008365/0.0008365, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003474/0.003474, allocations: 160.7 kB / 24.7 MB, free: 9.418 MB / 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.8819/0.8819, allocations: 177.1 MB / 205 MB, free: 5.719 MB / 186.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.2579/0.2579, allocations: 32.8 MB / 294.2 MB, free: 1.207 MB / 266.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.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..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.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..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 1.323e-06/1.323e-06, allocations: 0 / 440.8 MB, free: 3.738 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.591e-05/2.723e-05, allocations: 2.281 kB / 440.8 MB, free: 3.734 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2003/0.2003, allocations: 25.76 MB / 466.6 MB, free: 31.4 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008779/0.2091, allocations: 11.78 MB / 478.4 MB, free: 23.71 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002223/0.2093, allocations: 14.75 kB / 478.4 MB, free: 23.7 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005699/0.2099, allocations: 234.3 kB / 478.6 MB, free: 23.57 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00689/0.2168, allocations: 3.693 MB / 482.3 MB, free: 22.09 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004995/0.2217, allocations: 2.384 MB / 484.7 MB, free: 20.91 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007654/0.2225, allocations: 0.9074 MB / 485.6 MB, free: 20.46 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/0.2228, allocations: 216.8 kB / 485.8 MB, free: 20.36 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006036/0.2234, allocations: 0.5426 MB / 486.4 MB, free: 20.13 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.2236, allocations: 236.2 kB / 486.6 MB, free: 20.05 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.2237, allocations: 33.72 kB / 486.6 MB, free: 20.05 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01061/0.2343, allocations: 6.913 MB / 493.5 MB, free: 18.45 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.2344, allocations: 105.8 kB / 493.6 MB, free: 18.39 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.2346, allocations: 157.8 kB / 493.8 MB, free: 18.33 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.2451, allocations: 5.541 MB / 499.3 MB, free: 16.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2451, allocations: 0 / 499.3 MB, free: 16.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2451, allocations: 0 / 499.3 MB, free: 16.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.2451, allocations: 5.094 kB / 499.3 MB, free: 16.58 MB / 410.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.003333/0.2484, allocations: 1.189 MB / 0.4888 GB, free: 15.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.2485, allocations: 9.719 kB / 0.4888 GB, free: 15.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009226/0.2494, allocations: 207.9 kB / 0.489 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.2499, allocations: 318.1 kB / 0.4893 GB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.2499, allocations: 26.84 kB / 0.4893 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.25, allocations: 27.38 kB / 0.4894 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009618/0.2509, allocations: 0.7344 MB / 0.4901 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.251, allocations: 192 / 0.4901 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.251, allocations: 23.34 kB / 0.4901 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.251, allocations: 11.03 kB / 0.4901 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009016/0.2519, allocations: 0.5223 MB / 0.4906 GB, free: 14.96 MB / 410.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.001651/0.2536, allocations: 1.843 MB / 0.4924 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008389/0.2544, allocations: 442.1 kB / 0.4928 GB, free: 13.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.2546, allocations: 183.3 kB / 0.493 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02339/0.278, allocations: 13.19 MB / 0.5059 GB, free: 7.383 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.278, allocations: 38.56 kB / 0.5059 GB, free: 7.336 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/0.278, allocations: 0 / 0.5059 GB, free: 7.336 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001491/0.2795, allocations: 0.7832 MB / 0.5067 GB, free: 6.547 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.2796, allocations: 110.8 kB / 0.5068 GB, free: 6.414 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.2798, allocations: 276.1 kB / 0.5071 GB, free: 6.137 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.2798, allocations: 33.7 kB / 0.5071 GB, free: 6.098 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.454e-05/0.2798, allocations: 216.3 kB / 0.5073 GB, free: 5.883 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.2799, allocations: 91.25 kB / 0.5074 GB, free: 5.793 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/0.28, allocations: 69.64 kB / 0.5075 GB, free: 5.719 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.324e-05/0.28, allocations: 342.8 kB / 0.5078 GB, free: 5.375 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.2802, allocations: 138.3 kB / 0.5079 GB, free: 5.242 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.2804, allocations: 287.8 kB / 0.5082 GB, free: 4.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.2808, allocations: 365.2 kB / 0.5085 GB, free: 4.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2808, allocations: 0 / 0.5085 GB, free: 4.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004741/0.2812, allocations: 421 kB / 0.5089 GB, free: 4.102 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2812, allocations: 11.98 kB / 0.509 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2813, allocations: 4.312 kB / 0.509 GB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.2813, allocations: 8 kB / 0.509 GB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.2814, allocations: 75.89 kB / 0.509 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.2814, allocations: 5.953 kB / 0.509 GB, free: 4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.2816, allocations: 39.81 kB / 0.5091 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.2816, allocations: 23.92 kB / 0.5091 GB, free: 3.938 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 0.0001066/0.2817, allocations: 159.4 kB / 0.5093 GB, free: 3.773 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.2818, allocations: 33.41 kB / 0.5093 GB, free: 3.742 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.2829, allocations: 1.984 MB / 0.5112 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/0.2829, allocations: 35.88 kB / 0.5113 GB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2829, allocations: 0 / 0.5113 GB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2829, allocations: 0 / 0.5113 GB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004276/0.2834, allocations: 0.8719 MB / 0.5121 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2834, allocations: 0 / 0.5121 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.2835, allocations: 71.88 kB / 0.5122 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2835, allocations: 0 / 0.5122 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.2835, allocations: 11.94 kB / 0.5122 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2835, allocations: 4 kB / 0.5122 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2835, allocations: 3.125 kB / 0.5122 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.2843, allocations: 1.111 MB / 0.5133 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.2843, allocations: 87.16 kB / 0.5134 GB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.2844, allocations: 23.84 kB / 0.5134 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.2845, allocations: 27.97 kB / 0.5134 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.527e-05/0.2846, allocations: 31.94 kB / 0.5135 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.2846, allocations: 15.98 kB / 0.5135 GB, free: 15.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000468/0.285, allocations: 299.1 kB / 0.5138 GB, free: 15.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 6e-08/0.285, allocations: 0 / 0.5138 GB, free: 15.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004004/0.2891, allocations: 1.006 MB / 0.5147 GB, free: 14.11 MB / 426.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.003088/0.2921, allocations: 1.313 MB / 0.516 GB, free: 12.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006909/0.2928, allocations: 0.6026 MB / 0.5166 GB, free: 12.19 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2928, allocations: 0 / 0.5166 GB, free: 12.19 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.2932, allocations: 417.1 kB / 0.517 GB, free: 11.78 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006023/0.2938, allocations: 196.6 kB / 0.5172 GB, free: 11.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.2953, allocations: 1.563 MB / 0.5187 GB, free: 9.992 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.2955, allocations: 366.2 kB / 0.5191 GB, free: 9.609 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.755e-05/0.2956, allocations: 48.48 kB / 0.5191 GB, free: 9.562 MB / 426.7 MB Notification: Performance of SimCode: time 7.51e-07/0.2956, allocations: 0 / 0.5191 GB, free: 9.562 MB / 426.7 MB Notification: Performance of Templates: time 0.02858/0.3242, allocations: 24.27 MB / 0.5428 GB, free: 1.309 MB / 442.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.283925543539226]