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.001465/0.001465, allocations: 107 kB / 21.18 MB, free: 0.6484 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.00175/0.00175, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.785/1.785, allocations: 230.6 MB / 258.2 MB, free: 7.789 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.002244/0.002244, allocations: 51.86 kB / 379 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3593, allocations: 53.36 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.08091/0.4402, allocations: 57.55 MB / 489.9 MB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03547/0.4756, allocations: 20.08 MB / 0.498 GB, free: 8.832 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002924/0.4786, allocations: 43.56 kB / 0.498 GB, free: 8.789 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003337/0.4819, allocations: 0.6674 MB / 0.4987 GB, free: 8.117 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02162/0.5035, allocations: 5.818 MB / 0.5044 GB, free: 2.293 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01336/0.5169, allocations: 3.426 MB / 0.5077 GB, free: 14.87 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02119/0.5381, allocations: 9.105 MB / 0.5166 GB, free: 5.645 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.5397, allocations: 0.5842 MB / 0.5172 GB, free: 5.051 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002888/0.5425, allocations: 1.074 MB / 0.5182 GB, free: 3.973 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001719/0.5443, allocations: 0.8596 MB / 0.5191 GB, free: 3.109 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002222/0.5445, allocations: 92 kB / 0.5192 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0212/0.5657, allocations: 7.602 MB / 0.5266 GB, free: 11.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006727/0.5664, allocations: 294.8 kB / 0.5269 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.5677, allocations: 0.5873 MB / 0.5274 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01654/0.5842, allocations: 5.778 MB / 0.5331 GB, free: 4.738 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5842, allocations: 0 / 0.5331 GB, free: 4.738 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5842, allocations: 4 kB / 0.5331 GB, free: 4.734 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.189e-05/0.5842, allocations: 0 / 0.5331 GB, free: 4.734 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.008659/0.5929, allocations: 2.462 MB / 0.5355 GB, free: 2.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.593, allocations: 8.031 kB / 0.5355 GB, free: 2.223 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006598/0.5996, allocations: 0.6634 MB / 0.5361 GB, free: 1.559 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.6026, allocations: 0.9605 MB / 0.5371 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.359e-05/0.6026, allocations: 74.39 kB / 0.5371 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/0.6028, allocations: 99.94 kB / 0.5372 GB, free: 404 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3683/0.9711, allocations: 1.982 MB / 0.5392 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.88e-05/0.9712, allocations: 6.625 kB / 0.5392 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002492/0.9714, allocations: 46.19 kB / 0.5392 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.9715, allocations: 26.94 kB / 0.5393 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004803/0.9763, allocations: 1.456 MB / 0.5407 GB, free: 107.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01158/0.9878, allocations: 6.258 MB / 0.5468 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00378/0.9916, allocations: 1.03 MB / 0.5478 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007268/0.9923, allocations: 360 kB / 0.5481 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1985/1.191, allocations: 34.82 MB / 0.5821 GB, free: 70.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/1.191, allocations: 43.06 kB / 0.5822 GB, free: 70.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 3.396e-06/1.191, allocations: 0 / 0.5822 GB, free: 70.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.006964/1.198, allocations: 1.901 MB / 0.584 GB, free: 68.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/1.198, allocations: 192.4 kB / 0.5842 GB, free: 68.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009801/1.208, allocations: 0.8325 MB / 0.585 GB, free: 67.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/1.208, allocations: 37.7 kB / 0.5851 GB, free: 67.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/1.208, allocations: 0.6021 MB / 0.5857 GB, free: 66.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002823/1.208, allocations: 284.8 kB / 0.5859 GB, free: 66.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003597/1.209, allocations: 238.8 kB / 0.5862 GB, free: 66.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/1.209, allocations: 349.9 kB / 0.5865 GB, free: 66.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005966/1.21, allocations: 302.5 kB / 0.5868 GB, free: 65.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008399/1.21, allocations: 0.8465 MB / 0.5876 GB, free: 64.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/1.212, allocations: 1.09 MB / 0.5887 GB, free: 63.51 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.526e-05/1.212, allocations: 8 kB / 0.5887 GB, free: 63.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00249/1.214, allocations: 1.231 MB / 0.5899 GB, free: 62.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/1.214, allocations: 12 kB / 0.5899 GB, free: 62.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/1.214, allocations: 19.98 kB / 0.5899 GB, free: 62.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01337/1.228, allocations: 0.5213 MB / 0.5904 GB, free: 61.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/1.229, allocations: 279.5 kB / 0.5907 GB, free: 61.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009618/1.23, allocations: 1.373 MB / 0.592 GB, free: 60.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/1.231, allocations: 119 kB / 0.5921 GB, free: 59.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/1.231, allocations: 64.03 kB / 0.5922 GB, free: 59.86 MB / 446.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.0005525/1.232, allocations: 298.5 kB / 0.5925 GB, free: 59.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003253/1.232, allocations: 115.3 kB / 0.5926 GB, free: 59.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004911/1.237, allocations: 4.587 MB / 0.5971 GB, free: 54.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.104e-05/1.237, allocations: 43.94 kB / 0.5971 GB, free: 54.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/1.237, allocations: 0 / 0.5971 GB, free: 54.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/1.237, allocations: 7.922 kB / 0.5971 GB, free: 54.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01414/1.251, allocations: 4.285 MB / 0.6013 GB, free: 50.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/1.251, allocations: 0 / 0.6013 GB, free: 50.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/1.252, allocations: 167.7 kB / 0.6015 GB, free: 50.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/1.254, allocations: 0.6683 MB / 0.6021 GB, free: 49.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.89e-05/1.254, allocations: 35.92 kB / 0.6022 GB, free: 49.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001273/1.256, allocations: 1.775 MB / 0.6039 GB, free: 47.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.256, allocations: 3.938 kB / 0.6039 GB, free: 47.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/1.258, allocations: 2.011 MB / 0.6059 GB, free: 45.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003957/1.259, allocations: 182.1 kB / 0.606 GB, free: 45.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002832/1.259, allocations: 47.67 kB / 0.6061 GB, free: 45.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007383/1.26, allocations: 20.09 kB / 0.6061 GB, free: 45.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/1.26, allocations: 56.55 kB / 0.6062 GB, free: 45.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.646e-05/1.26, allocations: 39.97 kB / 0.6062 GB, free: 45.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001036/1.261, allocations: 0.7127 MB / 0.6069 GB, free: 44.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/1.261, allocations: 4 kB / 0.6069 GB, free: 44.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003869/1.265, allocations: 1.318 MB / 0.6082 GB, free: 43.47 MB / 446.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.005531/1.27, allocations: 1.251 MB / 0.6094 GB, free: 42.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002987/1.273, allocations: 1.236 MB / 0.6106 GB, free: 41.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/1.273, allocations: 3 kB / 0.6106 GB, free: 41.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/1.275, allocations: 0.7521 MB / 0.6113 GB, free: 40.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003606/1.279, allocations: 0.5757 MB / 0.6119 GB, free: 39.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/1.283, allocations: 3.114 MB / 0.615 GB, free: 36.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006767/1.284, allocations: 0.7346 MB / 0.6157 GB, free: 35.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001362/1.285, allocations: 0.612 MB / 0.6163 GB, free: 35.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003228/1.286, allocations: 111.4 kB / 0.6164 GB, free: 35.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/1.286, allocations: 0 / 0.6164 GB, free: 35.16 MB / 446.1 MB Notification: Performance of Templates: time 0.1057/1.391, allocations: 57.88 MB / 0.6729 GB, free: 9.797 MB / 478.1 MB " [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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/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: 13.050145123008406]