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.001965/0.001965, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002433/0.002433, allocations: 205.2 kB / 24.47 MB, free: 3.977 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.441/1.441, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.2268/0.2268, 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.002112/0.002112, allocations: 67.89 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2863, allocations: 66.04 MB / 0.5618 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03285/0.3192, allocations: 25.9 MB / 0.5871 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0166/0.3358, allocations: 11.76 MB / 0.5986 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.336, allocations: 23.81 kB / 0.5986 GB, free: 14.35 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007273/0.3368, allocations: 222.5 kB / 0.5988 GB, free: 14.13 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008716/0.3455, allocations: 3.65 MB / 0.6024 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006087/0.3516, allocations: 2.348 MB / 0.6047 GB, free: 8.137 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.3527, allocations: 0.908 MB / 0.6056 GB, free: 7.227 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.3531, allocations: 212.9 kB / 0.6058 GB, free: 7.012 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007595/0.3538, allocations: 446.3 kB / 0.6062 GB, free: 6.574 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003626/0.3542, allocations: 290.7 kB / 0.6065 GB, free: 6.289 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.027e-05/0.3543, allocations: 32 kB / 0.6065 GB, free: 6.258 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01267/0.3669, allocations: 7.184 MB / 0.6135 GB, free: 15.07 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.3671, allocations: 107.6 kB / 0.6136 GB, free: 14.96 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.3673, allocations: 187.2 kB / 0.6138 GB, free: 14.78 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007247/0.3746, allocations: 4.42 MB / 0.6181 GB, free: 10.34 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3746, allocations: 0 / 0.6181 GB, free: 10.34 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3746, allocations: 0 / 0.6181 GB, free: 10.34 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3746, allocations: 0 / 0.6181 GB, free: 10.34 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.002766/0.3773, allocations: 1.18 MB / 0.6193 GB, free: 9.129 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.3774, allocations: 8.031 kB / 0.6193 GB, free: 9.121 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001786/0.3792, allocations: 220.4 kB / 0.6195 GB, free: 8.906 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006377/0.3798, allocations: 313.2 kB / 0.6198 GB, free: 8.57 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.409e-05/0.3798, allocations: 32.97 kB / 0.6198 GB, free: 8.539 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.864e-05/0.3799, allocations: 28.38 kB / 0.6198 GB, free: 8.512 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.3816, allocations: 0.7291 MB / 0.6206 GB, free: 7.707 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.3816, allocations: 4 kB / 0.6206 GB, free: 7.703 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.384e-05/0.3817, allocations: 12 kB / 0.6206 GB, free: 7.691 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3817, allocations: 8 kB / 0.6206 GB, free: 7.684 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.3834, allocations: 0.5293 MB / 0.6211 GB, free: 7.152 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.002899/0.3863, allocations: 1.852 MB / 0.6229 GB, free: 5.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.3879, allocations: 446.1 kB / 0.6233 GB, free: 4.785 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004796/0.3884, allocations: 176.7 kB / 0.6235 GB, free: 4.609 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04844/0.4368, allocations: 13.2 MB / 0.6364 GB, free: 7.387 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/0.4369, allocations: 38.56 kB / 0.6364 GB, free: 7.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.575e-06/0.4369, allocations: 0 / 0.6364 GB, free: 7.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003048/0.4399, allocations: 0.7781 MB / 0.6372 GB, free: 6.555 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.4401, allocations: 118.7 kB / 0.6373 GB, free: 6.414 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.4404, allocations: 276.1 kB / 0.6376 GB, free: 6.137 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.4405, allocations: 37.64 kB / 0.6376 GB, free: 6.094 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.4407, allocations: 208.4 kB / 0.6378 GB, free: 5.887 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.106e-05/0.4407, allocations: 87.22 kB / 0.6379 GB, free: 5.801 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.4409, allocations: 69.69 kB / 0.638 GB, free: 5.727 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.441, allocations: 338.8 kB / 0.6383 GB, free: 5.387 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000421/0.4415, allocations: 139.9 kB / 0.6384 GB, free: 5.25 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005353/0.442, allocations: 283.3 kB / 0.6387 GB, free: 4.922 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008787/0.4429, allocations: 365.9 kB / 0.639 GB, free: 4.531 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.4429, allocations: 0 / 0.639 GB, free: 4.531 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001189/0.4441, allocations: 417 kB / 0.6394 GB, free: 4.117 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.4441, allocations: 8 kB / 0.6394 GB, free: 4.109 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.4441, allocations: 0 / 0.6394 GB, free: 4.109 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.4441, allocations: 4 kB / 0.6394 GB, free: 4.105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003598/0.4445, allocations: 88.19 kB / 0.6395 GB, free: 4.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.143e-05/0.4445, allocations: 11.88 kB / 0.6395 GB, free: 4.008 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.4448, allocations: 43.81 kB / 0.6396 GB, free: 3.965 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.4448, allocations: 16 kB / 0.6396 GB, free: 3.949 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.0001979/0.445, allocations: 165.7 kB / 0.6398 GB, free: 3.777 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.689e-05/0.4451, allocations: 31.81 kB / 0.6398 GB, free: 3.746 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.4478, allocations: 1.967 MB / 0.6417 GB, free: 1.777 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-05/0.4479, allocations: 27.95 kB / 0.6417 GB, free: 1.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4479, allocations: 7.938 kB / 0.6417 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.4479, allocations: 3.984 kB / 0.6417 GB, free: 1.738 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.4489, allocations: 0.8672 MB / 0.6426 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.4489, allocations: 0 / 0.6426 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.4493, allocations: 63.94 kB / 0.6426 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.4493, allocations: 0 / 0.6426 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.4493, allocations: 15.98 kB / 0.6427 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.4493, allocations: 0 / 0.6427 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.4493, allocations: 7.938 kB / 0.6427 GB, free: 0.75 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.451, allocations: 1.108 MB / 0.6438 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.4511, allocations: 91.16 kB / 0.6438 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.053e-05/0.4511, allocations: 23.78 kB / 0.6439 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.4514, allocations: 27.97 kB / 0.6439 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.4516, allocations: 39.81 kB / 0.6439 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.4516, allocations: 12 kB / 0.6439 GB, free: 15.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003974/0.452, allocations: 299.1 kB / 0.6442 GB, free: 15.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.452, allocations: 0 / 0.6442 GB, free: 15.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002684/0.4547, allocations: 1.01 MB / 0.6452 GB, free: 14.13 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.003846/0.4585, allocations: 1.177 MB / 0.6464 GB, free: 12.94 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.4598, allocations: 0.595 MB / 0.6469 GB, free: 12.35 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4598, allocations: 0 / 0.6469 GB, free: 12.35 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007055/0.4605, allocations: 425 kB / 0.6473 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.4615, allocations: 185.7 kB / 0.6475 GB, free: 11.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.4638, allocations: 1.547 MB / 0.649 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.4642, allocations: 374 kB / 0.6494 GB, free: 9.781 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004483/0.4646, allocations: 269.5 kB / 0.6496 GB, free: 9.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.4647, allocations: 39.44 kB / 0.6497 GB, free: 9.48 MB / 494.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4647, allocations: 0 / 0.6497 GB, free: 9.48 MB / 494.1 MB Notification: Performance of Templates: time 0.05915/0.5239, allocations: 40.36 MB / 0.6891 GB, free: 1.297 MB / 0.5137 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 -s gbode -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: 7.522573769994779]