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.002039/0.002039, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002204/0.002204, allocations: 165.3 kB / 24.28 MB, free: 152 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 1.61/1.61, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.3607/0.3607, allocations: 34.27 MB / 295.3 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 179] 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.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.1.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.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 377.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.074e-05/3.204e-05, allocations: 5.406 kB / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.04018/0.04022, allocations: 28.74 MB / 406 MB, free: 6.133 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02068/0.06089, allocations: 13.07 MB / 419.1 MB, free: 9.02 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.06128, allocations: 15.81 kB / 419.1 MB, free: 9.004 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008282/0.0621, allocations: 230.4 kB / 419.3 MB, free: 8.777 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01096/0.07306, allocations: 3.701 MB / 423 MB, free: 5.062 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007323/0.08038, allocations: 2.387 MB / 425.4 MB, free: 2.664 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.08204, allocations: 0.9039 MB / 426.3 MB, free: 1.754 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005097/0.08255, allocations: 221.1 kB / 426.5 MB, free: 1.535 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.08392, allocations: 0.5528 MB / 427.1 MB, free: 0.9805 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004551/0.08437, allocations: 235.3 kB / 427.3 MB, free: 0.75 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.879e-05/0.08446, allocations: 36 kB / 427.4 MB, free: 0.7148 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01749/0.1019, allocations: 6.906 MB / 434.3 MB, free: 9.801 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.1022, allocations: 103.6 kB / 434.4 MB, free: 9.699 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000344/0.1025, allocations: 155.7 kB / 434.5 MB, free: 9.547 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01412/0.1166, allocations: 5.55 MB / 440.1 MB, free: 3.984 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.079e-05/0.1167, allocations: 4 kB / 440.1 MB, free: 3.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1167, allocations: 3.938 kB / 440.1 MB, free: 3.977 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1167, allocations: 0 / 440.1 MB, free: 3.977 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.004618/0.1213, allocations: 1.291 MB / 441.4 MB, free: 2.645 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.1213, allocations: 8.031 kB / 441.4 MB, free: 2.637 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.1232, allocations: 295.7 kB / 441.7 MB, free: 2.348 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006626/0.1239, allocations: 335.3 kB / 442 MB, free: 1.996 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.464e-05/0.1239, allocations: 25.03 kB / 442 MB, free: 1.973 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.124, allocations: 28.38 kB / 442 MB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.1257, allocations: 0.7328 MB / 442.8 MB, free: 1.121 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1257, allocations: 8.125 kB / 442.8 MB, free: 1.113 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.024e-05/0.1258, allocations: 19.94 kB / 442.8 MB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1258, allocations: 8 kB / 442.8 MB, free: 1.086 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.1273, allocations: 482.1 kB / 443.3 MB, free: 0.6172 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.1589/0.2862, allocations: 2.421 MB / 445.7 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.2874, allocations: 403.8 kB / 446.1 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.2877, allocations: 167.4 kB / 446.3 MB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04313/0.3308, allocations: 13.21 MB / 459.5 MB, free: 100.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.3309, allocations: 44.55 kB / 459.5 MB, free: 100.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.424e-06/0.3309, allocations: 0 / 459.5 MB, free: 100.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002324/0.3332, allocations: 0.7625 MB / 460.3 MB, free: 100.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.3332, allocations: 110.1 kB / 460.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.3335, allocations: 370.7 kB / 460.7 MB, free: 99.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.3335, allocations: 32.8 kB / 460.8 MB, free: 99.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.3336, allocations: 273.1 kB / 461 MB, free: 99.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.413e-05/0.3337, allocations: 92.33 kB / 461.1 MB, free: 99.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3338, allocations: 87.69 kB / 461.2 MB, free: 99.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.323e-05/0.3339, allocations: 0.533 MB / 461.8 MB, free: 99.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.3342, allocations: 114.8 kB / 461.9 MB, free: 98.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.3345, allocations: 304.5 kB / 462.2 MB, free: 98.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005488/0.335, allocations: 355.9 kB / 462.5 MB, free: 98.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.335, allocations: 0 / 462.5 MB, free: 98.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007136/0.3357, allocations: 397.8 kB / 462.9 MB, free: 98.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3358, allocations: 6.5 kB / 462.9 MB, free: 98.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3358, allocations: 0 / 462.9 MB, free: 98.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3358, allocations: 6.469 kB / 462.9 MB, free: 98.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.336, allocations: 73.14 kB / 463 MB, free: 98.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.3361, allocations: 8.688 kB / 463 MB, free: 98.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.3363, allocations: 38.56 kB / 463 MB, free: 98.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.3363, allocations: 15.31 kB / 463 MB, free: 98.35 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.0001498/0.3364, allocations: 202.2 kB / 463.2 MB, free: 98.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.021e-05/0.3365, allocations: 41.69 kB / 463.3 MB, free: 98.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.338, allocations: 1.29 MB / 464.6 MB, free: 97.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.566e-05/0.338, allocations: 30.44 kB / 464.6 MB, free: 97.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.338, allocations: 3.719 kB / 464.6 MB, free: 97.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.338, allocations: 7.266 kB / 464.6 MB, free: 97.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006182/0.3386, allocations: 0.7142 MB / 465.3 MB, free: 97.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3386, allocations: 0 / 465.3 MB, free: 97.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.3388, allocations: 55.78 kB / 465.4 MB, free: 97.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3388, allocations: 7 kB / 465.4 MB, free: 97.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.3389, allocations: 7 kB / 465.4 MB, free: 97.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3389, allocations: 0 / 465.4 MB, free: 97.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3389, allocations: 0 / 465.4 MB, free: 97.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009757/0.3398, allocations: 0.925 MB / 466.3 MB, free: 96.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.567e-05/0.3399, allocations: 87.86 kB / 466.4 MB, free: 96.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.34, allocations: 22.72 kB / 466.4 MB, free: 96.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.3402, allocations: 24.66 kB / 466.5 MB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.52e-05/0.3403, allocations: 36.84 kB / 466.5 MB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.3403, allocations: 10.19 kB / 466.5 MB, free: 96.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002768/0.3406, allocations: 354.1 kB / 466.8 MB, free: 96.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3406, allocations: 0 / 466.8 MB, free: 96.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002612/0.3432, allocations: 1.014 MB / 467.9 MB, free: 96.45 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.003953/0.3471, allocations: 1.314 MB / 469.2 MB, free: 96.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009747/0.3481, allocations: 420.2 kB / 469.6 MB, free: 96.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3481, allocations: 4.766 kB / 469.6 MB, free: 96.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005158/0.3486, allocations: 323 kB / 469.9 MB, free: 95.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.3497, allocations: 210.1 kB / 470.1 MB, free: 95.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.3517, allocations: 1.399 MB / 471.5 MB, free: 95.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.352, allocations: 368.5 kB / 471.9 MB, free: 95.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004114/0.3524, allocations: 266.7 kB / 472.1 MB, free: 95.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3525, allocations: 41.16 kB / 472.2 MB, free: 95.07 MB / 410.7 MB Notification: Performance of SimCode: time 8.11e-07/0.3525, allocations: 0 / 472.2 MB, free: 95.07 MB / 410.7 MB Notification: Performance of Templates: time 0.04652/0.399, allocations: 40.06 MB / 0.5002 GB, free: 64.95 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.770962564973161]