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.001408/0.001408, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001524/0.001524, allocations: 202.2 kB / 23.72 MB, free: 4.391 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.433/1.433, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.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.2261/0.2261, allocations: 46.96 MB / 360.8 MB, free: 3.93 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 0.002457/0.002457, allocations: 79.88 kB / 0.4966 GB, free: 7.035 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3292, allocations: 66.09 MB / 0.5612 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03402/0.3633, allocations: 25.9 MB / 0.5865 GB, free: 9.949 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01768/0.3809, allocations: 11.77 MB / 0.598 GB, free: 14.14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003539/0.3813, allocations: 15.88 kB / 0.598 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007564/0.382, allocations: 226.5 kB / 0.5982 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0097/0.3917, allocations: 3.642 MB / 0.6018 GB, free: 10.26 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006399/0.3981, allocations: 2.354 MB / 0.6041 GB, free: 7.91 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.3995, allocations: 0.908 MB / 0.6049 GB, free: 7 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003911/0.3998, allocations: 216.9 kB / 0.6051 GB, free: 6.781 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007676/0.4006, allocations: 434.3 kB / 0.6056 GB, free: 6.355 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003757/0.401, allocations: 266.8 kB / 0.6058 GB, free: 6.094 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.634e-05/0.401, allocations: 32 kB / 0.6058 GB, free: 6.062 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01373/0.4148, allocations: 6.911 MB / 0.6126 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.4149, allocations: 95.67 kB / 0.6127 GB, free: 15.05 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003017/0.4152, allocations: 183.2 kB / 0.6129 GB, free: 14.87 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009002/0.4242, allocations: 4.427 MB / 0.6172 GB, free: 10.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.4243, allocations: 0 / 0.6172 GB, free: 10.43 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4243, allocations: 0 / 0.6172 GB, free: 10.43 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.4243, allocations: 0 / 0.6172 GB, free: 10.43 MB / 462.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.003811/0.4281, allocations: 1.184 MB / 0.6183 GB, free: 9.211 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.4281, allocations: 11.97 kB / 0.6184 GB, free: 9.199 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.4299, allocations: 216.5 kB / 0.6186 GB, free: 8.988 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006036/0.4305, allocations: 313.2 kB / 0.6189 GB, free: 8.652 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.4305, allocations: 29.03 kB / 0.6189 GB, free: 8.625 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/0.4306, allocations: 32.38 kB / 0.6189 GB, free: 8.594 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.4322, allocations: 0.7291 MB / 0.6196 GB, free: 7.789 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.4323, allocations: 4 kB / 0.6196 GB, free: 7.785 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.355e-05/0.4323, allocations: 16 kB / 0.6196 GB, free: 7.77 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.4323, allocations: 8 kB / 0.6197 GB, free: 7.762 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.4339, allocations: 0.5253 MB / 0.6202 GB, free: 7.234 MB / 462.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.002918/0.4368, allocations: 1.856 MB / 0.622 GB, free: 5.309 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.4384, allocations: 446.1 kB / 0.6224 GB, free: 4.863 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/0.4388, allocations: 168.7 kB / 0.6226 GB, free: 4.695 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04846/0.4873, allocations: 13.21 MB / 0.6355 GB, free: 7.469 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.4873, allocations: 38.56 kB / 0.6355 GB, free: 7.422 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.315e-06/0.4873, allocations: 0 / 0.6355 GB, free: 7.422 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002845/0.4902, allocations: 0.7897 MB / 0.6363 GB, free: 6.625 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/0.4903, allocations: 114.8 kB / 0.6364 GB, free: 6.488 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.4906, allocations: 268.2 kB / 0.6366 GB, free: 6.219 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.4906, allocations: 37.64 kB / 0.6367 GB, free: 6.176 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.4908, allocations: 212.3 kB / 0.6369 GB, free: 5.965 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.384e-05/0.4909, allocations: 95.2 kB / 0.637 GB, free: 5.871 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.491, allocations: 69.69 kB / 0.637 GB, free: 5.797 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.4912, allocations: 338.8 kB / 0.6374 GB, free: 5.457 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004022/0.4916, allocations: 139.9 kB / 0.6375 GB, free: 5.32 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005013/0.4921, allocations: 286.8 kB / 0.6378 GB, free: 4.992 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000836/0.4929, allocations: 361.1 kB / 0.6381 GB, free: 4.605 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4929, allocations: 0 / 0.6381 GB, free: 4.605 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001012/0.4939, allocations: 426.1 kB / 0.6385 GB, free: 4.184 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.494, allocations: 12.03 kB / 0.6385 GB, free: 4.172 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.494, allocations: 0 / 0.6385 GB, free: 4.172 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.494, allocations: 4 kB / 0.6385 GB, free: 4.168 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/0.4943, allocations: 79.89 kB / 0.6386 GB, free: 4.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.4943, allocations: 11.92 kB / 0.6386 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.4946, allocations: 35.83 kB / 0.6386 GB, free: 4.043 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.4946, allocations: 19.98 kB / 0.6387 GB, free: 4.023 MB / 478.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.0001981/0.4948, allocations: 161.8 kB / 0.6388 GB, free: 3.855 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.903e-05/0.4949, allocations: 31.81 kB / 0.6389 GB, free: 3.824 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/0.4977, allocations: 1.978 MB / 0.6408 GB, free: 1.836 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.782e-05/0.4978, allocations: 27.95 kB / 0.6408 GB, free: 1.809 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.4978, allocations: 7.875 kB / 0.6408 GB, free: 1.801 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4978, allocations: 0 / 0.6408 GB, free: 1.801 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.499, allocations: 0.8672 MB / 0.6417 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.499, allocations: 0 / 0.6417 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003163/0.4994, allocations: 75.88 kB / 0.6417 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.4994, allocations: 4 kB / 0.6417 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.4994, allocations: 8 kB / 0.6417 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.4994, allocations: 4 kB / 0.6418 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4994, allocations: 0 / 0.6418 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.501, allocations: 1.116 MB / 0.6428 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.5012, allocations: 83.16 kB / 0.6429 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.568e-05/0.5012, allocations: 23.84 kB / 0.6429 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.5015, allocations: 23.97 kB / 0.643 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.5016, allocations: 43.81 kB / 0.643 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.5016, allocations: 11.98 kB / 0.643 GB, free: 15.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003679/0.502, allocations: 299.1 kB / 0.6433 GB, free: 15.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.502, allocations: 0 / 0.6433 GB, free: 15.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003223/0.5052, allocations: 1.018 MB / 0.6443 GB, free: 14.18 MB / 494.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.004225/0.5094, allocations: 1.161 MB / 0.6454 GB, free: 13.01 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.5108, allocations: 0.5943 MB / 0.646 GB, free: 12.42 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5108, allocations: 4 kB / 0.646 GB, free: 12.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006617/0.5114, allocations: 417.7 kB / 0.6464 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.5125, allocations: 196.6 kB / 0.6466 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.5148, allocations: 1.548 MB / 0.6481 GB, free: 10.24 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.5152, allocations: 386 kB / 0.6485 GB, free: 9.832 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004618/0.5157, allocations: 262.8 kB / 0.6487 GB, free: 9.574 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.5158, allocations: 39.44 kB / 0.6488 GB, free: 9.535 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5158, allocations: 0 / 0.6488 GB, free: 9.535 MB / 494.1 MB Notification: Performance of Templates: time 0.05861/0.5744, allocations: 40.02 MB / 0.6879 GB, free: 1.652 MB / 0.5137 GB " [Timeout remaining time 659] 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.865336999297142]