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.001699/0.001699, allocations: 71.77 kB / 21.24 MB, free: 396 kB / 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.002074/0.002074, allocations: 166.4 kB / 24.5 MB, free: 3.449 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.455/1.455, allocations: 177.2 MB / 204.9 MB, free: 9.043 MB / 190.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.2003/0.2003, allocations: 32.8 MB / 294.1 MB, free: 56 kB / 270.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.002102/0.002102, allocations: 67.91 kB / 440.6 MB, free: 9.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3189, allocations: 65.44 MB / 0.4941 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02082/0.3397, allocations: 25.92 MB / 0.5195 GB, free: 14.21 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0131/0.3528, allocations: 11.76 MB / 0.5309 GB, free: 6.512 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005129/0.3533, allocations: 14.16 kB / 0.531 GB, free: 6.504 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007182/0.354, allocations: 231.4 kB / 0.5312 GB, free: 6.379 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01249/0.3665, allocations: 3.639 MB / 0.5347 GB, free: 4.938 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007084/0.3736, allocations: 2.358 MB / 0.537 GB, free: 3.773 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.375, allocations: 0.9051 MB / 0.5379 GB, free: 3.344 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/0.3754, allocations: 208.3 kB / 0.5381 GB, free: 3.246 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007473/0.3762, allocations: 446.1 kB / 0.5385 GB, free: 3.055 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003474/0.3765, allocations: 262.3 kB / 0.5388 GB, free: 2.953 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.415e-05/0.3766, allocations: 33.66 kB / 0.5388 GB, free: 2.953 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01447/0.391, allocations: 6.9 MB / 0.5456 GB, free: 160 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.3912, allocations: 105.5 kB / 0.5457 GB, free: 76 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003297/0.3915, allocations: 182.3 kB / 0.5458 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.011/0.4025, allocations: 4.425 MB / 0.5502 GB, free: 13.17 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.4025, allocations: 4.781 kB / 0.5502 GB, free: 13.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4025, allocations: 0 / 0.5502 GB, free: 13.16 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.4025, allocations: 1.031 kB / 0.5502 GB, free: 13.16 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.003739/0.4063, allocations: 1.179 MB / 0.5513 GB, free: 12.33 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4063, allocations: 9.469 kB / 0.5513 GB, free: 12.33 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001824/0.4081, allocations: 217.8 kB / 0.5515 GB, free: 12.24 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007272/0.4089, allocations: 319 kB / 0.5518 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.4089, allocations: 27.41 kB / 0.5519 GB, free: 11.95 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.393e-05/0.409, allocations: 30.22 kB / 0.5519 GB, free: 11.94 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.4107, allocations: 0.7289 MB / 0.5526 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.4107, allocations: 0.9688 kB / 0.5526 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.126e-05/0.4107, allocations: 12.22 kB / 0.5526 GB, free: 11.37 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.4107, allocations: 8.375 kB / 0.5526 GB, free: 11.37 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.4126, allocations: 0.528 MB / 0.5531 GB, free: 11.11 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.003133/0.4157, allocations: 1.854 MB / 0.555 GB, free: 9.539 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.4173, allocations: 458.9 kB / 0.5554 GB, free: 9.301 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.4178, allocations: 175.2 kB / 0.5556 GB, free: 9.211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05118/0.469, allocations: 13.2 MB / 0.5684 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/0.469, allocations: 38.56 kB / 0.5685 GB, free: 12.61 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.665e-06/0.469, allocations: 0 / 0.5685 GB, free: 12.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003144/0.4722, allocations: 0.7858 MB / 0.5692 GB, free: 11.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.526e-05/0.4722, allocations: 118.7 kB / 0.5694 GB, free: 11.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.4726, allocations: 276.2 kB / 0.5696 GB, free: 11.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.797e-05/0.4727, allocations: 29.7 kB / 0.5697 GB, free: 11.36 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.4729, allocations: 212.4 kB / 0.5699 GB, free: 11.15 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.473, allocations: 91.2 kB / 0.5699 GB, free: 11.06 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.4731, allocations: 69.69 kB / 0.57 GB, free: 10.99 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4733, allocations: 334.8 kB / 0.5703 GB, free: 10.65 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/0.4737, allocations: 139.9 kB / 0.5705 GB, free: 10.52 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005468/0.4743, allocations: 287.9 kB / 0.5707 GB, free: 10.18 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008988/0.4752, allocations: 353.1 kB / 0.5711 GB, free: 9.805 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4752, allocations: 3.984 kB / 0.5711 GB, free: 9.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001109/0.4763, allocations: 422.1 kB / 0.5715 GB, free: 9.383 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.4763, allocations: 8.031 kB / 0.5715 GB, free: 9.375 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.4763, allocations: 11.94 kB / 0.5715 GB, free: 9.363 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.4763, allocations: 4 kB / 0.5715 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.4767, allocations: 83.88 kB / 0.5716 GB, free: 9.277 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.4767, allocations: 7.938 kB / 0.5716 GB, free: 9.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.477, allocations: 43.81 kB / 0.5716 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.504e-05/0.4771, allocations: 12 kB / 0.5716 GB, free: 9.215 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.0002346/0.4773, allocations: 169.8 kB / 0.5718 GB, free: 9.039 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.4774, allocations: 27.81 kB / 0.5718 GB, free: 9.012 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/0.4802, allocations: 1.99 MB / 0.5738 GB, free: 7.02 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.926e-05/0.4803, allocations: 27.95 kB / 0.5738 GB, free: 6.992 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.4803, allocations: 3.938 kB / 0.5738 GB, free: 6.988 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.4803, allocations: 7.922 kB / 0.5738 GB, free: 6.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.4814, allocations: 0.8679 MB / 0.5747 GB, free: 6.082 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.4814, allocations: 0 / 0.5747 GB, free: 6.082 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.4817, allocations: 75.88 kB / 0.5747 GB, free: 6.008 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.4817, allocations: 0 / 0.5747 GB, free: 6.008 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.4817, allocations: 11.98 kB / 0.5747 GB, free: 5.996 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.4817, allocations: 0 / 0.5747 GB, free: 5.996 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4817, allocations: 4 kB / 0.5747 GB, free: 5.992 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.4834, allocations: 1.111 MB / 0.5758 GB, free: 4.859 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.4836, allocations: 91.14 kB / 0.5759 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.73e-05/0.4837, allocations: 19.84 kB / 0.5759 GB, free: 4.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.4839, allocations: 27.97 kB / 0.576 GB, free: 4.723 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.484, allocations: 39.86 kB / 0.576 GB, free: 4.684 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.4841, allocations: 16 kB / 0.576 GB, free: 4.668 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003691/0.4844, allocations: 299.1 kB / 0.5763 GB, free: 4.375 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4844, allocations: 0 / 0.5763 GB, free: 4.375 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003529/0.488, allocations: 1.018 MB / 0.5773 GB, free: 3.355 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.005787/0.4938, allocations: 1.165 MB / 0.5784 GB, free: 2.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.4952, allocations: 0.5943 MB / 0.579 GB, free: 1.586 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4952, allocations: 0 / 0.579 GB, free: 1.586 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007483/0.4959, allocations: 421.7 kB / 0.5794 GB, free: 1.172 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.4971, allocations: 189.3 kB / 0.5796 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.4996, allocations: 1.554 MB / 0.5811 GB, free: 15.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.5, allocations: 374.2 kB / 0.5815 GB, free: 15.01 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005021/0.5005, allocations: 270.9 kB / 0.5817 GB, free: 14.75 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.5006, allocations: 40.5 kB / 0.5818 GB, free: 14.71 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5006, allocations: 0 / 0.5818 GB, free: 14.71 MB / 494.1 MB Notification: Performance of Templates: time 0.06074/0.5614, allocations: 39.16 MB / 0.62 GB, free: 7.707 MB / 0.5138 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/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.64965265605133]