Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 110 kB / 21.23 MB, free: 0.6602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002159/0.002159, allocations: 186.4 kB / 24.51 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2316/0.2316, allocations: 44.91 MB / 353.5 MB, free: 11.82 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 59.91 kB / 497.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3009, allocations: 64.3 MB / 0.5488 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03515/0.336, allocations: 28.52 MB / 0.5767 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01857/0.3546, allocations: 13.38 MB / 0.5897 GB, free: 5.414 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005026/0.3551, allocations: 15.88 kB / 0.5898 GB, free: 5.398 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009159/0.356, allocations: 242.4 kB / 0.59 GB, free: 5.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01138/0.3674, allocations: 3.693 MB / 0.5936 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006643/0.374, allocations: 2.375 MB / 0.5959 GB, free: 15.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.3754, allocations: 0.9119 MB / 0.5968 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004207/0.3758, allocations: 216.9 kB / 0.597 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008856/0.3767, allocations: 454.2 kB / 0.5974 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/0.3771, allocations: 274.9 kB / 0.5977 GB, free: 13.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.138e-05/0.3772, allocations: 36 kB / 0.5977 GB, free: 13.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01457/0.3917, allocations: 7.254 MB / 0.6048 GB, free: 5.953 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.392, allocations: 99.67 kB / 0.6049 GB, free: 5.855 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.3923, allocations: 226.9 kB / 0.6051 GB, free: 5.633 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4025, allocations: 4.42 MB / 0.6094 GB, free: 1.203 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.4025, allocations: 4 kB / 0.6095 GB, free: 1.199 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4025, allocations: 0 / 0.6095 GB, free: 1.199 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.4025, allocations: 0 / 0.6095 GB, free: 1.199 MB / 446.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.003198/0.4057, allocations: 1.192 MB / 0.6106 GB, free: 15.97 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.4057, allocations: 12.92 kB / 0.6106 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/0.4075, allocations: 208.5 kB / 0.6108 GB, free: 15.76 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006141/0.4081, allocations: 317.2 kB / 0.6111 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.845e-05/0.4082, allocations: 29.03 kB / 0.6112 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/0.4082, allocations: 28.31 kB / 0.6112 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.4099, allocations: 0.5785 MB / 0.6117 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.4099, allocations: 7.938 kB / 0.6118 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.262e-05/0.4099, allocations: 12 kB / 0.6118 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.4099, allocations: 11.98 kB / 0.6118 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.4117, allocations: 0.5254 MB / 0.6123 GB, free: 14.19 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.003409/0.4151, allocations: 2.519 MB / 0.6148 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/0.4167, allocations: 449.8 kB / 0.6152 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004758/0.4172, allocations: 172.7 kB / 0.6153 GB, free: 10.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04821/0.4654, allocations: 12.66 MB / 0.6277 GB, free: 14.16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.4655, allocations: 42.5 kB / 0.6278 GB, free: 14.11 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.084e-06/0.4655, allocations: 4 kB / 0.6278 GB, free: 14.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003015/0.4685, allocations: 0.7935 MB / 0.6285 GB, free: 13.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.4686, allocations: 106.8 kB / 0.6286 GB, free: 13.17 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.469, allocations: 308.4 kB / 0.6289 GB, free: 12.86 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.469, allocations: 33.7 kB / 0.629 GB, free: 12.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.4692, allocations: 208.6 kB / 0.6292 GB, free: 12.62 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.557e-05/0.4693, allocations: 91.22 kB / 0.6292 GB, free: 12.53 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.4694, allocations: 65.69 kB / 0.6293 GB, free: 12.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.4696, allocations: 346.8 kB / 0.6296 GB, free: 12.11 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004379/0.4701, allocations: 135.9 kB / 0.6298 GB, free: 11.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/0.4706, allocations: 234.8 kB / 0.63 GB, free: 11.71 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008685/0.4714, allocations: 366 kB / 0.6303 GB, free: 11.32 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.4715, allocations: 4 kB / 0.6303 GB, free: 11.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00109/0.4725, allocations: 432.9 kB / 0.6308 GB, free: 10.88 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.4726, allocations: 4 kB / 0.6308 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4726, allocations: 4.312 kB / 0.6308 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.4726, allocations: 11.94 kB / 0.6308 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.473, allocations: 75.89 kB / 0.6309 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.473, allocations: 7.984 kB / 0.6309 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000286/0.4732, allocations: 43.77 kB / 0.6309 GB, free: 10.74 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.4733, allocations: 23.92 kB / 0.6309 GB, free: 10.71 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.0002327/0.4735, allocations: 161.7 kB / 0.6311 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.038e-05/0.4736, allocations: 35.77 kB / 0.6311 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002837/0.4764, allocations: 1.972 MB / 0.633 GB, free: 8.523 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.374e-05/0.4765, allocations: 31.89 kB / 0.6331 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4765, allocations: 0 / 0.6331 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4765, allocations: 3.984 kB / 0.6331 GB, free: 8.488 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.4777, allocations: 1.015 MB / 0.6341 GB, free: 7.426 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.4777, allocations: 0 / 0.6341 GB, free: 7.426 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003696/0.478, allocations: 79.86 kB / 0.6341 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.478, allocations: 0 / 0.6341 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.4781, allocations: 8 kB / 0.6341 GB, free: 7.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.4781, allocations: 3.938 kB / 0.6341 GB, free: 7.336 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.4781, allocations: 0 / 0.6341 GB, free: 7.336 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.4798, allocations: 1.105 MB / 0.6352 GB, free: 6.215 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.4799, allocations: 99.11 kB / 0.6353 GB, free: 6.117 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.209e-05/0.48, allocations: 23.78 kB / 0.6353 GB, free: 6.094 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002759/0.4802, allocations: 31.91 kB / 0.6354 GB, free: 6.062 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.4803, allocations: 35.88 kB / 0.6354 GB, free: 6.027 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.4804, allocations: 16 kB / 0.6354 GB, free: 6.012 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003982/0.4808, allocations: 331.1 kB / 0.6357 GB, free: 5.691 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4808, allocations: 0 / 0.6357 GB, free: 5.691 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002677/0.4834, allocations: 0.9981 MB / 0.6367 GB, free: 4.691 MB / 478.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.004136/0.4876, allocations: 1.17 MB / 0.6379 GB, free: 3.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.489, allocations: 0.5949 MB / 0.6384 GB, free: 2.926 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.489, allocations: 4 kB / 0.6384 GB, free: 2.922 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.4897, allocations: 414.2 kB / 0.6388 GB, free: 2.52 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.4909, allocations: 227.3 kB / 0.6391 GB, free: 2.301 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.4932, allocations: 1.559 MB / 0.6406 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006354/0.4938, allocations: 0.9638 MB / 0.6415 GB, free: 15.72 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000467/0.4943, allocations: 274.1 kB / 0.6418 GB, free: 15.45 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.4944, allocations: 43.38 kB / 0.6418 GB, free: 15.41 MB / 494.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4944, allocations: 0 / 0.6418 GB, free: 15.41 MB / 494.1 MB Notification: Performance of Templates: time 0.06351/0.5579, allocations: 40.13 MB / 0.681 GB, free: 7.363 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 7.980379202403128]