Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001995/0.001995, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.228/0.228, allocations: 46.97 MB / 361.6 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002402/0.002402, allocations: 67.91 kB / 0.4973 GB, free: 7.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.3952, allocations: 66.03 MB / 0.5618 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03625/0.4314, allocations: 25.9 MB / 0.5871 GB, free: 10.15 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01876/0.4502, allocations: 11.75 MB / 0.5986 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005495/0.4507, allocations: 11.88 kB / 0.5986 GB, free: 14.35 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009372/0.4517, allocations: 230.5 kB / 0.5988 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01311/0.4648, allocations: 3.658 MB / 0.6024 GB, free: 10.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008324/0.4731, allocations: 2.356 MB / 0.6047 GB, free: 8.109 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.4749, allocations: 0.8964 MB / 0.6056 GB, free: 7.211 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005108/0.4754, allocations: 212.9 kB / 0.6058 GB, free: 6.996 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001179/0.4766, allocations: 438.2 kB / 0.6062 GB, free: 6.566 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.4771, allocations: 270.8 kB / 0.6065 GB, free: 6.301 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.019e-05/0.4771, allocations: 36 kB / 0.6065 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01552/0.4927, allocations: 6.895 MB / 0.6132 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.4929, allocations: 107.6 kB / 0.6133 GB, free: 15.26 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003476/0.4933, allocations: 187.2 kB / 0.6135 GB, free: 15.07 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01224/0.5055, allocations: 4.42 MB / 0.6178 GB, free: 10.64 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.5055, allocations: 0 / 0.6178 GB, free: 10.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5055, allocations: 0 / 0.6178 GB, free: 10.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.5055, allocations: 0 / 0.6178 GB, free: 10.64 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.004052/0.5096, allocations: 1.18 MB / 0.619 GB, free: 9.426 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.5096, allocations: 8.031 kB / 0.619 GB, free: 9.418 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.5114, allocations: 216.5 kB / 0.6192 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007721/0.5122, allocations: 321.1 kB / 0.6195 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/0.5123, allocations: 29.03 kB / 0.6195 GB, free: 8.836 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.861e-05/0.5123, allocations: 28.36 kB / 0.6195 GB, free: 8.809 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.5141, allocations: 0.7291 MB / 0.6203 GB, free: 8.004 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.5141, allocations: 3.938 kB / 0.6203 GB, free: 8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.542e-05/0.5141, allocations: 16 kB / 0.6203 GB, free: 7.984 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.5141, allocations: 8 kB / 0.6203 GB, free: 7.977 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.5157, allocations: 0.5215 MB / 0.6208 GB, free: 7.453 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.00325/0.519, allocations: 1.868 MB / 0.6226 GB, free: 5.516 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/0.5206, allocations: 438.2 kB / 0.623 GB, free: 5.078 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004511/0.5211, allocations: 176.7 kB / 0.6232 GB, free: 4.902 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0489/0.57, allocations: 13.2 MB / 0.6361 GB, free: 7.684 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.5701, allocations: 42.44 kB / 0.6361 GB, free: 7.633 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.354e-06/0.5701, allocations: 0 / 0.6361 GB, free: 7.633 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003116/0.5732, allocations: 0.7859 MB / 0.6369 GB, free: 6.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.5733, allocations: 110.8 kB / 0.637 GB, free: 6.707 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004004/0.5737, allocations: 272.2 kB / 0.6373 GB, free: 6.434 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.5737, allocations: 29.7 kB / 0.6373 GB, free: 6.398 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.5739, allocations: 220.3 kB / 0.6375 GB, free: 6.18 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.574, allocations: 87.22 kB / 0.6376 GB, free: 6.094 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.5742, allocations: 69.69 kB / 0.6377 GB, free: 6.02 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.5744, allocations: 338.8 kB / 0.638 GB, free: 5.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.5748, allocations: 143.9 kB / 0.6381 GB, free: 5.539 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/0.5753, allocations: 283.3 kB / 0.6384 GB, free: 5.211 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008894/0.5762, allocations: 354 kB / 0.6387 GB, free: 4.832 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.5762, allocations: 8 kB / 0.6387 GB, free: 4.824 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001098/0.5773, allocations: 421.2 kB / 0.6391 GB, free: 4.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.5774, allocations: 4 kB / 0.6391 GB, free: 4.402 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.5774, allocations: 4 kB / 0.6391 GB, free: 4.398 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.5774, allocations: 4 kB / 0.6391 GB, free: 4.395 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/0.5778, allocations: 87.88 kB / 0.6392 GB, free: 4.309 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.105e-05/0.5778, allocations: 7.938 kB / 0.6392 GB, free: 4.301 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/0.5781, allocations: 35.83 kB / 0.6393 GB, free: 4.266 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.5782, allocations: 28.09 kB / 0.6393 GB, free: 4.238 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.0003204/0.5785, allocations: 161.7 kB / 0.6394 GB, free: 4.07 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.5787, allocations: 35.8 kB / 0.6395 GB, free: 4.035 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.5819, allocations: 1.971 MB / 0.6414 GB, free: 2.062 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.904e-05/0.5819, allocations: 31.94 kB / 0.6414 GB, free: 2.031 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.582, allocations: 3.938 kB / 0.6414 GB, free: 2.027 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.582, allocations: 7.984 kB / 0.6414 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.5831, allocations: 0.8633 MB / 0.6423 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.5831, allocations: 7.938 kB / 0.6423 GB, free: 1.113 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.5835, allocations: 71.88 kB / 0.6424 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/0.5835, allocations: 4 kB / 0.6424 GB, free: 1.039 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.5835, allocations: 4 kB / 0.6424 GB, free: 1.035 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.774e-06/0.5835, allocations: 7.984 kB / 0.6424 GB, free: 1.027 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.5835, allocations: 3.938 kB / 0.6424 GB, free: 1.023 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.5853, allocations: 1.116 MB / 0.6435 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.5854, allocations: 87.14 kB / 0.6436 GB, free: 15.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.856e-05/0.5855, allocations: 19.84 kB / 0.6436 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.5858, allocations: 23.98 kB / 0.6436 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.5859, allocations: 39.88 kB / 0.6436 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.5859, allocations: 15.98 kB / 0.6437 GB, free: 15.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003885/0.5863, allocations: 299.1 kB / 0.6439 GB, free: 15.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5863, allocations: 0 / 0.6439 GB, free: 15.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002838/0.5891, allocations: 1.014 MB / 0.6449 GB, free: 14.39 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.005192/0.5943, allocations: 1.177 MB / 0.6461 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.5959, allocations: 0.5904 MB / 0.6467 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.5959, allocations: 0.625 kB / 0.6467 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007822/0.5967, allocations: 421 kB / 0.6471 GB, free: 12.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.5979, allocations: 196.6 kB / 0.6472 GB, free: 12.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.6007, allocations: 1.583 MB / 0.6488 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/0.6012, allocations: 370.1 kB / 0.6491 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.6013, allocations: 43.44 kB / 0.6492 GB, free: 9.973 MB / 494.1 MB Notification: Performance of SimCode: time 1.332e-06/0.6013, allocations: 0 / 0.6492 GB, free: 9.973 MB / 494.1 MB Notification: Performance of Templates: time 0.04261/0.6439, allocations: 24.13 MB / 0.6728 GB, free: 1.848 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 10.784499065950513]