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.001639/0.001639, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 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.001862/0.001862, allocations: 213.3 kB / 24.54 MB, free: 4.016 MB / 14.72 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 1.447/1.447, allocations: 230.3 MB / 258 MB, free: 8.215 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002129/0.002129, allocations: 63.89 kB / 378.7 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2252, allocations: 53.37 MB / 432.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.0696/0.2948, allocations: 63.99 MB / 496.1 MB, free: 6.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02958/0.3243, allocations: 22.59 MB / 0.5065 GB, free: 180 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.3254, allocations: 43.56 kB / 0.5066 GB, free: 136 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.3273, allocations: 0.7297 MB / 0.5073 GB, free: 15.39 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0147/0.342, allocations: 5.837 MB / 0.513 GB, free: 9.555 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008797/0.3508, allocations: 3.51 MB / 0.5164 GB, free: 6.047 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01936/0.3701, allocations: 9.102 MB / 0.5253 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001358/0.3715, allocations: 0.5765 MB / 0.5259 GB, free: 12.24 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002092/0.3736, allocations: 1.09 MB / 0.5269 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001196/0.3748, allocations: 0.8557 MB / 0.5278 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001833/0.375, allocations: 92 kB / 0.5279 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01546/0.3904, allocations: 7.703 MB / 0.5354 GB, free: 2.484 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005049/0.3909, allocations: 298.8 kB / 0.5357 GB, free: 2.191 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.392, allocations: 0.7115 MB / 0.5364 GB, free: 1.477 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2336/0.6257, allocations: 5.777 MB / 0.542 GB, free: 21.9 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.6257, allocations: 0 / 0.542 GB, free: 21.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.6257, allocations: 0 / 0.542 GB, free: 21.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.6257, allocations: 0 / 0.542 GB, free: 21.9 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.008078/0.6338, allocations: 2.462 MB / 0.5444 GB, free: 20.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.6338, allocations: 17.95 kB / 0.5444 GB, free: 20.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004682/0.6385, allocations: 0.6637 MB / 0.5451 GB, free: 20.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.6405, allocations: 0.96 MB / 0.546 GB, free: 20.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.382e-05/0.6406, allocations: 74.98 kB / 0.5461 GB, free: 20.52 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.6407, allocations: 98.72 kB / 0.5462 GB, free: 20.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003276/0.644, allocations: 1.672 MB / 0.5478 GB, free: 20.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.644, allocations: 6.156 kB / 0.5478 GB, free: 20.13 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.6441, allocations: 49.59 kB / 0.5479 GB, free: 20.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.6441, allocations: 30.75 kB / 0.5479 GB, free: 20.13 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002971/0.6471, allocations: 1.465 MB / 0.5493 GB, free: 20.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008493/0.6556, allocations: 8.052 MB / 0.5572 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002719/0.6583, allocations: 1.045 MB / 0.5582 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005554/0.6588, allocations: 370.7 kB / 0.5586 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1184/0.7772, allocations: 34.69 MB / 0.5924 GB, free: 14.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.606e-05/0.7773, allocations: 40.75 kB / 0.5925 GB, free: 14.03 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.655e-06/0.7773, allocations: 0 / 0.5925 GB, free: 14.03 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.006561/0.7839, allocations: 1.918 MB / 0.5943 GB, free: 12.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/0.784, allocations: 188.4 kB / 0.5945 GB, free: 12.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001716/0.7857, allocations: 0.9692 MB / 0.5955 GB, free: 11.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/0.7858, allocations: 40.64 kB / 0.5955 GB, free: 11.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005643/0.7864, allocations: 0.5814 MB / 0.5961 GB, free: 11.16 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003215/0.7867, allocations: 286.5 kB / 0.5964 GB, free: 10.93 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003682/0.7871, allocations: 238.2 kB / 0.5966 GB, free: 10.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.7873, allocations: 354.5 kB / 0.5969 GB, free: 10.44 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006063/0.7879, allocations: 296.4 kB / 0.5972 GB, free: 10.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.7889, allocations: 0.7436 MB / 0.5979 GB, free: 9.453 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.7906, allocations: 1.096 MB / 0.599 GB, free: 8.523 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.444e-05/0.7906, allocations: 5.5 kB / 0.599 GB, free: 8.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002475/0.7931, allocations: 1.25 MB / 0.6002 GB, free: 7.668 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.7931, allocations: 12 kB / 0.6002 GB, free: 7.656 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.574e-05/0.7931, allocations: 16.69 kB / 0.6003 GB, free: 7.641 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003624/0.7967, allocations: 0.5177 MB / 0.6008 GB, free: 7.164 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.798, allocations: 276.1 kB / 0.601 GB, free: 6.926 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.7993, allocations: 1.38 MB / 0.6024 GB, free: 5.609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.8004, allocations: 142.4 kB / 0.6025 GB, free: 5.492 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.8005, allocations: 62.98 kB / 0.6026 GB, free: 5.441 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.0005914/0.8011, allocations: 304.2 kB / 0.6029 GB, free: 5.238 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003696/0.8015, allocations: 127.2 kB / 0.603 GB, free: 5.113 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005451/0.8069, allocations: 4.606 MB / 0.6075 GB, free: 2.141 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.613e-05/0.807, allocations: 41.88 kB / 0.6075 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.807, allocations: 0 / 0.6075 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.807, allocations: 7.969 kB / 0.6075 GB, free: 2.102 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006528/0.8135, allocations: 4.981 MB / 0.6124 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.8135, allocations: 4 kB / 0.6124 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008845/0.8144, allocations: 163.2 kB / 0.6125 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001695/0.8161, allocations: 0.6829 MB / 0.6132 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.592e-05/0.8162, allocations: 27.61 kB / 0.6132 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/0.818, allocations: 1.785 MB / 0.615 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.818, allocations: 0 / 0.615 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003023/0.821, allocations: 2.024 MB / 0.617 GB, free: 10.74 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005936/0.8216, allocations: 201.4 kB / 0.6172 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/0.8219, allocations: 52.14 kB / 0.6172 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006337/0.8225, allocations: 19.38 kB / 0.6172 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.8226, allocations: 59.8 kB / 0.6173 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.367e-05/0.8227, allocations: 31.3 kB / 0.6173 GB, free: 10.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001314/0.824, allocations: 0.8327 MB / 0.6181 GB, free: 9.824 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.824, allocations: 0 / 0.6181 GB, free: 9.824 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005883/0.8299, allocations: 1.297 MB / 0.6194 GB, free: 8.598 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.008303/0.8382, allocations: 1.264 MB / 0.6206 GB, free: 7.48 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003014/0.8412, allocations: 1.219 MB / 0.6218 GB, free: 6.648 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.8412, allocations: 5.562 kB / 0.6218 GB, free: 6.645 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.8429, allocations: 0.7481 MB / 0.6225 GB, free: 6.141 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004115/0.847, allocations: 0.7269 MB / 0.6233 GB, free: 5.535 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005274/0.8523, allocations: 3.135 MB / 0.6263 GB, free: 2.625 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/0.8534, allocations: 1.316 MB / 0.6276 GB, free: 1.281 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001619/0.855, allocations: 0.6235 MB / 0.6282 GB, free: 0.668 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003748/0.8554, allocations: 131.4 kB / 0.6283 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of SimCode: time 1.513e-06/0.8554, allocations: 0 / 0.6283 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of Templates: time 0.1015/0.9569, allocations: 59.37 MB / 0.6863 GB, free: 5.578 MB / 0.5294 GB " [Timeout remaining time 659] 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: 9.167445864528418]