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.001859/0.001859, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.00233/0.00233, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.531/1.531, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001641/0.001641, allocations: 47.92 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1248, allocations: 53.34 MB / 426.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3281/0.4529, allocations: 63.43 MB / 490.2 MB, free: 14.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03268/0.4855, allocations: 22.5 MB / 0.5007 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002332/0.4879, allocations: 39.62 kB / 0.5007 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002625/0.4905, allocations: 0.7374 MB / 0.5015 GB, free: 9.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0226/0.5131, allocations: 5.836 MB / 0.5072 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01125/0.5243, allocations: 3.468 MB / 0.5106 GB, free: 484 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01854/0.5429, allocations: 9.071 MB / 0.5194 GB, free: 7.289 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002108/0.545, allocations: 0.5987 MB / 0.52 GB, free: 6.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003185/0.5482, allocations: 1.078 MB / 0.521 GB, free: 5.598 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001473/0.5497, allocations: 0.8596 MB / 0.5219 GB, free: 4.734 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001797/0.5498, allocations: 96 kB / 0.522 GB, free: 4.641 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01843/0.5683, allocations: 7.684 MB / 0.5295 GB, free: 12.94 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005954/0.5689, allocations: 302.7 kB / 0.5298 GB, free: 12.64 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.5702, allocations: 0.7115 MB / 0.5305 GB, free: 11.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01774/0.5879, allocations: 5.782 MB / 0.5361 GB, free: 6.133 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.5879, allocations: 0 / 0.5361 GB, free: 6.133 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5879, allocations: 0 / 0.5361 GB, free: 6.133 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.5879, allocations: 3.938 kB / 0.5361 GB, free: 6.129 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.009/0.5969, allocations: 2.535 MB / 0.5386 GB, free: 3.531 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.597, allocations: 11.97 kB / 0.5386 GB, free: 3.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004923/0.6019, allocations: 0.6634 MB / 0.5393 GB, free: 2.855 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00232/0.6042, allocations: 1.037 MB / 0.5403 GB, free: 1.773 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.231e-05/0.6043, allocations: 78.95 kB / 0.5403 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.6045, allocations: 108.7 kB / 0.5404 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004019/0.6085, allocations: 1.671 MB / 0.5421 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.6085, allocations: 7.938 kB / 0.5421 GB, free: 15.76 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.6086, allocations: 44 kB / 0.5421 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.062e-05/0.6087, allocations: 28 kB / 0.5422 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003635/0.6123, allocations: 1.467 MB / 0.5436 GB, free: 14.22 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0135/0.6258, allocations: 8.403 MB / 0.5518 GB, free: 5.211 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003491/0.6293, allocations: 1.638 MB / 0.5534 GB, free: 3.406 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006546/0.63, allocations: 367.4 kB / 0.5537 GB, free: 3.043 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3731/1.003, allocations: 70.65 MB / 0.6227 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/1.003, allocations: 44.31 kB / 0.6228 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=77): time 3.326e-06/1.003, allocations: 0 / 0.6228 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=77): time 0.009294/1.012, allocations: 1.995 MB / 0.6247 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/1.012, allocations: 189.5 kB / 0.6249 GB, free: 169.1 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/1.014, allocations: 0.9606 MB / 0.6258 GB, free: 169 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.993e-05/1.014, allocations: 39.55 kB / 0.6259 GB, free: 169 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004657/1.015, allocations: 0.5821 MB / 0.6265 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/1.015, allocations: 285.8 kB / 0.6267 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000441/1.015, allocations: 247.1 kB / 0.627 GB, free: 168.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.779e-05/1.016, allocations: 348.2 kB / 0.6273 GB, free: 168.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007531/1.016, allocations: 303 kB / 0.6276 GB, free: 168 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/1.017, allocations: 0.7444 MB / 0.6283 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/1.019, allocations: 1.093 MB / 0.6294 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.762e-05/1.019, allocations: 5.094 kB / 0.6294 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0033/1.023, allocations: 1.25 MB / 0.6306 GB, free: 166 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/1.023, allocations: 11.25 kB / 0.6306 GB, free: 166 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-05/1.023, allocations: 15.03 kB / 0.6306 GB, free: 166 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005009/1.028, allocations: 0.5155 MB / 0.6311 GB, free: 165.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/1.029, allocations: 278.9 kB / 0.6314 GB, free: 165.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/1.031, allocations: 1.378 MB / 0.6327 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/1.032, allocations: 133.5 kB / 0.6329 GB, free: 164.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/1.032, allocations: 68.45 kB / 0.6329 GB, free: 164.6 MB / 0.5137 GB 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.0008487/1.033, allocations: 304.2 kB / 0.6332 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004637/1.033, allocations: 128.9 kB / 0.6333 GB, free: 164.3 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006184/1.04, allocations: 4.412 MB / 0.6377 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.727e-05/1.04, allocations: 46.45 kB / 0.6377 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/1.04, allocations: 0 / 0.6377 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/1.04, allocations: 5.594 kB / 0.6377 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005513/1.045, allocations: 4.894 MB / 0.6425 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/1.045, allocations: 0 / 0.6425 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008637/1.046, allocations: 167.8 kB / 0.6426 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001728/1.048, allocations: 0.6662 MB / 0.6433 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.742e-05/1.048, allocations: 24.95 kB / 0.6433 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/1.049, allocations: 1.758 MB / 0.645 GB, free: 158.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/1.049, allocations: 1.25 kB / 0.645 GB, free: 158.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/1.052, allocations: 1.985 MB / 0.647 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003009/1.052, allocations: 284.7 kB / 0.6472 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/1.052, allocations: 46 kB / 0.6473 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/1.053, allocations: 19.09 kB / 0.6473 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.219e-05/1.053, allocations: 51.83 kB / 0.6474 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.035e-05/1.053, allocations: 34.7 kB / 0.6474 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001084/1.054, allocations: 0.8297 MB / 0.6482 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/1.054, allocations: 0 / 0.6482 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003654/1.058, allocations: 1.297 MB / 0.6495 GB, free: 156.3 MB / 0.5137 GB 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.004053/1.062, allocations: 1.254 MB / 0.6507 GB, free: 155.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002428/1.064, allocations: 1.209 MB / 0.6519 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.064, allocations: 1.688 kB / 0.6519 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001312/1.065, allocations: 0.7301 MB / 0.6526 GB, free: 155 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003277/1.069, allocations: 0.7272 MB / 0.6533 GB, free: 154.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/1.072, allocations: 3.096 MB / 0.6563 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004983/1.073, allocations: 1.312 MB / 0.6576 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001033/1.074, allocations: 0.6285 MB / 0.6582 GB, free: 149.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002449/1.074, allocations: 131.4 kB / 0.6583 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of SimCode: time 9.42e-07/1.074, allocations: 0 / 0.6583 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.06386/1.138, allocations: 58.01 MB / 0.715 GB, free: 91.88 MB / 0.5137 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/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: 9.655917793512344]