Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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.001754/0.001754, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00221/0.00221, allocations: 212 kB / 23.74 MB, free: 4.656 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.533/1.533, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 51.92 kB / 378.3 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2905, allocations: 53.36 MB / 431.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07735/0.3678, allocations: 63.99 MB / 495.6 MB, free: 6.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03461/0.4024, allocations: 22.59 MB / 0.506 GB, free: 76 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001658/0.4041, allocations: 47.56 kB / 0.5061 GB, free: 28 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002466/0.4066, allocations: 0.7296 MB / 0.5068 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02008/0.4266, allocations: 5.846 MB / 0.5125 GB, free: 9.441 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01358/0.4402, allocations: 3.488 MB / 0.5159 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02094/0.4612, allocations: 9.098 MB / 0.5248 GB, free: 12.74 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.4628, allocations: 0.592 MB / 0.5254 GB, free: 12.14 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002973/0.4658, allocations: 1.09 MB / 0.5264 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002059/0.4678, allocations: 0.848 MB / 0.5273 GB, free: 10.19 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004391/0.4683, allocations: 95.94 kB / 0.5274 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01841/0.4867, allocations: 7.715 MB / 0.5349 GB, free: 2.375 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008156/0.4875, allocations: 282.8 kB / 0.5352 GB, free: 2.098 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001931/0.4894, allocations: 0.7154 MB / 0.5359 GB, free: 1.379 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2568/0.7462, allocations: 5.786 MB / 0.5415 GB, free: 23.17 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.7462, allocations: 0 / 0.5415 GB, free: 23.17 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.7462, allocations: 0 / 0.5415 GB, free: 23.17 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.7462, allocations: 0 / 0.5415 GB, free: 23.17 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007394/0.7536, allocations: 2.465 MB / 0.5439 GB, free: 22.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.7537, allocations: 9.844 kB / 0.5439 GB, free: 22.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004735/0.7584, allocations: 0.6574 MB / 0.5446 GB, free: 22.05 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.7606, allocations: 0.9673 MB / 0.5455 GB, free: 21.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.692e-05/0.7606, allocations: 78.25 kB / 0.5456 GB, free: 21.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.7608, allocations: 101.4 kB / 0.5457 GB, free: 21.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003504/0.7643, allocations: 1.671 MB / 0.5473 GB, free: 21.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.7643, allocations: 10.45 kB / 0.5473 GB, free: 21.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.7644, allocations: 45.22 kB / 0.5474 GB, free: 21.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/0.7645, allocations: 30.97 kB / 0.5474 GB, free: 21.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003182/0.7676, allocations: 1.461 MB / 0.5488 GB, free: 21.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008469/0.7761, allocations: 8.05 MB / 0.5567 GB, free: 16.19 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002704/0.7788, allocations: 1.044 MB / 0.5577 GB, free: 16.13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005581/0.7794, allocations: 356.6 kB / 0.5581 GB, free: 16.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1152/0.8945, allocations: 34.7 MB / 0.5919 GB, free: 14.49 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/0.8946, allocations: 45 kB / 0.592 GB, free: 14.44 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.726e-06/0.8946, allocations: 3 kB / 0.592 GB, free: 14.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.006306/0.9009, allocations: 1.918 MB / 0.5939 GB, free: 12.96 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.901, allocations: 192.4 kB / 0.594 GB, free: 12.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.9025, allocations: 0.9611 MB / 0.595 GB, free: 11.99 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.096e-05/0.9026, allocations: 38.83 kB / 0.595 GB, free: 11.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004742/0.9031, allocations: 0.5863 MB / 0.5956 GB, free: 11.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.9034, allocations: 287.8 kB / 0.5959 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003308/0.9037, allocations: 240.6 kB / 0.5961 GB, free: 11.18 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.9039, allocations: 346.9 kB / 0.5964 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005617/0.9044, allocations: 298.9 kB / 0.5967 GB, free: 10.67 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009534/0.9054, allocations: 0.7435 MB / 0.5974 GB, free: 9.867 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.907, allocations: 1.101 MB / 0.5985 GB, free: 8.934 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/0.907, allocations: 4 kB / 0.5985 GB, free: 8.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002373/0.9094, allocations: 1.252 MB / 0.5997 GB, free: 8.078 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.9094, allocations: 12 kB / 0.5998 GB, free: 8.066 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.9094, allocations: 12 kB / 0.5998 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003501/0.9129, allocations: 0.5217 MB / 0.6003 GB, free: 7.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.914, allocations: 280.5 kB / 0.6005 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.9153, allocations: 1.379 MB / 0.6019 GB, free: 6.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.9163, allocations: 133.8 kB / 0.602 GB, free: 5.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.9164, allocations: 65.91 kB / 0.6021 GB, free: 5.855 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0005832/0.917, allocations: 296.1 kB / 0.6024 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.9174, allocations: 131.2 kB / 0.6025 GB, free: 5.527 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005346/0.9227, allocations: 4.604 MB / 0.607 GB, free: 2.559 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-05/0.9228, allocations: 44.73 kB / 0.607 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.271e-05/0.9228, allocations: 0 / 0.607 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/0.9228, allocations: 4.125 kB / 0.607 GB, free: 2.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006238/0.9291, allocations: 4.988 MB / 0.6119 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.9291, allocations: 0 / 0.6119 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008667/0.9299, allocations: 174 kB / 0.6121 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001663/0.9316, allocations: 0.6804 MB / 0.6127 GB, free: 14.21 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.776e-05/0.9317, allocations: 23.11 kB / 0.6128 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.9332, allocations: 1.786 MB / 0.6145 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.9332, allocations: 0 / 0.6145 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002773/0.936, allocations: 2.028 MB / 0.6165 GB, free: 11.15 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005287/0.9365, allocations: 205 kB / 0.6167 GB, free: 10.96 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003154/0.9368, allocations: 46.59 kB / 0.6167 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006179/0.9375, allocations: 17.69 kB / 0.6167 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.9376, allocations: 61.08 kB / 0.6168 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.283e-05/0.9376, allocations: 30.05 kB / 0.6168 GB, free: 10.84 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001235/0.9389, allocations: 0.8316 MB / 0.6176 GB, free: 10.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9389, allocations: 0 / 0.6176 GB, free: 10.23 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005926/0.9448, allocations: 1.3 MB / 0.6189 GB, free: 9.008 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008463/0.9532, allocations: 1.258 MB / 0.6201 GB, free: 7.891 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003005/0.9563, allocations: 1.232 MB / 0.6213 GB, free: 7.051 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.9563, allocations: 1.75 kB / 0.6213 GB, free: 7.051 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.9579, allocations: 0.7402 MB / 0.6221 GB, free: 6.555 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00399/0.9619, allocations: 0.7176 MB / 0.6228 GB, free: 5.965 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005161/0.9671, allocations: 3.128 MB / 0.6258 GB, free: 2.992 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.9681, allocations: 1.319 MB / 0.6271 GB, free: 1.648 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001367/0.9695, allocations: 0.6374 MB / 0.6277 GB, free: 1.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003189/0.9698, allocations: 119.4 kB / 0.6278 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9698, allocations: 4 kB / 0.6278 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of Templates: time 0.1059/1.076, allocations: 59.4 MB / 0.6858 GB, free: 5.996 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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: 9.613698221975937]