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.0009316/0.0009316, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001448/0.001448, allocations: 160.5 kB / 24.56 MB, free: 12 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 0.9752/0.9752, allocations: 177 MB / 204.8 MB, free: 5.188 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.2745/0.2745, allocations: 34.86 MB / 296.3 MB, free: 0.5078 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.[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.904e-06/1.904e-06, allocations: 0 / 378.8 MB, free: 2.082 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.39e-05/2.581e-05, allocations: 6.312 kB / 378.8 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01585/0.01588, allocations: 14.85 MB / 393.6 MB, free: 3.164 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.02645, allocations: 11.86 MB / 405.5 MB, free: 7.258 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.02673, allocations: 15.88 kB / 405.5 MB, free: 7.242 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004711/0.0272, allocations: 135 kB / 405.6 MB, free: 7.109 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007402/0.0346, allocations: 3.705 MB / 409.3 MB, free: 3.391 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004262/0.03887, allocations: 2.078 MB / 411.4 MB, free: 1.305 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009194/0.03979, allocations: 0.9391 MB / 412.3 MB, free: 368 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003545/0.04014, allocations: 225 kB / 412.6 MB, free: 140 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000739/0.04088, allocations: 0.5339 MB / 413.1 MB, free: 15.6 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000285/0.04117, allocations: 247.3 kB / 413.3 MB, free: 15.36 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.701e-05/0.04121, allocations: 32 kB / 413.4 MB, free: 15.33 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008867/0.05008, allocations: 6.777 MB / 420.1 MB, free: 8.543 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.0502, allocations: 103.6 kB / 420.2 MB, free: 8.441 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.05035, allocations: 159.7 kB / 420.4 MB, free: 8.285 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007481/0.05783, allocations: 5.234 MB / 425.6 MB, free: 3.039 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.05784, allocations: 0 / 425.6 MB, free: 3.039 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.05784, allocations: 4 kB / 425.6 MB, free: 3.035 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.05785, allocations: 0 / 425.6 MB, free: 3.035 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.002216/0.06006, allocations: 1.229 MB / 426.9 MB, free: 1.766 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.0601, allocations: 11.97 kB / 426.9 MB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000979/0.06108, allocations: 307.7 kB / 427.2 MB, free: 1.453 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003806/0.06146, allocations: 319.3 kB / 427.5 MB, free: 1.113 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.06149, allocations: 29.03 kB / 427.5 MB, free: 1.086 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.627e-05/0.06152, allocations: 32.38 kB / 427.6 MB, free: 1.055 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008681/0.06239, allocations: 0.71 MB / 428.3 MB, free: 256 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.0624, allocations: 192 / 428.3 MB, free: 256 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/0.06243, allocations: 19.94 kB / 428.3 MB, free: 236 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.06244, allocations: 8 kB / 428.3 MB, free: 228 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006285/0.06307, allocations: 371.3 kB / 428.7 MB, free: 15.86 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.001696/0.06477, allocations: 2.253 MB / 430.9 MB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000767/0.06554, allocations: 374 kB / 431.3 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.0657, allocations: 75.66 kB / 431.3 MB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.185/0.2507, allocations: 13.21 MB / 444.6 MB, free: 77.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.2507, allocations: 38.61 kB / 444.6 MB, free: 77.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.495e-06/0.2507, allocations: 1.938 kB / 444.6 MB, free: 77.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001326/0.252, allocations: 0.5909 MB / 445.2 MB, free: 77.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.2521, allocations: 108.8 kB / 445.3 MB, free: 76.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.2523, allocations: 323 kB / 445.6 MB, free: 76.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.2523, allocations: 35.86 kB / 445.6 MB, free: 76.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.2524, allocations: 263.4 kB / 445.9 MB, free: 76.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.464e-05/0.2525, allocations: 83.39 kB / 446 MB, free: 76.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.521e-05/0.2525, allocations: 78.64 kB / 446.1 MB, free: 76.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.712e-05/0.2526, allocations: 0.5143 MB / 446.6 MB, free: 75.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.2527, allocations: 63.7 kB / 446.6 MB, free: 75.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.2529, allocations: 247.4 kB / 446.9 MB, free: 75.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.2531, allocations: 260.4 kB / 447.1 MB, free: 75.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2531, allocations: 0 / 447.1 MB, free: 75.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003557/0.2535, allocations: 302.5 kB / 447.4 MB, free: 75.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2535, allocations: 9.031 kB / 447.4 MB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2535, allocations: 0 / 447.4 MB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.2535, allocations: 6 kB / 447.4 MB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.2537, allocations: 68.83 kB / 447.5 MB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.2537, allocations: 10.66 kB / 447.5 MB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.2538, allocations: 34.89 kB / 447.6 MB, free: 75.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.2538, allocations: 15.66 kB / 447.6 MB, free: 75.58 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.0001022/0.2539, allocations: 186.5 kB / 447.7 MB, free: 75.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.006e-05/0.254, allocations: 39.19 kB / 447.8 MB, free: 75.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009148/0.2549, allocations: 1.234 MB / 449 MB, free: 75.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.2549, allocations: 26.09 kB / 449 MB, free: 75.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2549, allocations: 2.688 kB / 449 MB, free: 75.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.2549, allocations: 0 / 449 MB, free: 75.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004717/0.2554, allocations: 0.6755 MB / 449.7 MB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.2554, allocations: 0 / 449.7 MB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.2555, allocations: 58.7 kB / 449.8 MB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.2555, allocations: 2.875 kB / 449.8 MB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.2556, allocations: 6.562 kB / 449.8 MB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2556, allocations: 0 / 449.8 MB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2556, allocations: 0.6875 kB / 449.8 MB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000599/0.2562, allocations: 0.8326 MB / 450.6 MB, free: 74.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.055e-05/0.2562, allocations: 87.48 kB / 450.7 MB, free: 74.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/0.2563, allocations: 25.59 kB / 450.7 MB, free: 74.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.2564, allocations: 15.61 kB / 450.8 MB, free: 74.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.041e-05/0.2564, allocations: 35.2 kB / 450.8 MB, free: 74.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2565, allocations: 12.03 kB / 450.8 MB, free: 74.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.2566, allocations: 302.3 kB / 451.1 MB, free: 74.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2566, allocations: 2.75 kB / 451.1 MB, free: 74.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002167/0.2588, allocations: 1.009 MB / 452.1 MB, free: 74.55 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.002941/0.2617, allocations: 1.293 MB / 453.4 MB, free: 74.37 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.2622, allocations: 316.2 kB / 453.7 MB, free: 74.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2622, allocations: 0 / 453.7 MB, free: 74.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.2624, allocations: 262.1 kB / 454 MB, free: 74.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006317/0.263, allocations: 209.8 kB / 454.2 MB, free: 74.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.2647, allocations: 1.336 MB / 455.5 MB, free: 73.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.2648, allocations: 186 kB / 455.7 MB, free: 73.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003122/0.2651, allocations: 266.2 kB / 455.9 MB, free: 73.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.147e-05/0.2652, allocations: 45.44 kB / 456 MB, free: 73.69 MB / 410.7 MB Notification: Performance of SimCode: time 1.432e-06/0.2652, allocations: 3.094 kB / 456 MB, free: 73.69 MB / 410.7 MB Notification: Performance of Templates: time 0.04621/0.3114, allocations: 46.26 MB / 0.4905 GB, free: 58.6 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: 5.6363592450506985]