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.001554/0.001554, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001713/0.001713, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.412/1.412, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.001523/0.001523, allocations: 47.92 kB / 379 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2534, allocations: 53.36 MB / 432.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.0681/0.3215, allocations: 63.99 MB / 496.4 MB, free: 6.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03229/0.3537, allocations: 22.59 MB / 0.5068 GB, free: 52 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.3551, allocations: 43.56 kB / 0.5068 GB, free: 8 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002236/0.3573, allocations: 0.7336 MB / 0.5075 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01632/0.3736, allocations: 5.84 MB / 0.5133 GB, free: 9.426 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01032/0.3839, allocations: 3.505 MB / 0.5167 GB, free: 5.922 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01913/0.4031, allocations: 9.099 MB / 0.5256 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.4045, allocations: 0.5804 MB / 0.5261 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002682/0.4072, allocations: 1.098 MB / 0.5272 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001757/0.4089, allocations: 0.8518 MB / 0.528 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003702/0.4093, allocations: 92 kB / 0.5281 GB, free: 10.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01656/0.4258, allocations: 7.715 MB / 0.5357 GB, free: 2.344 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000654/0.4265, allocations: 290.8 kB / 0.5359 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001523/0.428, allocations: 0.7115 MB / 0.5366 GB, free: 1.344 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2436/0.6716, allocations: 5.777 MB / 0.5423 GB, free: 23.1 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.6716, allocations: 0 / 0.5423 GB, free: 23.1 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6716, allocations: 0 / 0.5423 GB, free: 23.1 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.547e-05/0.6717, allocations: 0.5 kB / 0.5423 GB, free: 23.1 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.008867/0.6805, allocations: 2.468 MB / 0.5447 GB, free: 22.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.6806, allocations: 12.97 kB / 0.5447 GB, free: 22.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004775/0.6854, allocations: 0.6588 MB / 0.5453 GB, free: 21.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002351/0.6877, allocations: 0.9657 MB / 0.5463 GB, free: 21.72 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.652e-05/0.6878, allocations: 78.03 kB / 0.5464 GB, free: 21.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.6879, allocations: 100.6 kB / 0.5464 GB, free: 21.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003308/0.6912, allocations: 1.67 MB / 0.5481 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.6913, allocations: 10.22 kB / 0.5481 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.6914, allocations: 45.5 kB / 0.5481 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.6914, allocations: 26.62 kB / 0.5482 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002972/0.6944, allocations: 1.464 MB / 0.5496 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008348/0.7027, allocations: 8.055 MB / 0.5575 GB, free: 16.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00269/0.7054, allocations: 1.043 MB / 0.5585 GB, free: 16.08 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005097/0.7059, allocations: 357.5 kB / 0.5588 GB, free: 16.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1119/0.8178, allocations: 34.7 MB / 0.5927 GB, free: 14.46 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.148e-05/0.8178, allocations: 42.69 kB / 0.5927 GB, free: 14.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.766e-06/0.8178, allocations: 0 / 0.5927 GB, free: 14.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.006303/0.8241, allocations: 1.918 MB / 0.5946 GB, free: 12.93 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001538/0.8243, allocations: 198.2 kB / 0.5948 GB, free: 12.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.826, allocations: 0.9591 MB / 0.5957 GB, free: 11.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.8261, allocations: 39.64 kB / 0.5958 GB, free: 11.93 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005048/0.8266, allocations: 0.589 MB / 0.5964 GB, free: 11.55 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.827, allocations: 285.9 kB / 0.5966 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/0.8273, allocations: 235.4 kB / 0.5968 GB, free: 11.16 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.8275, allocations: 348.3 kB / 0.5972 GB, free: 10.83 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/0.8281, allocations: 302.2 kB / 0.5975 GB, free: 10.64 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.8291, allocations: 0.7467 MB / 0.5982 GB, free: 9.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.8308, allocations: 1.101 MB / 0.5993 GB, free: 8.906 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/0.8308, allocations: 7.844 kB / 0.5993 GB, free: 8.902 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002458/0.8332, allocations: 1.246 MB / 0.6005 GB, free: 8.055 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.8333, allocations: 12 kB / 0.6005 GB, free: 8.043 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.8333, allocations: 13.59 kB / 0.6005 GB, free: 8.031 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003465/0.8368, allocations: 0.5205 MB / 0.601 GB, free: 7.551 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.8379, allocations: 276.2 kB / 0.6013 GB, free: 7.309 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.8392, allocations: 1.383 MB / 0.6026 GB, free: 5.992 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.8404, allocations: 136.1 kB / 0.6028 GB, free: 5.879 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.8405, allocations: 69.27 kB / 0.6028 GB, free: 5.824 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.0006177/0.8411, allocations: 294.3 kB / 0.6031 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004225/0.8416, allocations: 135.2 kB / 0.6032 GB, free: 5.496 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005537/0.8471, allocations: 4.598 MB / 0.6077 GB, free: 2.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.521e-05/0.8471, allocations: 39 kB / 0.6078 GB, free: 2.492 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.8472, allocations: 4 kB / 0.6078 GB, free: 2.488 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.8472, allocations: 3.984 kB / 0.6078 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006757/0.8539, allocations: 4.983 MB / 0.6127 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.8539, allocations: 0 / 0.6127 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008606/0.8548, allocations: 170.7 kB / 0.6128 GB, free: 14.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00164/0.8564, allocations: 0.6769 MB / 0.6135 GB, free: 14.19 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.8566, allocations: 23.23 kB / 0.6135 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001683/0.8582, allocations: 1.785 MB / 0.6152 GB, free: 12.62 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.8582, allocations: 4 kB / 0.6152 GB, free: 12.61 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003008/0.8612, allocations: 2.033 MB / 0.6172 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006379/0.8619, allocations: 201.7 kB / 0.6174 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004135/0.8623, allocations: 41.34 kB / 0.6175 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007383/0.863, allocations: 22.42 kB / 0.6175 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.8631, allocations: 59.23 kB / 0.6175 GB, free: 10.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.44e-05/0.8632, allocations: 30.42 kB / 0.6176 GB, free: 10.81 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001456/0.8647, allocations: 0.8399 MB / 0.6184 GB, free: 10.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8647, allocations: 0 / 0.6184 GB, free: 10.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00651/0.8712, allocations: 1.29 MB / 0.6196 GB, free: 8.977 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.008574/0.8798, allocations: 1.266 MB / 0.6209 GB, free: 7.859 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003104/0.8829, allocations: 1.223 MB / 0.6221 GB, free: 7.027 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/0.8829, allocations: 4 kB / 0.6221 GB, free: 7.023 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.8846, allocations: 0.7444 MB / 0.6228 GB, free: 6.523 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003937/0.8886, allocations: 0.7367 MB / 0.6235 GB, free: 5.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00585/0.8944, allocations: 3.171 MB / 0.6266 GB, free: 2.883 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.8956, allocations: 1.308 MB / 0.6279 GB, free: 1.543 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/0.8961, allocations: 130.1 kB / 0.628 GB, free: 1.418 MB / 478.1 MB Notification: Performance of SimCode: time 1.433e-06/0.8961, allocations: 0 / 0.628 GB, free: 1.418 MB / 478.1 MB Notification: Performance of Templates: time 0.07879/0.9749, allocations: 51.33 MB / 0.6782 GB, free: 14.26 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/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: 12.805505690863356]