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.0009943/0.0009943, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.0009266/0.0009266, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 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 0.8828/0.8828, allocations: 177 MB / 205.2 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] 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.2521/0.2521, allocations: 34.85 MB / 296.6 MB, free: 456 kB / 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.[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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 325.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.181e-05/1.325e-05, allocations: 5.406 kB / 325.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01103/0.01105, allocations: 14.79 MB / 340.7 MB, free: 8.316 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008797/0.01984, allocations: 11.85 MB / 352.6 MB, free: 12.42 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.02, allocations: 19.88 kB / 352.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003473/0.02034, allocations: 142.9 kB / 352.7 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005107/0.02545, allocations: 3.728 MB / 356.4 MB, free: 8.516 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003175/0.02863, allocations: 2.078 MB / 358.5 MB, free: 6.43 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006953/0.02932, allocations: 0.9313 MB / 359.5 MB, free: 5.496 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.02957, allocations: 236.8 kB / 359.7 MB, free: 5.262 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00055/0.03012, allocations: 0.5455 MB / 360.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.03032, allocations: 219.4 kB / 360.4 MB, free: 4.5 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.737e-05/0.03036, allocations: 32 kB / 360.5 MB, free: 4.469 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006865/0.03722, allocations: 6.78 MB / 367.3 MB, free: 13.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.886e-05/0.03731, allocations: 103.6 kB / 367.4 MB, free: 13.58 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.03743, allocations: 155.7 kB / 367.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004702/0.04213, allocations: 5.238 MB / 372.7 MB, free: 8.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.04213, allocations: 4 kB / 372.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.04213, allocations: 0 / 372.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.04214, allocations: 0 / 372.8 MB, free: 8.176 MB / 346.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.001488/0.04363, allocations: 1.108 MB / 373.9 MB, free: 7.039 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.04366, allocations: 12.03 kB / 373.9 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008952/0.04455, allocations: 339.8 kB / 374.2 MB, free: 6.695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/0.04485, allocations: 280.6 kB / 374.5 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.04488, allocations: 29.03 kB / 374.5 MB, free: 6.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.04491, allocations: 28.38 kB / 374.5 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007128/0.04562, allocations: 0.6673 MB / 375.2 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.04564, allocations: 4.188 kB / 375.2 MB, free: 5.586 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.04566, allocations: 23.88 kB / 375.2 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.557e-06/0.04567, allocations: 8 kB / 375.2 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004784/0.04615, allocations: 318.3 kB / 375.5 MB, free: 5.246 MB / 346.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.001227/0.04737, allocations: 1.529 MB / 377.1 MB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005937/0.04797, allocations: 330.8 kB / 377.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.635e-05/0.04803, allocations: 56.84 kB / 377.5 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2642/0.3122, allocations: 72.56 MB / 450 MB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.3122, allocations: 37.55 kB / 450.1 MB, free: 101.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.755e-06/0.3122, allocations: 0 / 450.1 MB, free: 101.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001373/0.3136, allocations: 0.5276 MB / 450.6 MB, free: 101.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.3136, allocations: 109.2 kB / 450.7 MB, free: 101.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.3138, allocations: 259.3 kB / 450.9 MB, free: 101.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3138, allocations: 29.39 kB / 451 MB, free: 101.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/0.3139, allocations: 182.2 kB / 451.1 MB, free: 101.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.493e-05/0.3139, allocations: 96.45 kB / 451.2 MB, free: 101 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.91e-05/0.314, allocations: 61.53 kB / 451.3 MB, free: 101 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.383e-05/0.3141, allocations: 345.4 kB / 451.6 MB, free: 100.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.458e-05/0.3141, allocations: 50.86 kB / 451.7 MB, free: 100.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.3143, allocations: 200 kB / 451.9 MB, free: 100.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.3144, allocations: 209.1 kB / 452.1 MB, free: 100.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3144, allocations: 3.188 kB / 452.1 MB, free: 100.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002617/0.3147, allocations: 230.7 kB / 452.3 MB, free: 100.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3147, allocations: 6.094 kB / 452.3 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3147, allocations: 3.938 kB / 452.3 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3147, allocations: 3.781 kB / 452.3 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.3149, allocations: 69.69 kB / 452.4 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.3149, allocations: 11.34 kB / 452.4 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.3151, allocations: 32.42 kB / 452.4 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.3151, allocations: 11.56 kB / 452.4 MB, free: 100.4 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 9.156e-05/0.3152, allocations: 140.2 kB / 452.6 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.103e-05/0.3152, allocations: 26.02 kB / 452.6 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008587/0.3161, allocations: 1.122 MB / 453.7 MB, free: 100 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.93e-05/0.3161, allocations: 25.5 kB / 453.8 MB, free: 100 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.3161, allocations: 0 / 453.8 MB, free: 100 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.3161, allocations: 3.703 kB / 453.8 MB, free: 100 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.3166, allocations: 0.5443 MB / 454.3 MB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.3166, allocations: 0 / 454.3 MB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.3167, allocations: 60 kB / 454.4 MB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3167, allocations: 0 / 454.4 MB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.3168, allocations: 10.03 kB / 454.4 MB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.3168, allocations: 4 kB / 454.4 MB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3168, allocations: 3.75 kB / 454.4 MB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004838/0.3172, allocations: 0.6556 MB / 455 MB, free: 99.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.479e-05/0.3173, allocations: 83.64 kB / 455.1 MB, free: 99.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.3173, allocations: 25.62 kB / 455.1 MB, free: 99.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.3175, allocations: 17.8 kB / 455.2 MB, free: 99.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.3176, allocations: 42.47 kB / 455.2 MB, free: 99.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.3176, allocations: 9.312 kB / 455.2 MB, free: 99.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000116/0.3177, allocations: 159.6 kB / 455.4 MB, free: 99.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3177, allocations: 0 / 455.4 MB, free: 99.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002031/0.3197, allocations: 1.01 MB / 456.4 MB, free: 99.57 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.0029/0.3226, allocations: 1.356 MB / 457.7 MB, free: 99.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003165/0.3229, allocations: 246 kB / 458 MB, free: 99.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.3229, allocations: 4 kB / 458 MB, free: 99.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.3231, allocations: 201.4 kB / 458.2 MB, free: 99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006426/0.3238, allocations: 213.5 kB / 458.4 MB, free: 98.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.325, allocations: 1.336 MB / 459.7 MB, free: 97.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.405e-05/0.3251, allocations: 179.2 kB / 459.9 MB, free: 97.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002326/0.3254, allocations: 264.7 kB / 460.2 MB, free: 97.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.3256, allocations: 200.9 kB / 460.3 MB, free: 97.31 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3256, allocations: 0 / 460.3 MB, free: 97.31 MB / 410.7 MB Notification: Performance of Templates: time 0.03555/0.3612, allocations: 44.26 MB / 0.4928 GB, free: 55.69 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.520238357130438]