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.001162/0.001162, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001339/0.001339, allocations: 168.1 kB / 24.82 MB, free: 9.203 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 1.077/1.077, allocations: 177.1 MB / 205.3 MB, free: 5.512 MB / 186.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.31/0.31, allocations: 34.27 MB / 296.1 MB, free: 0.7148 MB / 266.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.984e-06/1.984e-06, allocations: 0 / 378.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.451e-05/2.649e-05, allocations: 5.266 kB / 378.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01909/0.01912, allocations: 14.69 MB / 393.2 MB, free: 3.641 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0147/0.03382, allocations: 11.66 MB / 404.8 MB, free: 7.934 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003679/0.03419, allocations: 19.81 kB / 404.9 MB, free: 7.914 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005715/0.03476, allocations: 139 kB / 405 MB, free: 7.777 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008566/0.04332, allocations: 3.709 MB / 408.7 MB, free: 4.055 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004982/0.04831, allocations: 2.074 MB / 410.8 MB, free: 1.973 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009432/0.04925, allocations: 0.9313 MB / 411.7 MB, free: 1.035 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003476/0.0496, allocations: 232.9 kB / 411.9 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007719/0.05037, allocations: 0.5378 MB / 412.5 MB, free: 272 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.05063, allocations: 239.3 kB / 412.7 MB, free: 32 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.566e-05/0.05068, allocations: 32 kB / 412.7 MB, free: 0 / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01022/0.0609, allocations: 6.77 MB / 419.5 MB, free: 9.223 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.06104, allocations: 107.6 kB / 419.6 MB, free: 9.117 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.06119, allocations: 155.7 kB / 419.8 MB, free: 8.965 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007241/0.06843, allocations: 5.238 MB / 425 MB, free: 3.715 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.06843, allocations: 0 / 425 MB, free: 3.715 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.06843, allocations: 0 / 425 MB, free: 3.715 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.06844, allocations: 0 / 425 MB, free: 3.715 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.002219/0.07066, allocations: 1.237 MB / 426.2 MB, free: 2.438 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.07071, allocations: 12.03 kB / 426.3 MB, free: 2.426 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009445/0.07165, allocations: 303.7 kB / 426.6 MB, free: 2.129 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003717/0.07202, allocations: 323.4 kB / 426.9 MB, free: 1.789 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.07205, allocations: 25.03 kB / 426.9 MB, free: 1.766 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.07209, allocations: 28.38 kB / 426.9 MB, free: 1.738 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008426/0.07293, allocations: 0.698 MB / 427.6 MB, free: 0.9453 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.07294, allocations: 4.188 kB / 427.6 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.07297, allocations: 15.94 kB / 427.6 MB, free: 0.9258 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.07298, allocations: 8 kB / 427.6 MB, free: 0.918 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005371/0.07352, allocations: 336 kB / 428 MB, free: 0.5898 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.001695/0.07521, allocations: 2.168 MB / 430.1 MB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000689/0.0759, allocations: 354.5 kB / 430.5 MB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.295e-05/0.07599, allocations: 63.66 kB / 430.6 MB, free: 13.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01962/0.0956, allocations: 11.5 MB / 442.1 MB, free: 2.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.09564, allocations: 41.33 kB / 442.1 MB, free: 2.355 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.864e-06/0.09564, allocations: 4 kB / 442.1 MB, free: 2.352 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001107/0.09675, allocations: 0.5641 MB / 442.7 MB, free: 1.781 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.0968, allocations: 106.8 kB / 442.8 MB, free: 1.652 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.09701, allocations: 314.2 kB / 443.1 MB, free: 1.328 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.09703, allocations: 29.7 kB / 443.1 MB, free: 1.293 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.09717, allocations: 263 kB / 443.4 MB, free: 1.031 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.969e-05/0.09722, allocations: 95.19 kB / 443.5 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.991e-05/0.0973, allocations: 79.31 kB / 443.5 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.09746, allocations: 0.5156 MB / 444 MB, free: 332 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.041e-05/0.09753, allocations: 51.94 kB / 444.1 MB, free: 280 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2436/0.3411, allocations: 246.4 kB / 444.3 MB, free: 76.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004811/0.3416, allocations: 235.1 kB / 444.6 MB, free: 76.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3416, allocations: 0.7188 kB / 444.6 MB, free: 76.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004989/0.3421, allocations: 287.2 kB / 444.8 MB, free: 76.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.3421, allocations: 5.688 kB / 444.9 MB, free: 76.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3422, allocations: 2.625 kB / 444.9 MB, free: 76.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.3422, allocations: 2.844 kB / 444.9 MB, free: 76.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.3424, allocations: 77.31 kB / 444.9 MB, free: 76.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.3424, allocations: 2.938 kB / 444.9 MB, free: 76.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.3426, allocations: 34.89 kB / 445 MB, free: 76.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.3426, allocations: 15.25 kB / 445 MB, free: 76.67 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.0001794/0.3428, allocations: 181.3 kB / 445.2 MB, free: 76.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.887e-05/0.3429, allocations: 40.86 kB / 445.2 MB, free: 76.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.344, allocations: 1.128 MB / 446.3 MB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.717e-05/0.344, allocations: 29.53 kB / 446.4 MB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.344, allocations: 4.031 kB / 446.4 MB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.344, allocations: 3.562 kB / 446.4 MB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005961/0.3446, allocations: 0.5985 MB / 447 MB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.3446, allocations: 0 / 447 MB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.3448, allocations: 60.92 kB / 447 MB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.3448, allocations: 3.422 kB / 447 MB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.3448, allocations: 7.312 kB / 447 MB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.3448, allocations: 6.312 kB / 447 MB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3448, allocations: 0 / 447 MB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006716/0.3455, allocations: 0.7687 MB / 447.8 MB, free: 75.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.067e-05/0.3456, allocations: 89.09 kB / 447.9 MB, free: 75.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.3456, allocations: 31.59 kB / 447.9 MB, free: 75.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.3458, allocations: 15.39 kB / 447.9 MB, free: 75.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.955e-05/0.3458, allocations: 35.33 kB / 448 MB, free: 75.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.3458, allocations: 13.8 kB / 448 MB, free: 75.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001727/0.346, allocations: 290.3 kB / 448.3 MB, free: 75.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.346, allocations: 0 / 448.3 MB, free: 75.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003041/0.3491, allocations: 1.008 MB / 449.3 MB, free: 75.74 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.003866/0.3529, allocations: 1.313 MB / 450.6 MB, free: 75.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000633/0.3536, allocations: 276.3 kB / 450.9 MB, free: 75.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3536, allocations: 3.844 kB / 450.9 MB, free: 75.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.3539, allocations: 222.3 kB / 451.1 MB, free: 75.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008722/0.3547, allocations: 220.4 kB / 451.3 MB, free: 75.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.3566, allocations: 1.317 MB / 452.6 MB, free: 75.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.3568, allocations: 182.4 kB / 452.8 MB, free: 74.97 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000385/0.3572, allocations: 251.3 kB / 453 MB, free: 74.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.3575, allocations: 252.6 kB / 453.3 MB, free: 74.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.913e-06/0.3575, allocations: 2.078 kB / 453.3 MB, free: 74.91 MB / 410.7 MB Notification: Performance of Templates: time 0.06032/0.4178, allocations: 45.21 MB / 498.5 MB, free: 61.9 MB / 410.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.517796605825424]