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.001627/0.001627, allocations: 85.72 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.001718/0.001718, allocations: 162.5 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.42/1.42, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.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 1.593e-06/1.593e-06, allocations: 0 / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.673e-05, allocations: 5.234 kB / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06648/0.06651, allocations: 57.14 MB / 382.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03045/0.09696, allocations: 20.09 MB / 402.3 MB, free: 7.691 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.09821, allocations: 39.62 kB / 402.3 MB, free: 7.652 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.1001, allocations: 0.6826 MB / 403 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01604/0.1162, allocations: 5.913 MB / 408.9 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009647/0.1258, allocations: 3.493 MB / 412.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02083/0.1466, allocations: 9.152 MB / 421.6 MB, free: 4.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001299/0.1479, allocations: 0.5912 MB / 422.2 MB, free: 3.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002871/0.1508, allocations: 1.426 MB / 423.6 MB, free: 2.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.152, allocations: 0.7089 MB / 424.3 MB, free: 1.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.1522, allocations: 92 kB / 424.4 MB, free: 1.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01609/0.1683, allocations: 7.308 MB / 431.7 MB, free: 10.13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005096/0.1688, allocations: 302.7 kB / 432 MB, free: 9.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009727/0.1698, allocations: 0.495 MB / 432.5 MB, free: 9.336 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01582/0.1856, allocations: 6.906 MB / 439.4 MB, free: 2.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.351e-06/0.1856, allocations: 3.938 kB / 439.4 MB, free: 2.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1856, allocations: 3.938 kB / 439.4 MB, free: 2.406 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.094e-05/0.1856, allocations: 0 / 439.4 MB, free: 2.406 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006876/0.1925, allocations: 2.452 MB / 441.8 MB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.1925, allocations: 8.031 kB / 441.9 MB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005064/0.1976, allocations: 0.6557 MB / 442.5 MB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00197/0.1996, allocations: 0.9713 MB / 443.5 MB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.269e-05/0.1996, allocations: 74.39 kB / 443.6 MB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.1998, allocations: 104.4 kB / 443.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004075/0.2039, allocations: 1.981 MB / 445.6 MB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.2039, allocations: 7.938 kB / 445.6 MB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.204, allocations: 48 kB / 445.7 MB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.886e-05/0.204, allocations: 28 kB / 445.7 MB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003639/0.2077, allocations: 1.451 MB / 447.2 MB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009195/0.2169, allocations: 6.229 MB / 453.4 MB, free: 3.926 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00298/0.2198, allocations: 1.037 MB / 454.4 MB, free: 2.879 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006365/0.2205, allocations: 359.1 kB / 454.8 MB, free: 2.523 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2523/0.4728, allocations: 34.79 MB / 489.6 MB, free: 131.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.4728, allocations: 51.05 kB / 489.6 MB, free: 131.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 2.715e-06/0.4728, allocations: 0 / 489.6 MB, free: 131.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.005281/0.4781, allocations: 1.886 MB / 491.5 MB, free: 130 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.4782, allocations: 200.2 kB / 491.7 MB, free: 129.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007591/0.4789, allocations: 0.8257 MB / 492.5 MB, free: 129 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.806e-05/0.479, allocations: 41.7 kB / 492.6 MB, free: 129 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002465/0.4792, allocations: 0.5956 MB / 493.2 MB, free: 128.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.4794, allocations: 290.9 kB / 493.5 MB, free: 128.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002459/0.4796, allocations: 234.8 kB / 493.7 MB, free: 128 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.224e-05/0.4797, allocations: 349.9 kB / 494 MB, free: 127.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/0.4801, allocations: 302.5 kB / 494.3 MB, free: 127.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006104/0.4807, allocations: 0.8479 MB / 495.2 MB, free: 126.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.4818, allocations: 1.092 MB / 496.3 MB, free: 125 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4818, allocations: 7.5 kB / 496.3 MB, free: 125 MB / 430.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001697/0.4835, allocations: 1.226 MB / 497.5 MB, free: 123.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.4836, allocations: 15.75 kB / 497.5 MB, free: 123.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.4836, allocations: 20.16 kB / 497.5 MB, free: 123.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003231/0.4868, allocations: 0.5223 MB / 498.1 MB, free: 123.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009911/0.4878, allocations: 275.6 kB / 498.3 MB, free: 122.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007579/0.4886, allocations: 1.374 MB / 499.7 MB, free: 121.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006953/0.4892, allocations: 120.5 kB / 499.8 MB, free: 121.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.082e-05/0.4893, allocations: 68.02 kB / 499.9 MB, free: 121.3 MB / 430.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.0004086/0.4897, allocations: 297.2 kB / 0.4884 GB, free: 121.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.4899, allocations: 111.3 kB / 0.4886 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.4934, allocations: 4.634 MB / 0.4931 GB, free: 116.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/0.4935, allocations: 43.94 kB / 0.4931 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4935, allocations: 7.984 kB / 0.4931 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.4935, allocations: 3.984 kB / 0.4931 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003702/0.4972, allocations: 4.283 MB / 0.4973 GB, free: 112 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.4972, allocations: 2.25 kB / 0.4973 GB, free: 112 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007481/0.4979, allocations: 163.8 kB / 0.4975 GB, free: 111.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001314/0.4993, allocations: 0.6809 MB / 0.4981 GB, free: 111.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.4e-05/0.4993, allocations: 27.98 kB / 0.4982 GB, free: 111.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009478/0.5003, allocations: 1.775 MB / 0.4999 GB, free: 109.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5003, allocations: 3.938 kB / 0.4999 GB, free: 109.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00184/0.5021, allocations: 2.014 MB / 0.5019 GB, free: 107.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.5023, allocations: 175.9 kB / 0.502 GB, free: 107.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.5025, allocations: 40.91 kB / 0.5021 GB, free: 107.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000456/0.5029, allocations: 24.08 kB / 0.5021 GB, free: 107.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-05/0.503, allocations: 64.48 kB / 0.5022 GB, free: 107 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-05/0.503, allocations: 33.23 kB / 0.5022 GB, free: 107 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006905/0.5037, allocations: 0.7205 MB / 0.5029 GB, free: 106.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5037, allocations: 0 / 0.5029 GB, free: 106.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003061/0.5068, allocations: 1.316 MB / 0.5042 GB, free: 105 MB / 430.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.003997/0.5108, allocations: 1.406 MB / 0.5056 GB, free: 103.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.5131, allocations: 1.232 MB / 0.5068 GB, free: 102.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5131, allocations: 0 / 0.5068 GB, free: 102.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.5143, allocations: 0.7483 MB / 0.5075 GB, free: 101.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/0.5169, allocations: 0.5844 MB / 0.5081 GB, free: 101.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.5202, allocations: 3.08 MB / 0.5111 GB, free: 98.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.5206, allocations: 0.7385 MB / 0.5118 GB, free: 97.26 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008919/0.5215, allocations: 0.6119 MB / 0.5124 GB, free: 96.67 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000228/0.5217, allocations: 116.5 kB / 0.5125 GB, free: 96.55 MB / 430.1 MB Notification: Performance of SimCode: time 9.41e-07/0.5217, allocations: 0 / 0.5125 GB, free: 96.55 MB / 430.1 MB Notification: Performance of Templates: time 0.06026/0.582, allocations: 54.67 MB / 0.5659 GB, free: 42.39 MB / 430.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 -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: 8.203327864408493]