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.001619/0.001619, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001809/0.001809, allocations: 213.1 kB / 24.48 MB, free: 3.957 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.534/1.534, allocations: 230.6 MB / 258.2 MB, free: 7.777 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.2456/0.2456, allocations: 46.96 MB / 361.6 MB, free: 4.027 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.001999/0.001999, allocations: 63.91 kB / 0.4973 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3907, allocations: 66.03 MB / 0.5618 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03345/0.4241, allocations: 25.9 MB / 0.5871 GB, free: 10.14 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0178/0.4419, allocations: 11.77 MB / 0.5986 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005008/0.4424, allocations: 15.88 kB / 0.5986 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008012/0.4432, allocations: 226.5 kB / 0.5988 GB, free: 14.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01097/0.4542, allocations: 3.646 MB / 0.6024 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007454/0.4616, allocations: 2.363 MB / 0.6047 GB, free: 8.094 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.4631, allocations: 0.9003 MB / 0.6056 GB, free: 7.191 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004188/0.4636, allocations: 220.7 kB / 0.6058 GB, free: 6.973 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008812/0.4644, allocations: 446.2 kB / 0.6062 GB, free: 6.535 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004128/0.4649, allocations: 278.8 kB / 0.6065 GB, free: 6.262 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.4649, allocations: 40 kB / 0.6065 GB, free: 6.223 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01539/0.4803, allocations: 7.18 MB / 0.6135 GB, free: 15.04 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002399/0.4805, allocations: 99.66 kB / 0.6136 GB, free: 14.94 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003767/0.4809, allocations: 195.2 kB / 0.6138 GB, free: 14.75 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.4933, allocations: 4.42 MB / 0.6181 GB, free: 10.31 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.4933, allocations: 0 / 0.6181 GB, free: 10.31 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4933, allocations: 0 / 0.6181 GB, free: 10.31 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.4934, allocations: 0 / 0.6181 GB, free: 10.31 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.00371/0.4971, allocations: 1.184 MB / 0.6193 GB, free: 9.094 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.4971, allocations: 12.03 kB / 0.6193 GB, free: 9.082 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001762/0.4989, allocations: 216.4 kB / 0.6195 GB, free: 8.871 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007111/0.4996, allocations: 317.2 kB / 0.6198 GB, free: 8.531 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.4996, allocations: 25.03 kB / 0.6198 GB, free: 8.508 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.4997, allocations: 32.38 kB / 0.6199 GB, free: 8.477 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.5014, allocations: 0.733 MB / 0.6206 GB, free: 7.668 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.5014, allocations: 3.938 kB / 0.6206 GB, free: 7.664 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.777e-05/0.5014, allocations: 16 kB / 0.6206 GB, free: 7.648 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.5014, allocations: 12 kB / 0.6206 GB, free: 7.637 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.5031, allocations: 0.5176 MB / 0.6211 GB, free: 7.117 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.002954/0.506, allocations: 1.86 MB / 0.6229 GB, free: 5.188 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.5076, allocations: 438.2 kB / 0.6233 GB, free: 4.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004331/0.508, allocations: 176.7 kB / 0.6235 GB, free: 4.574 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04572/0.5537, allocations: 13.2 MB / 0.6364 GB, free: 7.355 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/0.5538, allocations: 38.56 kB / 0.6364 GB, free: 7.309 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/0.5538, allocations: 3.938 kB / 0.6364 GB, free: 7.305 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002842/0.5566, allocations: 0.7859 MB / 0.6372 GB, free: 6.512 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.229e-05/0.5567, allocations: 114.8 kB / 0.6373 GB, free: 6.375 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.557, allocations: 272.1 kB / 0.6376 GB, free: 6.102 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.5571, allocations: 33.7 kB / 0.6376 GB, free: 6.062 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.5572, allocations: 212.4 kB / 0.6378 GB, free: 5.852 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.589e-05/0.5573, allocations: 83.23 kB / 0.6379 GB, free: 5.77 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.5574, allocations: 69.69 kB / 0.638 GB, free: 5.695 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.5576, allocations: 342.8 kB / 0.6383 GB, free: 5.352 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.558, allocations: 139.9 kB / 0.6384 GB, free: 5.215 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/0.5585, allocations: 283.3 kB / 0.6387 GB, free: 4.887 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007988/0.5593, allocations: 361.9 kB / 0.639 GB, free: 4.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5593, allocations: 4 kB / 0.639 GB, free: 4.496 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009779/0.5603, allocations: 417.1 kB / 0.6394 GB, free: 4.082 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.5603, allocations: 10.66 kB / 0.6394 GB, free: 4.074 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5603, allocations: 0 / 0.6394 GB, free: 4.074 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.5603, allocations: 8 kB / 0.6395 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.5606, allocations: 79.88 kB / 0.6395 GB, free: 3.988 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.5606, allocations: 7.938 kB / 0.6395 GB, free: 3.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.5609, allocations: 47.69 kB / 0.6396 GB, free: 3.934 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.5609, allocations: 20.16 kB / 0.6396 GB, free: 3.914 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.0002043/0.5612, allocations: 161.8 kB / 0.6398 GB, free: 3.746 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.028e-05/0.5612, allocations: 31.81 kB / 0.6398 GB, free: 3.715 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002586/0.5638, allocations: 1.959 MB / 0.6417 GB, free: 1.75 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.194e-05/0.5639, allocations: 27.95 kB / 0.6417 GB, free: 1.723 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.5639, allocations: 7.922 kB / 0.6417 GB, free: 1.715 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.5639, allocations: 4 kB / 0.6417 GB, free: 1.711 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009958/0.5649, allocations: 0.8672 MB / 0.6426 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.5649, allocations: 0 / 0.6426 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.5652, allocations: 79.86 kB / 0.6427 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.5652, allocations: 0 / 0.6427 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.5652, allocations: 8 kB / 0.6427 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.5652, allocations: 0 / 0.6427 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5652, allocations: 4 kB / 0.6427 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.5668, allocations: 1.112 MB / 0.6438 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.5669, allocations: 91.16 kB / 0.6438 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.121e-05/0.567, allocations: 23.78 kB / 0.6439 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.5672, allocations: 27.91 kB / 0.6439 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.5673, allocations: 35.88 kB / 0.6439 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.5673, allocations: 12 kB / 0.6439 GB, free: 15.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003558/0.5677, allocations: 303.1 kB / 0.6442 GB, free: 15.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5677, allocations: 0 / 0.6442 GB, free: 15.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003435/0.5711, allocations: 1.014 MB / 0.6452 GB, free: 14.09 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.004301/0.5754, allocations: 1.177 MB / 0.6464 GB, free: 12.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.5767, allocations: 0.5865 MB / 0.6469 GB, free: 12.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.5767, allocations: 0.625 kB / 0.6469 GB, free: 12.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006613/0.5774, allocations: 429 kB / 0.6474 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.5784, allocations: 188.3 kB / 0.6475 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.5808, allocations: 1.579 MB / 0.6491 GB, free: 10.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.5812, allocations: 378.1 kB / 0.6494 GB, free: 9.699 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.5813, allocations: 39.44 kB / 0.6495 GB, free: 9.66 MB / 494.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5813, allocations: 0 / 0.6495 GB, free: 9.66 MB / 494.1 MB Notification: Performance of Templates: time 0.04315/0.6245, allocations: 24.13 MB / 0.673 GB, free: 1.535 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.861425554001471]