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.0007919/0.0007919, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001106/0.001898, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0009993/0.0009993, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00128/0.00228, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9868/0.9868, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09316/1.08, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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.2625/0.2625, allocations: 34.85 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02425/0.2867, allocations: 13.23 MB / 292.6 MB, free: 6.457 MB / 282.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.913e-06/1.913e-06, allocations: 0 / 293.8 MB, free: 5.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.402e-05, allocations: 2.312 kB / 293.9 MB, free: 5.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01954/0.01957, allocations: 14.91 MB / 308.8 MB, free: 6.227 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.03402, allocations: 11.92 MB / 320.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003198/0.03434, allocations: 11.88 kB / 320.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003936/0.03474, allocations: 146.9 kB / 320.8 MB, free: 10.1 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007676/0.04241, allocations: 3.33 MB / 324.2 MB, free: 6.758 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005047/0.04746, allocations: 1.944 MB / 326.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001149/0.04861, allocations: 0.9314 MB / 327 MB, free: 3.871 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/0.04902, allocations: 229.1 kB / 327.3 MB, free: 3.645 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008791/0.0499, allocations: 0.5734 MB / 327.8 MB, free: 3.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.05018, allocations: 223.3 kB / 328.1 MB, free: 2.852 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/0.05023, allocations: 36 kB / 328.1 MB, free: 2.816 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01048/0.06071, allocations: 7.269 MB / 335.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.06086, allocations: 83.72 kB / 335.4 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.0611, allocations: 131.8 kB / 335.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01048/0.07158, allocations: 4.008 MB / 339.6 MB, free: 7.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.68e-05/0.0716, allocations: 0 / 339.6 MB, free: 7.316 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.0716, allocations: 0 / 339.6 MB, free: 7.316 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.07162, allocations: 0 / 339.6 MB, free: 7.316 MB / 330.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.003373/0.07499, allocations: 1.527 MB / 341.1 MB, free: 5.742 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.07504, allocations: 8.922 kB / 341.1 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009506/0.07599, allocations: 335.8 kB / 341.4 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.07635, allocations: 280.5 kB / 341.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.07639, allocations: 29.03 kB / 341.8 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.137e-05/0.07642, allocations: 28.38 kB / 341.8 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007968/0.07721, allocations: 0.6783 MB / 342.5 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.07723, allocations: 192 / 342.5 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.07725, allocations: 27.94 kB / 342.5 MB, free: 4.262 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.07726, allocations: 4 kB / 342.5 MB, free: 4.258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004952/0.07775, allocations: 322.3 kB / 342.8 MB, free: 3.938 MB / 330.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.001417/0.07917, allocations: 1.526 MB / 344.3 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.07982, allocations: 340.4 kB / 344.7 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.001e-05/0.07989, allocations: 56.84 kB / 344.7 MB, free: 1.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1247/0.2046, allocations: 72.57 MB / 417.3 MB, free: 9.305 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.2046, allocations: 42.5 kB / 417.3 MB, free: 9.254 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.434e-06/0.2046, allocations: 0 / 417.3 MB, free: 9.254 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001124/0.2057, allocations: 0.5162 MB / 417.8 MB, free: 8.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.2058, allocations: 59.41 kB / 417.9 MB, free: 8.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.206, allocations: 258.9 kB / 418.2 MB, free: 8.398 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.206, allocations: 33.7 kB / 418.2 MB, free: 8.359 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.2061, allocations: 184.9 kB / 418.4 MB, free: 8.176 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/0.2061, allocations: 91.2 kB / 418.5 MB, free: 8.086 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.2062, allocations: 61.61 kB / 418.5 MB, free: 8.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.068e-05/0.2063, allocations: 342.8 kB / 418.9 MB, free: 7.676 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003799/0.2067, allocations: 51.94 kB / 418.9 MB, free: 7.625 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.2068, allocations: 201 kB / 419.1 MB, free: 7.375 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.207, allocations: 210.1 kB / 419.3 MB, free: 7.137 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.207, allocations: 0 / 419.3 MB, free: 7.137 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002601/0.2073, allocations: 227.7 kB / 419.5 MB, free: 6.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.2073, allocations: 4 kB / 419.5 MB, free: 6.906 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2073, allocations: 4 kB / 419.5 MB, free: 6.902 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.2073, allocations: 4 kB / 419.5 MB, free: 6.898 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.2075, allocations: 83.89 kB / 419.6 MB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.2075, allocations: 7.938 kB / 419.6 MB, free: 6.809 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.2077, allocations: 40.08 kB / 419.7 MB, free: 6.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.2077, allocations: 12 kB / 419.7 MB, free: 6.758 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 0.0001296/0.2078, allocations: 140.5 kB / 419.8 MB, free: 6.609 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.545e-05/0.2079, allocations: 31.91 kB / 419.8 MB, free: 6.578 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009608/0.2088, allocations: 1.103 MB / 421 MB, free: 5.465 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/0.2088, allocations: 35.94 kB / 421 MB, free: 5.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.2088, allocations: 0 / 421 MB, free: 5.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2088, allocations: 0 / 421 MB, free: 5.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005632/0.2094, allocations: 0.5462 MB / 421.5 MB, free: 4.867 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.2094, allocations: 0 / 421.5 MB, free: 4.867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.2096, allocations: 63.89 kB / 421.6 MB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.858e-05/0.2096, allocations: 83.22 kB / 421.7 MB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.2096, allocations: 3.938 kB / 421.7 MB, free: 4.719 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.2097, allocations: 8 kB / 421.7 MB, free: 4.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.2097, allocations: 4 kB / 421.7 MB, free: 4.707 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.2097, allocations: 0 / 421.7 MB, free: 4.707 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005813/0.2102, allocations: 0.6559 MB / 422.3 MB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.2103, allocations: 31.72 kB / 422.4 MB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.2104, allocations: 15.98 kB / 422.4 MB, free: 3.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.669e-05/0.2105, allocations: 35.94 kB / 422.4 MB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.2105, allocations: 7.984 kB / 422.4 MB, free: 3.938 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001503/0.2107, allocations: 156.7 kB / 422.6 MB, free: 3.777 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2107, allocations: 0 / 422.6 MB, free: 3.777 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003256/0.2139, allocations: 1.014 MB / 423.6 MB, free: 2.762 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.003539/0.2175, allocations: 1.367 MB / 425 MB, free: 1.383 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003777/0.2178, allocations: 259 kB / 425.2 MB, free: 1.129 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/0.2179, allocations: 8 kB / 425.2 MB, free: 1.121 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.218, allocations: 200.5 kB / 425.4 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000589/0.2186, allocations: 262 kB / 425.7 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/0.2236, allocations: 1.355 MB / 427 MB, free: 15.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.2237, allocations: 181.5 kB / 427.2 MB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003451/0.2241, allocations: 258.3 kB / 427.5 MB, free: 14.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.2244, allocations: 201.2 kB / 427.7 MB, free: 14.64 MB / 426.7 MB Notification: Performance of SimCode: time 2.154e-06/0.2244, allocations: 0 / 427.7 MB, free: 14.64 MB / 426.7 MB Notification: Performance of Templates: time 0.1898/0.4142, allocations: 44.57 MB / 472.2 MB, free: 96.84 MB / 426.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 -ignoreHideResult -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.719530290924013]