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.001469/0.001469, 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.001804/0.001804, allocations: 160.5 kB / 24.55 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.9336/0.9336, allocations: 177 MB / 204.8 MB, free: 5.242 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.2554/0.2554, allocations: 34.87 MB / 296.3 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.102e-06/1.102e-06, allocations: 0 / 378.8 MB, free: 2.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.328e-05/1.438e-05, allocations: 4.984 kB / 378.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01245/0.01247, allocations: 14.84 MB / 393.6 MB, free: 3.164 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009625/0.02209, allocations: 11.86 MB / 405.5 MB, free: 7.262 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.02228, allocations: 15.81 kB / 405.5 MB, free: 7.246 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004192/0.02269, allocations: 147 kB / 405.6 MB, free: 7.102 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006296/0.02899, allocations: 3.697 MB / 409.3 MB, free: 3.391 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003461/0.03245, allocations: 2.07 MB / 411.4 MB, free: 1.312 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000694/0.03315, allocations: 0.939 MB / 412.3 MB, free: 376 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.03342, allocations: 229.1 kB / 412.6 MB, free: 144 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006128/0.03403, allocations: 0.5456 MB / 413.1 MB, free: 15.59 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.03426, allocations: 235.3 kB / 413.3 MB, free: 15.36 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.359e-05/0.0343, allocations: 32 kB / 413.4 MB, free: 15.33 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007815/0.04212, allocations: 6.785 MB / 420.1 MB, free: 8.535 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 9.396e-05/0.04221, allocations: 95.66 kB / 420.2 MB, free: 8.441 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.04233, allocations: 159.7 kB / 420.4 MB, free: 8.285 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004935/0.04727, allocations: 5.235 MB / 425.6 MB, free: 3.039 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.04727, allocations: 4 kB / 425.6 MB, free: 3.035 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.04727, allocations: 0 / 425.6 MB, free: 3.035 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.04728, 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.001632/0.04891, allocations: 1.233 MB / 426.9 MB, free: 1.762 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.04894, allocations: 12.03 kB / 426.9 MB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009301/0.04987, allocations: 299.7 kB / 427.2 MB, free: 1.457 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.05022, allocations: 327.3 kB / 427.5 MB, free: 1.109 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.05025, allocations: 29.03 kB / 427.5 MB, free: 1.082 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.05029, allocations: 28.38 kB / 427.5 MB, free: 1.055 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008482/0.05114, allocations: 0.7138 MB / 428.3 MB, free: 252 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.05115, allocations: 192 / 428.3 MB, free: 252 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.05118, allocations: 23.88 kB / 428.3 MB, free: 228 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.05119, allocations: 8 kB / 428.3 MB, free: 220 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008808/0.05207, allocations: 363.4 kB / 428.6 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.001649/0.05372, allocations: 2.265 MB / 430.9 MB, free: 13.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007113/0.05443, allocations: 368.7 kB / 431.3 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.05454, allocations: 79.59 kB / 431.4 MB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1699/0.2244, allocations: 13.2 MB / 444.6 MB, free: 76.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.2244, allocations: 43.61 kB / 444.6 MB, free: 76.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.165e-06/0.2244, allocations: 0 / 444.6 MB, free: 76.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001258/0.2257, allocations: 0.5883 MB / 445.2 MB, free: 76.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.2257, allocations: 111 kB / 445.3 MB, free: 76.78 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.2259, allocations: 322.8 kB / 445.6 MB, free: 76.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.2259, allocations: 28.95 kB / 445.6 MB, free: 76.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.207e-05/0.226, allocations: 262 kB / 445.9 MB, free: 76.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.785e-05/0.226, allocations: 85 kB / 446 MB, free: 76.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.573e-05/0.2261, allocations: 78.53 kB / 446.1 MB, free: 76.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.751e-05/0.2262, allocations: 0.5159 MB / 446.6 MB, free: 75.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.2263, allocations: 67.59 kB / 446.6 MB, free: 75.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.2264, allocations: 249.1 kB / 446.9 MB, free: 75.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002207/0.2266, allocations: 252.1 kB / 447.1 MB, free: 75.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2267, allocations: 6.156 kB / 447.1 MB, free: 75.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000326/0.227, allocations: 306.7 kB / 447.4 MB, free: 75.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.227, allocations: 9.312 kB / 447.4 MB, free: 75.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.227, allocations: 2.844 kB / 447.4 MB, free: 75.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.227, allocations: 5 kB / 447.4 MB, free: 75.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.2272, allocations: 74.91 kB / 447.5 MB, free: 75.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2272, allocations: 4.438 kB / 447.5 MB, free: 75.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.2273, allocations: 34.38 kB / 447.6 MB, free: 75.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.2273, allocations: 17.86 kB / 447.6 MB, free: 75.46 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 8.838e-05/0.2274, allocations: 182.5 kB / 447.8 MB, free: 75.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.2275, allocations: 34.25 kB / 447.8 MB, free: 75.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008523/0.2283, allocations: 1.237 MB / 449 MB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.2283, allocations: 31.94 kB / 449.1 MB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2283, allocations: 1.125 kB / 449.1 MB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2283, allocations: 0 / 449.1 MB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.2288, allocations: 0.668 MB / 449.7 MB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.2288, allocations: 1.219 kB / 449.7 MB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.2289, allocations: 54.14 kB / 449.8 MB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2289, allocations: 7.312 kB / 449.8 MB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.2289, allocations: 6.656 kB / 449.8 MB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2289, allocations: 3.125 kB / 449.8 MB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2289, allocations: 1.594 kB / 449.8 MB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005457/0.2294, allocations: 0.8262 MB / 450.6 MB, free: 74.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.2295, allocations: 88.73 kB / 450.7 MB, free: 74.58 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.2295, allocations: 26.31 kB / 450.7 MB, free: 74.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.2296, allocations: 18.36 kB / 450.8 MB, free: 74.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.403e-05/0.2297, allocations: 35.69 kB / 450.8 MB, free: 74.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.2297, allocations: 8.75 kB / 450.8 MB, free: 74.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001501/0.2298, allocations: 302.1 kB / 451.1 MB, free: 74.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2298, allocations: 0 / 451.1 MB, free: 74.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001838/0.2317, allocations: 1.01 MB / 452.1 MB, free: 74.44 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.002496/0.2342, allocations: 1.294 MB / 453.4 MB, free: 74.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003652/0.2345, allocations: 317.1 kB / 453.7 MB, free: 74.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2345, allocations: 1 kB / 453.7 MB, free: 74.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.2347, allocations: 262.6 kB / 454 MB, free: 74.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005813/0.2353, allocations: 206.7 kB / 454.2 MB, free: 74.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.2367, allocations: 1.337 MB / 455.5 MB, free: 73.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.345e-05/0.2368, allocations: 185.9 kB / 455.7 MB, free: 73.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002296/0.237, allocations: 269.7 kB / 455.9 MB, free: 73.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.412e-05/0.2371, allocations: 40.66 kB / 456 MB, free: 73.57 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.2371, allocations: 0 / 456 MB, free: 73.57 MB / 410.7 MB Notification: Performance of Templates: time 0.03357/0.2707, allocations: 39.76 MB / 495.7 MB, free: 64.84 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.785007867030799]