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.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.001833/0.001833, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001633/0.001633, allocations: 208.2 kB / 23.73 MB, free: 4.387 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2242/0.2242, allocations: 44.94 MB / 358.8 MB, free: 6.164 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.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.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 68.19 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3269, allocations: 65.47 MB / 0.5575 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03203/0.3589, allocations: 25.9 MB / 0.5827 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01676/0.3757, allocations: 11.78 MB / 0.5943 GB, free: 1.699 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003367/0.376, allocations: 19.81 kB / 0.5943 GB, free: 1.68 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007646/0.3768, allocations: 218.5 kB / 0.5945 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009522/0.3863, allocations: 3.646 MB / 0.598 GB, free: 13.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006362/0.3927, allocations: 2.349 MB / 0.6003 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001255/0.3939, allocations: 0.9041 MB / 0.6012 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/0.3943, allocations: 220.9 kB / 0.6014 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007682/0.3951, allocations: 442.2 kB / 0.6018 GB, free: 9.91 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003835/0.3955, allocations: 258.9 kB / 0.6021 GB, free: 9.656 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.503e-05/0.3955, allocations: 32 kB / 0.6021 GB, free: 9.625 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01358/0.4091, allocations: 6.907 MB / 0.6089 GB, free: 2.711 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.4093, allocations: 103.6 kB / 0.609 GB, free: 2.609 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002972/0.4096, allocations: 183.2 kB / 0.6091 GB, free: 2.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4198, allocations: 4.42 MB / 0.6135 GB, free: 14 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4198, allocations: 4 kB / 0.6135 GB, free: 13.99 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4198, allocations: 0 / 0.6135 GB, free: 13.99 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.405e-06/0.4198, allocations: 0 / 0.6135 GB, free: 13.99 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.003222/0.423, allocations: 1.18 MB / 0.6146 GB, free: 12.78 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.4231, allocations: 12.03 kB / 0.6146 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001865/0.4249, allocations: 216.4 kB / 0.6148 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006666/0.4256, allocations: 317.2 kB / 0.6151 GB, free: 12.21 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.837e-05/0.4256, allocations: 21.03 kB / 0.6152 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.4257, allocations: 32.38 kB / 0.6152 GB, free: 12.16 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.4274, allocations: 0.7368 MB / 0.6159 GB, free: 11.35 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.4274, allocations: 3.984 kB / 0.6159 GB, free: 11.35 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.064e-05/0.4275, allocations: 12 kB / 0.6159 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4275, allocations: 8 kB / 0.6159 GB, free: 11.33 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.4291, allocations: 0.5215 MB / 0.6164 GB, free: 10.8 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.002971/0.4321, allocations: 1.856 MB / 0.6183 GB, free: 8.879 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.4337, allocations: 446.1 kB / 0.6187 GB, free: 8.434 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/0.4342, allocations: 176.7 kB / 0.6188 GB, free: 8.258 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04933/0.4835, allocations: 13.2 MB / 0.6317 GB, free: 11.04 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.4836, allocations: 42.5 kB / 0.6318 GB, free: 10.98 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.014e-06/0.4836, allocations: 0 / 0.6318 GB, free: 10.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003031/0.4866, allocations: 0.782 MB / 0.6325 GB, free: 10.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.4868, allocations: 110.8 kB / 0.6326 GB, free: 10.06 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003399/0.4871, allocations: 276.1 kB / 0.6329 GB, free: 9.785 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.4871, allocations: 33.7 kB / 0.6329 GB, free: 9.746 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002418/0.4874, allocations: 204.4 kB / 0.6331 GB, free: 9.543 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.4875, allocations: 91.22 kB / 0.6332 GB, free: 9.453 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.4877, allocations: 69.69 kB / 0.6333 GB, free: 9.379 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000226/0.4879, allocations: 346.7 kB / 0.6336 GB, free: 9.031 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/0.4883, allocations: 135.9 kB / 0.6338 GB, free: 8.898 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005183/0.4888, allocations: 287.3 kB / 0.634 GB, free: 8.566 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008496/0.4897, allocations: 361.9 kB / 0.6344 GB, free: 8.18 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4897, allocations: 0 / 0.6344 GB, free: 8.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001017/0.4907, allocations: 413 kB / 0.6348 GB, free: 7.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.4907, allocations: 8 kB / 0.6348 GB, free: 7.762 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4907, allocations: 0 / 0.6348 GB, free: 7.762 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.4907, allocations: 4 kB / 0.6348 GB, free: 7.758 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.4911, allocations: 88.19 kB / 0.6349 GB, free: 7.672 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.4911, allocations: 11.88 kB / 0.6349 GB, free: 7.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.4914, allocations: 51.75 kB / 0.6349 GB, free: 7.609 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.4914, allocations: 12 kB / 0.6349 GB, free: 7.598 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.0001941/0.4916, allocations: 165.7 kB / 0.6351 GB, free: 7.426 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.4917, allocations: 31.81 kB / 0.6351 GB, free: 7.395 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002741/0.4945, allocations: 1.979 MB / 0.6371 GB, free: 5.414 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-05/0.4945, allocations: 35.95 kB / 0.6371 GB, free: 5.379 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4945, allocations: 3.938 kB / 0.6371 GB, free: 5.375 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4945, allocations: 3.984 kB / 0.6371 GB, free: 5.371 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.4955, allocations: 0.8594 MB / 0.6379 GB, free: 4.477 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.4955, allocations: 4 kB / 0.6379 GB, free: 4.473 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003784/0.4959, allocations: 71.92 kB / 0.638 GB, free: 4.402 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.4959, allocations: 3.984 kB / 0.638 GB, free: 4.398 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.4959, allocations: 8 kB / 0.638 GB, free: 4.391 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.4959, allocations: 4 kB / 0.638 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4959, allocations: 0 / 0.638 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.4977, allocations: 1.116 MB / 0.6391 GB, free: 3.254 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.734e-05/0.4978, allocations: 83.16 kB / 0.6392 GB, free: 3.172 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.4978, allocations: 23.84 kB / 0.6392 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.4981, allocations: 27.97 kB / 0.6392 GB, free: 3.121 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.4982, allocations: 39.88 kB / 0.6393 GB, free: 3.082 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.4982, allocations: 8 kB / 0.6393 GB, free: 3.074 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003468/0.4986, allocations: 299.1 kB / 0.6396 GB, free: 2.781 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4986, allocations: 0 / 0.6396 GB, free: 2.781 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002688/0.5012, allocations: 1.017 MB / 0.6406 GB, free: 1.762 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.003858/0.5051, allocations: 1.183 MB / 0.6417 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.5064, allocations: 0.5909 MB / 0.6423 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.5064, allocations: 0 / 0.6423 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007376/0.5071, allocations: 417 kB / 0.6427 GB, free: 15.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.5082, allocations: 192.4 kB / 0.6429 GB, free: 15.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.5109, allocations: 1.539 MB / 0.6444 GB, free: 13.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.5113, allocations: 370.1 kB / 0.6447 GB, free: 13.43 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004486/0.5117, allocations: 273.9 kB / 0.645 GB, free: 13.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.5118, allocations: 47.36 kB / 0.645 GB, free: 13.11 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5118, allocations: 0 / 0.645 GB, free: 13.11 MB / 494.1 MB Notification: Performance of Templates: time 0.05803/0.5699, allocations: 40.03 MB / 0.6841 GB, free: 5.262 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.840331317856908]