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.0008739/0.0008739, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004623/0.004623, allocations: 157.7 kB / 24.7 MB, free: 8.891 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.9031/0.9031, allocations: 177 MB / 204.8 MB, free: 5.75 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.245/0.245, allocations: 34.24 MB / 295.6 MB, free: 0.6797 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.274e-06/2.274e-06, allocations: 0 / 443.4 MB, free: 1.062 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.897e-05/3.125e-05, allocations: 2.281 kB / 443.4 MB, free: 1.059 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2178/0.2178, allocations: 25.75 MB / 469.2 MB, free: 28.15 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.007398/0.2252, allocations: 11.77 MB / 480.9 MB, free: 20.46 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.2254, allocations: 22.47 kB / 481 MB, free: 20.45 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000532/0.2259, allocations: 231.6 kB / 481.2 MB, free: 20.32 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005392/0.2313, allocations: 3.692 MB / 484.9 MB, free: 18.84 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003906/0.2352, allocations: 2.388 MB / 487.3 MB, free: 17.66 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007306/0.2359, allocations: 0.9068 MB / 488.2 MB, free: 17.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.2362, allocations: 217.6 kB / 488.4 MB, free: 17.11 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005306/0.2367, allocations: 0.5465 MB / 488.9 MB, free: 16.88 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.2369, allocations: 237 kB / 489.2 MB, free: 16.8 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/0.237, allocations: 33.75 kB / 489.2 MB, free: 16.8 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008583/0.2456, allocations: 6.906 MB / 496.1 MB, free: 15.2 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.2457, allocations: 100.7 kB / 496.2 MB, free: 15.14 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.2458, allocations: 158.8 kB / 496.4 MB, free: 15.09 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007435/0.2532, allocations: 5.549 MB / 0.4902 GB, free: 13.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.2532, allocations: 1.406 kB / 0.4902 GB, free: 13.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2532, allocations: 0 / 0.4902 GB, free: 13.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.2532, allocations: 0 / 0.4902 GB, free: 13.33 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.002023/0.2553, allocations: 1.186 MB / 0.4913 GB, free: 12.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2553, allocations: 9.469 kB / 0.4913 GB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008819/0.2562, allocations: 219.4 kB / 0.4915 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.2566, allocations: 313.7 kB / 0.4918 GB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.2566, allocations: 27.38 kB / 0.4919 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.2567, allocations: 27.66 kB / 0.4919 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009318/0.2576, allocations: 0.7393 MB / 0.4926 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2576, allocations: 5.25 kB / 0.4926 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.2577, allocations: 15.84 kB / 0.4926 GB, free: 11.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.2577, allocations: 8.25 kB / 0.4926 GB, free: 11.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008822/0.2586, allocations: 0.5206 MB / 0.4931 GB, free: 11.51 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.001475/0.26, allocations: 1.841 MB / 0.4949 GB, free: 9.949 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008363/0.2609, allocations: 439.6 kB / 0.4954 GB, free: 9.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.2611, allocations: 177 kB / 0.4955 GB, free: 9.641 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02217/0.2833, allocations: 13.21 MB / 0.5084 GB, free: 3.141 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.2833, allocations: 42.5 kB / 0.5085 GB, free: 3.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.365e-06/0.2833, allocations: 0 / 0.5085 GB, free: 3.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001512/0.2848, allocations: 0.7832 MB / 0.5092 GB, free: 2.301 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.2848, allocations: 106.8 kB / 0.5093 GB, free: 2.172 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001962/0.285, allocations: 280.1 kB / 0.5096 GB, free: 1.891 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.2851, allocations: 29.7 kB / 0.5096 GB, free: 1.855 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.047e-05/0.2851, allocations: 208.4 kB / 0.5098 GB, free: 1.648 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.2852, allocations: 87.28 kB / 0.5099 GB, free: 1.562 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/0.2853, allocations: 69.64 kB / 0.51 GB, free: 1.488 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.499e-05/0.2853, allocations: 346.7 kB / 0.5103 GB, free: 1.141 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.2855, allocations: 140.4 kB / 0.5104 GB, free: 1.004 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.2857, allocations: 295.6 kB / 0.5107 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.2861, allocations: 362.6 kB / 0.5111 GB, free: 284 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2861, allocations: 0 / 0.5111 GB, free: 284 kB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005233/0.2866, allocations: 421 kB / 0.5115 GB, free: 15.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.2866, allocations: 8 kB / 0.5115 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2866, allocations: 4 kB / 0.5115 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.2867, allocations: 4 kB / 0.5115 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.2868, allocations: 84.19 kB / 0.5116 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.2868, allocations: 4 kB / 0.5116 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.287, allocations: 47.75 kB / 0.5116 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.287, allocations: 18.38 kB / 0.5116 GB, free: 15.7 MB / 426.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.0001428/0.2872, allocations: 165.6 kB / 0.5118 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.71e-05/0.2872, allocations: 31.81 kB / 0.5118 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001535/0.2888, allocations: 1.974 MB / 0.5137 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/0.2888, allocations: 35.94 kB / 0.5138 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2888, allocations: 0 / 0.5138 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2888, allocations: 4 kB / 0.5138 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000592/0.2894, allocations: 0.868 MB / 0.5146 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2894, allocations: 3.984 kB / 0.5146 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.2895, allocations: 71.88 kB / 0.5147 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2895, allocations: 0 / 0.5147 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.2896, allocations: 11.25 kB / 0.5147 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2896, allocations: 0 / 0.5147 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2896, allocations: 0 / 0.5147 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009258/0.2905, allocations: 1.122 MB / 0.5158 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.2906, allocations: 87.16 kB / 0.5159 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.936e-05/0.2906, allocations: 19.84 kB / 0.5159 GB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.2907, allocations: 31.91 kB / 0.5159 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.894e-05/0.2908, allocations: 35.94 kB / 0.516 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.2908, allocations: 8 kB / 0.516 GB, free: 11.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00021/0.291, allocations: 303.1 kB / 0.5163 GB, free: 10.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.291, allocations: 0 / 0.5163 GB, free: 10.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005302/0.2963, allocations: 1.01 MB / 0.5173 GB, free: 9.859 MB / 426.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.004415/0.3007, allocations: 1.311 MB / 0.5185 GB, free: 8.543 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007494/0.3015, allocations: 0.595 MB / 0.5191 GB, free: 7.949 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3015, allocations: 0 / 0.5191 GB, free: 7.949 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003662/0.3018, allocations: 413 kB / 0.5195 GB, free: 7.543 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006204/0.3025, allocations: 195.6 kB / 0.5197 GB, free: 7.359 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.304, allocations: 1.557 MB / 0.5212 GB, free: 5.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.3042, allocations: 362.2 kB / 0.5216 GB, free: 5.391 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.168e-05/0.3043, allocations: 48.48 kB / 0.5216 GB, free: 5.344 MB / 426.7 MB Notification: Performance of SimCode: time 1.163e-06/0.3043, allocations: 0 / 0.5216 GB, free: 5.344 MB / 426.7 MB Notification: Performance of Templates: time 0.02526/0.3296, allocations: 24.27 MB / 0.5453 GB, free: 13.09 MB / 458.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] 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.402122996747494]