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.001277/0.001277, allocations: 116.5 kB / 18.45 MB, free: 4.562 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.001394/0.001394, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.491/1.491, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.2452/0.2452, allocations: 46.93 MB / 357.8 MB, free: 10.3 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.001963/0.001963, allocations: 75.88 kB / 0.4921 GB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1459, allocations: 65.99 MB / 0.5565 GB, free: 5.324 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03803/0.1839, allocations: 28.43 MB / 0.5843 GB, free: 8.785 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3426/0.5265, allocations: 13.33 MB / 0.5973 GB, free: 4.262 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004305/0.527, allocations: 16.03 kB / 0.5973 GB, free: 4.262 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008783/0.5279, allocations: 251.8 kB / 0.5975 GB, free: 4.262 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.5422, allocations: 3.669 MB / 0.6011 GB, free: 4.227 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007478/0.5497, allocations: 2.379 MB / 0.6035 GB, free: 4.168 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001579/0.5512, allocations: 0.893 MB / 0.6043 GB, free: 4.168 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004771/0.5517, allocations: 221.1 kB / 0.6045 GB, free: 4.156 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.5528, allocations: 449.9 kB / 0.605 GB, free: 4.156 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004309/0.5532, allocations: 282.2 kB / 0.6052 GB, free: 4.133 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.073e-05/0.5533, allocations: 33.25 kB / 0.6053 GB, free: 4.133 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01812/0.5714, allocations: 7.257 MB / 0.6124 GB, free: 4.051 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002549/0.5716, allocations: 98.91 kB / 0.6124 GB, free: 4.035 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004767/0.5721, allocations: 222.9 kB / 0.6127 GB, free: 3.977 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01486/0.587, allocations: 4.429 MB / 0.617 GB, free: 2.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.587, allocations: 1.25 kB / 0.617 GB, free: 2.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.587, allocations: 0 / 0.617 GB, free: 2.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.587, allocations: 0 / 0.617 GB, free: 2.77 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.005286/0.5923, allocations: 1.275 MB / 0.6182 GB, free: 1.898 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.5923, allocations: 9.125 kB / 0.6182 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.5941, allocations: 215.7 kB / 0.6184 GB, free: 1.824 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006488/0.5948, allocations: 382.7 kB / 0.6188 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/0.5948, allocations: 24.06 kB / 0.6188 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.5949, allocations: 29.95 kB / 0.6189 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.5964, allocations: 0.575 MB / 0.6194 GB, free: 1.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.5964, allocations: 9.25 kB / 0.6194 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/0.5964, allocations: 14.5 kB / 0.6194 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.5965, allocations: 10.3 kB / 0.6195 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.598, allocations: 0.5303 MB / 0.62 GB, free: 1.062 MB / 446.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.003156/0.6012, allocations: 2.616 MB / 0.6225 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001687/0.6029, allocations: 447.8 kB / 0.623 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004881/0.6033, allocations: 175.5 kB / 0.6231 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05566/0.659, allocations: 26.88 MB / 0.6494 GB, free: 5.988 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.631e-05/0.659, allocations: 42.5 kB / 0.6494 GB, free: 5.938 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.785e-06/0.659, allocations: 0 / 0.6494 GB, free: 5.938 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003079/0.6621, allocations: 0.7942 MB / 0.6502 GB, free: 5.137 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/0.6622, allocations: 106.8 kB / 0.6503 GB, free: 5.008 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003854/0.6626, allocations: 312.6 kB / 0.6506 GB, free: 4.699 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.6626, allocations: 25.7 kB / 0.6506 GB, free: 4.668 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.6628, allocations: 212.5 kB / 0.6508 GB, free: 4.457 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.588e-05/0.6629, allocations: 89.97 kB / 0.6509 GB, free: 4.371 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.663, allocations: 65.69 kB / 0.651 GB, free: 4.301 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.6632, allocations: 342.8 kB / 0.6513 GB, free: 3.957 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004006/0.6636, allocations: 142.2 kB / 0.6514 GB, free: 3.82 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000491/0.6641, allocations: 238.8 kB / 0.6517 GB, free: 3.547 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008405/0.6649, allocations: 365.2 kB / 0.652 GB, free: 3.156 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.6649, allocations: 0 / 0.652 GB, free: 3.156 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00107/0.666, allocations: 425 kB / 0.6524 GB, free: 2.734 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.666, allocations: 7.938 kB / 0.6524 GB, free: 2.727 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.666, allocations: 4 kB / 0.6524 GB, free: 2.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.666, allocations: 4 kB / 0.6524 GB, free: 2.719 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/0.6664, allocations: 87.77 kB / 0.6525 GB, free: 2.637 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.6664, allocations: 4 kB / 0.6525 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.6667, allocations: 52 kB / 0.6526 GB, free: 2.582 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.766e-05/0.6667, allocations: 19.98 kB / 0.6526 GB, free: 2.562 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.0002105/0.667, allocations: 153.8 kB / 0.6527 GB, free: 2.402 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.594e-05/0.667, allocations: 35.77 kB / 0.6528 GB, free: 2.367 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002648/0.6697, allocations: 1.901 MB / 0.6546 GB, free: 472 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.93e-05/0.6697, allocations: 35.89 kB / 0.6546 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6697, allocations: 2.812 kB / 0.6547 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.6697, allocations: 4 kB / 0.6547 GB, free: 432 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.6709, allocations: 1.013 MB / 0.6556 GB, free: 15.37 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.6709, allocations: 4 kB / 0.6556 GB, free: 15.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003133/0.6713, allocations: 71.86 kB / 0.6557 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.6713, allocations: 4 kB / 0.6557 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.6713, allocations: 8 kB / 0.6557 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.6713, allocations: 3.938 kB / 0.6557 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6713, allocations: 0 / 0.6557 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.6729, allocations: 1.085 MB / 0.6568 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.6731, allocations: 164.2 kB / 0.6569 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.901e-05/0.6731, allocations: 23.84 kB / 0.657 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.6734, allocations: 31.91 kB / 0.657 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.6735, allocations: 31.95 kB / 0.657 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.6735, allocations: 8 kB / 0.657 GB, free: 13.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000393/0.6739, allocations: 331.1 kB / 0.6574 GB, free: 13.58 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6739, allocations: 0 / 0.6574 GB, free: 13.58 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004751/0.6787, allocations: 1.002 MB / 0.6583 GB, free: 12.57 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.006106/0.6848, allocations: 1.176 MB / 0.6595 GB, free: 11.49 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001462/0.6862, allocations: 0.5826 MB / 0.6601 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.6862, allocations: 0 / 0.6601 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00067/0.6869, allocations: 398.9 kB / 0.6604 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.6882, allocations: 217.2 kB / 0.6606 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.6907, allocations: 1.562 MB / 0.6622 GB, free: 8.719 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006136/0.6913, allocations: 0.9638 MB / 0.6631 GB, free: 7.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.6914, allocations: 43.44 kB / 0.6631 GB, free: 7.688 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6914, allocations: 0 / 0.6631 GB, free: 7.688 MB / 494.1 MB Notification: Performance of Templates: time 0.04319/0.7346, allocations: 24.15 MB / 0.6867 GB, free: 15.57 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 -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: 11.318746364006074]