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.001841/0.001841, allocations: 84.55 kB / 20.68 MB, free: 1.023 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.002258/0.002258, allocations: 163.9 kB / 23.95 MB, free: 4.156 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.509/1.509, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.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.2122/0.2122, allocations: 34.27 MB / 294.9 MB, free: 14.59 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 1.392e-06/1.392e-06, allocations: 0 / 442.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.324e-05/2.464e-05, allocations: 2.281 kB / 442.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2354/0.2354, allocations: 25.75 MB / 468.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.2511, allocations: 11.78 MB / 480.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004575/0.2515, allocations: 14.19 kB / 480.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008052/0.2523, allocations: 221.3 kB / 480.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01163/0.264, allocations: 3.696 MB / 484.1 MB, free: 9.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007251/0.2712, allocations: 2.39 MB / 486.5 MB, free: 8.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001311/0.2725, allocations: 0.9084 MB / 487.4 MB, free: 7.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.273, allocations: 215.4 kB / 487.7 MB, free: 7.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009934/0.2739, allocations: 0.5367 MB / 488.2 MB, free: 7.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003964/0.2743, allocations: 245.4 kB / 488.4 MB, free: 6.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.874e-05/0.2744, allocations: 33.5 kB / 488.5 MB, free: 6.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01471/0.2891, allocations: 6.925 MB / 495.4 MB, free: 1.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.2893, allocations: 99.64 kB / 495.5 MB, free: 1.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003704/0.2897, allocations: 159.7 kB / 495.6 MB, free: 1.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/0.3023, allocations: 5.543 MB / 0.4894 GB, free: 11.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3023, allocations: 4 kB / 0.4894 GB, free: 11.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3023, allocations: 4 kB / 0.4894 GB, free: 11.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.3023, allocations: 0 / 0.4894 GB, free: 11.88 MB / 398.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.003381/0.3057, allocations: 1.18 MB / 0.4906 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3058, allocations: 12.03 kB / 0.4906 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/0.3076, allocations: 216.5 kB / 0.4908 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006057/0.3082, allocations: 312.5 kB / 0.4911 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.915e-05/0.3083, allocations: 22.53 kB / 0.4911 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-05/0.3083, allocations: 36.38 kB / 0.4912 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/0.3102, allocations: 0.7297 MB / 0.4919 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.3102, allocations: 384 / 0.4919 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.811e-05/0.3102, allocations: 15.94 kB / 0.4919 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3103, allocations: 8 kB / 0.4919 GB, free: 9.223 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/0.312, allocations: 0.5253 MB / 0.4924 GB, free: 8.695 MB / 398.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.003253/0.3153, allocations: 1.837 MB / 0.4942 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.3171, allocations: 446.7 kB / 0.4946 GB, free: 6.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004732/0.3176, allocations: 172.7 kB / 0.4948 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05029/0.3679, allocations: 13.2 MB / 0.5077 GB, free: 8.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.3679, allocations: 34.56 kB / 0.5077 GB, free: 8.914 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.084e-06/0.3679, allocations: 0 / 0.5077 GB, free: 8.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.00324/0.3712, allocations: 0.7955 MB / 0.5085 GB, free: 8.113 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.43e-05/0.3713, allocations: 114.8 kB / 0.5086 GB, free: 7.977 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004134/0.3717, allocations: 276.1 kB / 0.5089 GB, free: 7.699 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.3717, allocations: 29.7 kB / 0.5089 GB, free: 7.664 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.3719, allocations: 208.4 kB / 0.5091 GB, free: 7.457 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.372, allocations: 87.25 kB / 0.5092 GB, free: 7.371 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.3722, allocations: 73.64 kB / 0.5093 GB, free: 7.293 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.3724, allocations: 342.8 kB / 0.5096 GB, free: 6.949 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004486/0.3728, allocations: 135.9 kB / 0.5097 GB, free: 6.816 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005839/0.3734, allocations: 293.1 kB / 0.51 GB, free: 6.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009554/0.3744, allocations: 365.2 kB / 0.5103 GB, free: 6.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3744, allocations: 0 / 0.5103 GB, free: 6.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001135/0.3755, allocations: 417 kB / 0.5107 GB, free: 5.676 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3755, allocations: 14.5 kB / 0.5108 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3755, allocations: 0 / 0.5108 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.3756, allocations: 7.938 kB / 0.5108 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.3759, allocations: 83.88 kB / 0.5108 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.3759, allocations: 4 kB / 0.5108 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.3762, allocations: 39.77 kB / 0.5109 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/0.3763, allocations: 19.98 kB / 0.5109 GB, free: 5.512 MB / 414.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.0002288/0.3765, allocations: 165.7 kB / 0.5111 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.3766, allocations: 35.8 kB / 0.5111 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.3795, allocations: 1.981 MB / 0.513 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-05/0.3795, allocations: 27.95 kB / 0.5131 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3795, allocations: 0 / 0.5131 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3795, allocations: 3.984 kB / 0.5131 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.3806, allocations: 0.868 MB / 0.5139 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3806, allocations: 0 / 0.5139 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003294/0.3809, allocations: 67.94 kB / 0.514 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3809, allocations: 4 kB / 0.514 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.381, allocations: 8 kB / 0.514 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.381, allocations: 3.938 kB / 0.514 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.381, allocations: 4.859 kB / 0.514 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.3827, allocations: 1.107 MB / 0.5151 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.3828, allocations: 99.08 kB / 0.5152 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.3829, allocations: 23.84 kB / 0.5152 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.3832, allocations: 19.98 kB / 0.5152 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3833, allocations: 31.94 kB / 0.5152 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.3833, allocations: 15.98 kB / 0.5153 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003646/0.3837, allocations: 299.1 kB / 0.5155 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3837, allocations: 0 / 0.5155 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003026/0.3867, allocations: 1.014 MB / 0.5165 GB, free: 15.68 MB / 430.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.00584/0.3925, allocations: 1.31 MB / 0.5178 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.394, allocations: 0.5943 MB / 0.5184 GB, free: 13.76 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.394, allocations: 0 / 0.5184 GB, free: 13.76 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007393/0.3948, allocations: 417.6 kB / 0.5188 GB, free: 13.35 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.3959, allocations: 203.1 kB / 0.519 GB, free: 13.16 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002447/0.3984, allocations: 1.525 MB / 0.5205 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3988, allocations: 378.1 kB / 0.5208 GB, free: 11.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004798/0.3992, allocations: 266.9 kB / 0.5211 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.3994, allocations: 40.5 kB / 0.5211 GB, free: 10.91 MB / 430.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3994, allocations: 0 / 0.5211 GB, free: 10.91 MB / 430.1 MB Notification: Performance of Templates: time 0.06128/0.4606, allocations: 39.22 MB / 0.5594 GB, free: 3.836 MB / 462.1 MB " [Timeout remaining time 660] 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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.7394940704107285]