Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002499/0.002499, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002942/0.002942, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3529/0.3529, allocations: 34.26 MB / 295.2 MB, free: 0.6406 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 377.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.207e-05/3.409e-05, allocations: 8.5 kB / 377.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.04062/0.04065, allocations: 28.73 MB / 405.9 MB, free: 6.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02083/0.06148, allocations: 13.08 MB / 419 MB, free: 8.941 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004409/0.06192, allocations: 15.88 kB / 419 MB, free: 8.926 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009005/0.06282, allocations: 230.4 kB / 419.3 MB, free: 8.699 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01069/0.07351, allocations: 3.701 MB / 423 MB, free: 4.984 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00692/0.08043, allocations: 2.387 MB / 425.3 MB, free: 2.586 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.08177, allocations: 0.9116 MB / 426.3 MB, free: 1.668 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000416/0.08219, allocations: 217.1 kB / 426.5 MB, free: 1.453 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.0832, allocations: 0.549 MB / 427 MB, free: 0.9023 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004036/0.0836, allocations: 235.3 kB / 427.3 MB, free: 0.6719 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.445e-05/0.08368, allocations: 32 kB / 427.3 MB, free: 0.6406 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01489/0.09857, allocations: 6.91 MB / 434.2 MB, free: 9.723 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.09876, allocations: 111.6 kB / 434.3 MB, free: 9.613 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.09906, allocations: 155.7 kB / 434.5 MB, free: 9.461 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.1096, allocations: 5.546 MB / 440 MB, free: 3.902 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1096, allocations: 3.938 kB / 440 MB, free: 3.898 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1096, allocations: 0 / 440 MB, free: 3.898 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1096, allocations: 0 / 440 MB, free: 3.898 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.002823/0.1124, allocations: 1.287 MB / 441.3 MB, free: 2.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.1125, allocations: 8.031 kB / 441.3 MB, free: 2.562 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/0.1142, allocations: 303.7 kB / 441.6 MB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006118/0.1148, allocations: 331.3 kB / 441.9 MB, free: 1.914 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.953e-05/0.1149, allocations: 25.03 kB / 441.9 MB, free: 1.891 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.499e-05/0.115, allocations: 36.38 kB / 442 MB, free: 1.855 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.1166, allocations: 0.7289 MB / 442.7 MB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.1166, allocations: 192 / 442.7 MB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.149e-05/0.1166, allocations: 27.92 kB / 442.7 MB, free: 1.008 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1166, allocations: 8 kB / 442.7 MB, free: 1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.1181, allocations: 482 kB / 443.2 MB, free: 0.5312 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.1713/0.2894, allocations: 2.411 MB / 445.6 MB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.2906, allocations: 409.8 kB / 446 MB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003155/0.291, allocations: 168 kB / 446.2 MB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04298/0.3339, allocations: 13.21 MB / 459.4 MB, free: 100.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.334, allocations: 40.77 kB / 459.4 MB, free: 100.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.084e-06/0.334, allocations: 0 / 459.4 MB, free: 100.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002338/0.3363, allocations: 0.7611 MB / 460.2 MB, free: 100.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.3363, allocations: 106.1 kB / 460.3 MB, free: 100 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002904/0.3366, allocations: 377.1 kB / 460.7 MB, free: 99.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.3367, allocations: 33.14 kB / 460.7 MB, free: 99.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.3368, allocations: 267.3 kB / 461 MB, free: 99.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.046e-05/0.3368, allocations: 104.1 kB / 461.1 MB, free: 99.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.3369, allocations: 86.48 kB / 461.2 MB, free: 99.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.984e-05/0.337, allocations: 0.5264 MB / 461.7 MB, free: 98.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.3373, allocations: 117.1 kB / 461.8 MB, free: 98.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.3377, allocations: 308.6 kB / 462.1 MB, free: 98.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005708/0.3382, allocations: 349.8 kB / 462.4 MB, free: 98.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3382, allocations: 3.406 kB / 462.4 MB, free: 98.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007226/0.339, allocations: 392.6 kB / 462.8 MB, free: 98.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.339, allocations: 5.938 kB / 462.8 MB, free: 98.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.339, allocations: 3.062 kB / 462.8 MB, free: 98.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.339, allocations: 7.625 kB / 462.8 MB, free: 98.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.3393, allocations: 74.78 kB / 462.9 MB, free: 98.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.3393, allocations: 8.562 kB / 462.9 MB, free: 98.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.3395, allocations: 36.25 kB / 463 MB, free: 98.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.3395, allocations: 16.34 kB / 463 MB, free: 98.25 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.0001591/0.3397, allocations: 208.5 kB / 463.2 MB, free: 98.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.057e-05/0.3398, allocations: 38.66 kB / 463.2 MB, free: 98.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.3412, allocations: 1.295 MB / 464.5 MB, free: 97.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/0.3413, allocations: 27.17 kB / 464.5 MB, free: 97.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3413, allocations: 0 / 464.5 MB, free: 97.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3413, allocations: 7.125 kB / 464.5 MB, free: 97.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006035/0.3419, allocations: 0.7157 MB / 465.3 MB, free: 97.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3419, allocations: 0 / 465.3 MB, free: 97.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.3421, allocations: 62.11 kB / 465.3 MB, free: 97.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3421, allocations: 0 / 465.3 MB, free: 97.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.3421, allocations: 10.97 kB / 465.3 MB, free: 97.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3421, allocations: 6.406 kB / 465.3 MB, free: 97.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3421, allocations: 0 / 465.3 MB, free: 97.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009745/0.3431, allocations: 0.9158 MB / 466.2 MB, free: 96.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.171e-05/0.3432, allocations: 84.52 kB / 466.3 MB, free: 96.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.926e-05/0.3433, allocations: 34.06 kB / 466.4 MB, free: 96.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.3435, allocations: 16.66 kB / 466.4 MB, free: 96.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.667e-05/0.3435, allocations: 32.73 kB / 466.4 MB, free: 96.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.3436, allocations: 13.31 kB / 466.4 MB, free: 96.76 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002548/0.3438, allocations: 351.8 kB / 466.8 MB, free: 96.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3438, allocations: 0 / 466.8 MB, free: 96.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002435/0.3463, allocations: 1.017 MB / 467.8 MB, free: 96.39 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.003661/0.3499, allocations: 1.31 MB / 469.1 MB, free: 96.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009795/0.3509, allocations: 430.2 kB / 469.5 MB, free: 96.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3509, allocations: 0 / 469.5 MB, free: 96.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004993/0.3514, allocations: 318.5 kB / 469.8 MB, free: 95.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.3525, allocations: 213.9 kB / 470 MB, free: 95.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.3545, allocations: 1.4 MB / 471.4 MB, free: 95.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.3548, allocations: 368.9 kB / 471.8 MB, free: 95.04 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004614/0.3553, allocations: 265.1 kB / 472.1 MB, free: 95.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.3554, allocations: 40.88 kB / 472.1 MB, free: 95.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.382e-06/0.3554, allocations: 0 / 472.1 MB, free: 95.02 MB / 410.7 MB Notification: Performance of Templates: time 0.048/0.4034, allocations: 40.06 MB / 0.5001 GB, free: 64.8 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.88505181693472]