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.001349/0.001349, allocations: 83.08 kB / 20.68 MB, free: 1.035 MB / 14.72 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.00149/0.00149, allocations: 157.5 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.473/1.473, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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.21/0.21, allocations: 34.26 MB / 294.8 MB, free: 14.54 MB / 286.1 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 1.413e-06/1.413e-06, allocations: 0 / 442.7 MB, free: 5.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.411e-05/3.553e-05, allocations: 4.812 kB / 442.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2375/0.2375, allocations: 25.76 MB / 468.4 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0154/0.2529, allocations: 11.78 MB / 480.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004823/0.2534, allocations: 14.66 kB / 480.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008553/0.2542, allocations: 221 kB / 480.4 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01282/0.2671, allocations: 3.694 MB / 484.1 MB, free: 9.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007927/0.275, allocations: 2.392 MB / 486.5 MB, free: 7.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.2765, allocations: 0.9058 MB / 487.4 MB, free: 7.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004269/0.2769, allocations: 222.7 kB / 487.6 MB, free: 7.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.278, allocations: 0.5363 MB / 488.2 MB, free: 6.859 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004113/0.2784, allocations: 238.4 kB / 488.4 MB, free: 6.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.321e-05/0.2784, allocations: 33.31 kB / 488.4 MB, free: 6.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01624/0.2947, allocations: 6.919 MB / 495.4 MB, free: 1.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002678/0.2949, allocations: 103.6 kB / 495.5 MB, free: 1.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004625/0.2954, allocations: 156.7 kB / 495.6 MB, free: 1.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01571/0.3111, allocations: 5.547 MB / 0.4894 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3111, allocations: 0 / 0.4894 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3111, allocations: 0 / 0.4894 GB, free: 11.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.3111, allocations: 4 kB / 0.4894 GB, free: 11.73 MB / 398.1 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.004021/0.3152, allocations: 1.184 MB / 0.4906 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.442e-05/0.3152, allocations: 8.031 kB / 0.4906 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/0.3175, allocations: 216.5 kB / 0.4908 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007953/0.3183, allocations: 312.5 kB / 0.4911 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.3183, allocations: 25.03 kB / 0.4911 GB, free: 9.938 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/0.3184, allocations: 28.38 kB / 0.4911 GB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.3202, allocations: 0.7332 MB / 0.4918 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3202, allocations: 384 / 0.4918 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.234e-05/0.3202, allocations: 19.92 kB / 0.4919 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.3203, allocations: 8 kB / 0.4919 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.322, allocations: 0.5253 MB / 0.4924 GB, free: 8.551 MB / 398.1 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.003033/0.325, allocations: 1.837 MB / 0.4942 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.3267, allocations: 450.1 kB / 0.4946 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004713/0.3272, allocations: 172.7 kB / 0.4948 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05138/0.3786, allocations: 13.2 MB / 0.5077 GB, free: 8.812 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.3786, allocations: 34.56 kB / 0.5077 GB, free: 8.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.494e-06/0.3786, allocations: 0 / 0.5077 GB, free: 8.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003434/0.382, allocations: 0.7916 MB / 0.5085 GB, free: 7.973 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.3822, allocations: 110.8 kB / 0.5086 GB, free: 7.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/0.3826, allocations: 280.1 kB / 0.5088 GB, free: 7.559 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.19e-05/0.3827, allocations: 33.7 kB / 0.5089 GB, free: 7.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/0.3829, allocations: 204.4 kB / 0.5091 GB, free: 7.316 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.383, allocations: 95.19 kB / 0.5092 GB, free: 7.223 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/0.3832, allocations: 73.64 kB / 0.5092 GB, free: 7.145 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.3834, allocations: 338.8 kB / 0.5096 GB, free: 6.805 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004486/0.3838, allocations: 135.9 kB / 0.5097 GB, free: 6.672 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006763/0.3845, allocations: 295.7 kB / 0.51 GB, free: 6.332 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009829/0.3855, allocations: 365.9 kB / 0.5103 GB, free: 5.941 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3855, allocations: 0 / 0.5103 GB, free: 5.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001186/0.3867, allocations: 421 kB / 0.5107 GB, free: 5.523 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3867, allocations: 7.938 kB / 0.5107 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.3867, allocations: 4 kB / 0.5107 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.029e-05/0.3867, allocations: 6.438 kB / 0.5107 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003707/0.3871, allocations: 79.89 kB / 0.5108 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.3871, allocations: 7.984 kB / 0.5108 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003131/0.3874, allocations: 39.77 kB / 0.5109 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-05/0.3875, allocations: 19.98 kB / 0.5109 GB, free: 5.363 MB / 414.1 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.0002616/0.3877, allocations: 165.6 kB / 0.511 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.3879, allocations: 31.81 kB / 0.5111 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003278/0.3911, allocations: 1.982 MB / 0.513 GB, free: 3.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-05/0.3912, allocations: 35.95 kB / 0.513 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.3912, allocations: 0 / 0.513 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3912, allocations: 0.875 kB / 0.513 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.3925, allocations: 0.868 MB / 0.5139 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.3926, allocations: 0 / 0.5139 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.3929, allocations: 67.94 kB / 0.5139 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.3929, allocations: 3.938 kB / 0.5139 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.3929, allocations: 8 kB / 0.514 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3929, allocations: 4.875 kB / 0.514 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3929, allocations: 4 kB / 0.514 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.3948, allocations: 1.115 MB / 0.5151 GB, free: 1.016 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.395, allocations: 87.16 kB / 0.5151 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.498e-05/0.3951, allocations: 19.84 kB / 0.5152 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002905/0.3954, allocations: 27.97 kB / 0.5152 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.3955, allocations: 31.94 kB / 0.5152 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.3955, allocations: 19.61 kB / 0.5152 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004215/0.3959, allocations: 303.1 kB / 0.5155 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3959, allocations: 0 / 0.5155 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003551/0.3995, allocations: 1.014 MB / 0.5165 GB, free: 15.52 MB / 430.1 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.006681/0.4062, allocations: 1.304 MB / 0.5178 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.4077, allocations: 0.5986 MB / 0.5184 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4078, allocations: 0 / 0.5184 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007919/0.4085, allocations: 413.1 kB / 0.5188 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.4098, allocations: 194 kB / 0.5189 GB, free: 13.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.4128, allocations: 1.531 MB / 0.5204 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.4133, allocations: 370.2 kB / 0.5208 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005455/0.4138, allocations: 271.7 kB / 0.5211 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.414, allocations: 40.5 kB / 0.5211 GB, free: 10.77 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/0.414, allocations: 0 / 0.5211 GB, free: 10.77 MB / 430.1 MB Notification: Performance of Templates: time 0.06355/0.4775, allocations: 39.22 MB / 0.5594 GB, free: 3.684 MB / 462.1 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.611584901809692]