Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001191/0.001191, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.005186/0.005186, allocations: 152 kB / 24.69 MB, free: 8.926 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8682/0.8682, allocations: 177 MB / 204.9 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.051e-05/2.197e-05, allocations: 3.828 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.03495/0.03497, allocations: 57.12 MB / 382.9 MB, free: 6.062 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01775/0.05272, allocations: 20.09 MB / 403 MB, free: 1.898 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008676/0.05359, allocations: 43.62 kB / 403 MB, free: 1.855 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.05504, allocations: 0.6826 MB / 403.7 MB, free: 1.168 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01178/0.06683, allocations: 5.917 MB / 409.6 MB, free: 11.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007318/0.07415, allocations: 3.489 MB / 413.1 MB, free: 7.758 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01012/0.08426, allocations: 9.161 MB / 422.3 MB, free: 14.48 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.08538, allocations: 0.6029 MB / 422.9 MB, free: 13.86 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00216/0.08754, allocations: 1.418 MB / 424.3 MB, free: 12.44 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007327/0.08828, allocations: 0.7089 MB / 425 MB, free: 11.73 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.08838, allocations: 92 kB / 425.1 MB, free: 11.64 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0109/0.09929, allocations: 7.304 MB / 432.4 MB, free: 4.328 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000259/0.09954, allocations: 306.7 kB / 432.7 MB, free: 4.027 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005342/0.1001, allocations: 498.9 kB / 433.2 MB, free: 3.539 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.1107, allocations: 6.91 MB / 440.1 MB, free: 12.61 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1107, allocations: 0 / 440.1 MB, free: 12.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1107, allocations: 0 / 440.1 MB, free: 12.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.1107, allocations: 0 / 440.1 MB, free: 12.61 MB / 410.7 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.003572/0.1143, allocations: 2.448 MB / 442.5 MB, free: 10.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1143, allocations: 11.98 kB / 442.6 MB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002331/0.1166, allocations: 0.6635 MB / 443.2 MB, free: 9.445 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.118, allocations: 0.9713 MB / 444.2 MB, free: 8.449 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.561e-05/0.118, allocations: 74.39 kB / 444.3 MB, free: 8.375 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-05/0.1181, allocations: 96.38 kB / 444.4 MB, free: 8.281 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.1203, allocations: 1.98 MB / 446.3 MB, free: 6.074 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.1203, allocations: 7.938 kB / 446.3 MB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.049e-05/0.1204, allocations: 48 kB / 446.4 MB, free: 6.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.1204, allocations: 24 kB / 446.4 MB, free: 5.996 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001905/0.1223, allocations: 1.459 MB / 447.9 MB, free: 4.539 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1638/0.2861, allocations: 6.223 MB / 454.1 MB, free: 117.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.288, allocations: 1.028 MB / 455.1 MB, free: 117.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004319/0.2884, allocations: 357.9 kB / 455.5 MB, free: 117.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04985/0.3383, allocations: 34.81 MB / 490.3 MB, free: 87.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.3383, allocations: 47.06 kB / 490.3 MB, free: 87.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 3.176e-06/0.3383, allocations: 0 / 490.3 MB, free: 87.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.003196/0.3415, allocations: 1.9 MB / 492.2 MB, free: 85.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.3416, allocations: 195 kB / 492.4 MB, free: 85.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.3421, allocations: 0.8204 MB / 493.2 MB, free: 84.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.3422, allocations: 41.7 kB / 493.3 MB, free: 84.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.3424, allocations: 0.5961 MB / 493.9 MB, free: 84.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.3425, allocations: 287.6 kB / 494.2 MB, free: 84.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.3426, allocations: 238.2 kB / 494.4 MB, free: 83.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.3427, allocations: 349.9 kB / 494.7 MB, free: 83.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002966/0.343, allocations: 298.5 kB / 495 MB, free: 83.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.3434, allocations: 0.8432 MB / 495.9 MB, free: 82.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007654/0.3442, allocations: 1.101 MB / 497 MB, free: 80.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.78e-06/0.3442, allocations: 4 kB / 497 MB, free: 80.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001069/0.3452, allocations: 1.237 MB / 498.2 MB, free: 79.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3453, allocations: 12 kB / 498.2 MB, free: 79.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3453, allocations: 12 kB / 498.2 MB, free: 79.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.3467, allocations: 0.5242 MB / 498.8 MB, free: 79.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004943/0.3472, allocations: 287.5 kB / 499 MB, free: 78.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005002/0.3477, allocations: 1.365 MB / 0.4887 GB, free: 77.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.3481, allocations: 121.2 kB / 0.4888 GB, free: 77.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/0.3481, allocations: 65.16 kB / 0.4889 GB, free: 77.18 MB / 410.7 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.0002549/0.3484, allocations: 300.7 kB / 0.4891 GB, free: 76.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.919e-05/0.3485, allocations: 115.3 kB / 0.4893 GB, free: 76.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002311/0.3508, allocations: 4.63 MB / 0.4938 GB, free: 72.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.3508, allocations: 47.92 kB / 0.4938 GB, free: 72.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3508, allocations: 4 kB / 0.4938 GB, free: 72.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3508, allocations: 3.984 kB / 0.4938 GB, free: 72.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/0.3533, allocations: 4.294 MB / 0.498 GB, free: 67.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3533, allocations: 0 / 0.498 GB, free: 67.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003568/0.3536, allocations: 171.7 kB / 0.4982 GB, free: 67.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006219/0.3542, allocations: 0.6646 MB / 0.4988 GB, free: 67.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.3543, allocations: 27.98 kB / 0.4989 GB, free: 67.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005894/0.3549, allocations: 1.779 MB / 0.5006 GB, free: 65.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3549, allocations: 0 / 0.5006 GB, free: 65.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.356, allocations: 2.022 MB / 0.5026 GB, free: 63.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.289e-05/0.3561, allocations: 177.2 kB / 0.5027 GB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.491e-05/0.3562, allocations: 46.55 kB / 0.5028 GB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.3564, allocations: 16 kB / 0.5028 GB, free: 62.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.3565, allocations: 64.48 kB / 0.5029 GB, free: 62.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.3565, allocations: 39.97 kB / 0.5029 GB, free: 62.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004453/0.3569, allocations: 0.7127 MB / 0.5036 GB, free: 62.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3569, allocations: 4 kB / 0.5036 GB, free: 62.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002227/0.3592, allocations: 1.306 MB / 0.5049 GB, free: 60.78 MB / 410.7 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.002275/0.3614, allocations: 1.404 MB / 0.5062 GB, free: 59.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.3626, allocations: 1.233 MB / 0.5074 GB, free: 58.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3626, allocations: 4 kB / 0.5075 GB, free: 58.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006759/0.3633, allocations: 0.7478 MB / 0.5082 GB, free: 57.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.3646, allocations: 0.5827 MB / 0.5088 GB, free: 56.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.3668, allocations: 3.127 MB / 0.5118 GB, free: 53.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.3671, allocations: 0.7304 MB / 0.5125 GB, free: 53.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.3672, allocations: 124.4 kB / 0.5126 GB, free: 52.89 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3672, allocations: 0 / 0.5126 GB, free: 52.89 MB / 410.7 MB Notification: Performance of Templates: time 0.0297/0.3969, allocations: 50.63 MB / 0.5621 GB, free: 2.277 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 7.314603371545672]