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.0009448/0.0009448, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.00089/0.00089, allocations: 161.4 kB / 24.56 MB, free: 16 kB / 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.8933/0.8933, allocations: 177.1 MB / 205 MB, free: 5.602 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.2183/0.2183, allocations: 32.8 MB / 294.3 MB, free: 1.27 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.[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 1.633e-06/1.633e-06, allocations: 0 / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.713e-05/1.877e-05, allocations: 2.312 kB / 376 MB, free: 4.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01566/0.01567, allocations: 14.85 MB / 390.9 MB, free: 5.77 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009355/0.02503, allocations: 11.87 MB / 402.7 MB, free: 9.855 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.0252, allocations: 11.88 kB / 402.7 MB, free: 9.844 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003838/0.02559, allocations: 139 kB / 402.9 MB, free: 9.707 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005878/0.03147, allocations: 3.709 MB / 406.6 MB, free: 5.984 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003193/0.03466, allocations: 2.066 MB / 408.7 MB, free: 3.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007063/0.03537, allocations: 0.9352 MB / 409.6 MB, free: 2.969 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.03563, allocations: 228.9 kB / 409.8 MB, free: 2.742 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005591/0.03619, allocations: 0.5455 MB / 410.4 MB, free: 2.195 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.03641, allocations: 231.4 kB / 410.6 MB, free: 1.969 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.638e-05/0.03645, allocations: 36 kB / 410.6 MB, free: 1.934 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007618/0.04407, allocations: 6.773 MB / 417.4 MB, free: 11.15 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 9.2e-05/0.04416, allocations: 107.6 kB / 417.5 MB, free: 11.05 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.04429, allocations: 159.7 kB / 417.7 MB, free: 10.89 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006153/0.05044, allocations: 5.238 MB / 422.9 MB, free: 5.641 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.05045, allocations: 0 / 422.9 MB, free: 5.641 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.05045, allocations: 0 / 422.9 MB, free: 5.641 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.05046, allocations: 0 / 422.9 MB, free: 5.641 MB / 394.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.002084/0.05254, allocations: 1.225 MB / 424.1 MB, free: 4.375 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.05258, allocations: 8.031 kB / 424.1 MB, free: 4.367 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009506/0.05353, allocations: 311.7 kB / 424.4 MB, free: 4.062 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.05388, allocations: 323.3 kB / 424.7 MB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.05391, allocations: 28.97 kB / 424.8 MB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.05395, allocations: 32.38 kB / 424.8 MB, free: 3.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008515/0.0548, allocations: 0.7061 MB / 425.5 MB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.05481, allocations: 4.188 kB / 425.5 MB, free: 2.855 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/0.05484, allocations: 15.94 kB / 425.5 MB, free: 2.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.05485, allocations: 11.98 kB / 425.5 MB, free: 2.828 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006039/0.05545, allocations: 371.4 kB / 425.9 MB, free: 2.465 MB / 394.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.001768/0.05722, allocations: 2.257 MB / 428.2 MB, free: 124 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007032/0.05792, allocations: 369.8 kB / 428.5 MB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.05803, allocations: 75.66 kB / 428.6 MB, free: 15.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02136/0.07939, allocations: 13.21 MB / 441.8 MB, free: 2.445 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.07942, allocations: 41.38 kB / 441.9 MB, free: 2.395 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.07942, allocations: 0 / 441.9 MB, free: 2.395 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001189/0.08061, allocations: 0.5953 MB / 442.4 MB, free: 1.793 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.08066, allocations: 110.8 kB / 442.6 MB, free: 1.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.08088, allocations: 314.3 kB / 442.9 MB, free: 1.336 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.0809, allocations: 29.7 kB / 442.9 MB, free: 1.301 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.08101, allocations: 263.1 kB / 443.1 MB, free: 1.039 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.033e-05/0.08106, allocations: 87.27 kB / 443.2 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.287e-05/0.08114, allocations: 79.3 kB / 443.3 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.08127, allocations: 0.5195 MB / 443.8 MB, free: 344 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.803e-05/0.08136, allocations: 59.94 kB / 443.9 MB, free: 284 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1247/0.206, allocations: 244.6 kB / 444.1 MB, free: 78.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.2063, allocations: 257.3 kB / 444.4 MB, free: 78.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.2063, allocations: 0 / 444.4 MB, free: 78.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003731/0.2067, allocations: 302.7 kB / 444.7 MB, free: 78.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2067, allocations: 7.969 kB / 444.7 MB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.2067, allocations: 3.062 kB / 444.7 MB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2068, allocations: 7.922 kB / 444.7 MB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.2069, allocations: 75.25 kB / 444.8 MB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.2069, allocations: 7.641 kB / 444.8 MB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.2071, allocations: 35.59 kB / 444.8 MB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.2071, allocations: 22.33 kB / 444.8 MB, free: 78.55 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.0001076/0.2072, allocations: 181 kB / 445 MB, free: 78.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/0.2072, allocations: 40.91 kB / 445 MB, free: 78.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008629/0.2081, allocations: 1.227 MB / 446.3 MB, free: 78.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.2081, allocations: 33.38 kB / 446.3 MB, free: 78.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2081, allocations: 5.75 kB / 446.3 MB, free: 78.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2081, allocations: 3.047 kB / 446.3 MB, free: 78.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004106/0.2085, allocations: 0.6588 MB / 447 MB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2085, allocations: 0.5938 kB / 447 MB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.2087, allocations: 64.67 kB / 447 MB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.2087, allocations: 0 / 447 MB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.2087, allocations: 6.594 kB / 447 MB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.2087, allocations: 3.562 kB / 447 MB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2087, allocations: 0.75 kB / 447.1 MB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005153/0.2092, allocations: 0.8296 MB / 447.9 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.2092, allocations: 85.39 kB / 448 MB, free: 77.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.2093, allocations: 28.67 kB / 448 MB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.2094, allocations: 13.34 kB / 448 MB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.574e-05/0.2094, allocations: 38.12 kB / 448 MB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.2095, allocations: 12.78 kB / 448.1 MB, free: 77.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001566/0.2096, allocations: 301 kB / 448.3 MB, free: 77.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2096, allocations: 1.859 kB / 448.3 MB, free: 77.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001913/0.2115, allocations: 1.008 MB / 449.4 MB, free: 77.59 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.002489/0.214, allocations: 1.288 MB / 450.6 MB, free: 77.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003461/0.2144, allocations: 317.4 kB / 451 MB, free: 77.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.2144, allocations: 0 / 451 MB, free: 77.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.2146, allocations: 259.5 kB / 451.2 MB, free: 77.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005485/0.2151, allocations: 213.7 kB / 451.4 MB, free: 77.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.2164, allocations: 1.34 MB / 452.8 MB, free: 76.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.986e-05/0.2165, allocations: 182.4 kB / 452.9 MB, free: 76.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002317/0.2167, allocations: 263.7 kB / 453.2 MB, free: 76.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.63e-05/0.2168, allocations: 44.5 kB / 453.2 MB, free: 76.8 MB / 410.7 MB Notification: Performance of SimCode: time 6.32e-07/0.2168, allocations: 0 / 453.2 MB, free: 76.8 MB / 410.7 MB Notification: Performance of Templates: time 0.03567/0.2524, allocations: 46.27 MB / 499.5 MB, free: 62.7 MB / 410.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 -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: 5.222209215164185]