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.00196/0.00196, allocations: 99.53 kB / 20.97 MB, free: 3.457 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.001974/0.001974, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 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 1.566/1.566, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 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 1.322e-06/1.322e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.431e-05/2.563e-05, allocations: 6.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2041/0.2042, allocations: 64.7 MB / 336.9 MB, free: 1.117 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03526/0.2394, allocations: 22.37 MB / 359.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001605/0.241, allocations: 43.56 kB / 359.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002446/0.2435, allocations: 0.6904 MB / 360 MB, free: 9.945 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01737/0.2609, allocations: 5.904 MB / 365.9 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01071/0.2716, allocations: 3.48 MB / 369.4 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02139/0.293, allocations: 9.149 MB / 378.5 MB, free: 7.254 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.2945, allocations: 0.6267 MB / 379.2 MB, free: 6.617 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002856/0.2974, allocations: 1.426 MB / 380.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001324/0.2987, allocations: 0.7128 MB / 381.3 MB, free: 4.473 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002025/0.2989, allocations: 92 kB / 381.4 MB, free: 4.383 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01619/0.3151, allocations: 7.314 MB / 388.7 MB, free: 13.06 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004923/0.3156, allocations: 298.8 kB / 389 MB, free: 12.77 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.3166, allocations: 0.4989 MB / 389.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01596/0.3326, allocations: 6.917 MB / 396.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.3326, allocations: 0 / 396.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3326, allocations: 0 / 396.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.212e-05/0.3326, allocations: 0 / 396.4 MB, free: 5.336 MB / 346.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.007768/0.3404, allocations: 2.637 MB / 399 MB, free: 2.648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.3405, allocations: 15.98 kB / 399.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005224/0.3457, allocations: 0.9747 MB / 400 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002324/0.348, allocations: 0.9625 MB / 401 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.071e-05/0.3481, allocations: 74.39 kB / 401.1 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001769/0.3483, allocations: 104.4 kB / 401.2 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004369/0.3526, allocations: 2.081 MB / 403.2 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/0.3527, allocations: 15.88 kB / 403.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.3528, allocations: 44 kB / 403.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/0.3528, allocations: 28 kB / 403.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003609/0.3564, allocations: 1.422 MB / 404.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.3686, allocations: 8.288 MB / 413 MB, free: 4.117 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003135/0.3717, allocations: 1.07 MB / 414.1 MB, free: 3.027 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007779/0.3725, allocations: 380.6 kB / 414.5 MB, free: 2.648 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2657/0.6382, allocations: 34.84 MB / 449.3 MB, free: 127.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.6382, allocations: 53.28 kB / 449.4 MB, free: 127.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.625e-06/0.6382, allocations: 0 / 449.4 MB, free: 127.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.00556/0.6438, allocations: 2.035 MB / 451.4 MB, free: 126.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.6438, allocations: 192.2 kB / 451.6 MB, free: 125.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.6449, allocations: 1.048 MB / 452.7 MB, free: 124.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.143e-05/0.645, allocations: 41.7 kB / 452.7 MB, free: 124.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003369/0.6453, allocations: 0.6867 MB / 453.4 MB, free: 124.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.6456, allocations: 310.6 kB / 453.7 MB, free: 123.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002995/0.6459, allocations: 276.4 kB / 454 MB, free: 123.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.646, allocations: 0.5434 MB / 454.5 MB, free: 123.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000452/0.6464, allocations: 296 kB / 454.8 MB, free: 122.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007369/0.6472, allocations: 1.044 MB / 455.8 MB, free: 121.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.6484, allocations: 1.265 MB / 457.1 MB, free: 119.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.411e-05/0.6485, allocations: 4 kB / 457.1 MB, free: 119.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001904/0.6504, allocations: 1.263 MB / 458.4 MB, free: 118.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.6504, allocations: 11.75 kB / 458.4 MB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.6504, allocations: 16 kB / 458.4 MB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00308/0.6535, allocations: 0.5153 MB / 458.9 MB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009603/0.6545, allocations: 271.5 kB / 459.2 MB, free: 117.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008625/0.6553, allocations: 1.963 MB / 461.1 MB, free: 115.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007604/0.6561, allocations: 121.7 kB / 461.2 MB, free: 115.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.712e-05/0.6562, allocations: 68.05 kB / 461.3 MB, free: 115.6 MB / 378.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.0004394/0.6566, allocations: 339.1 kB / 461.6 MB, free: 115.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/0.6569, allocations: 135.3 kB / 461.8 MB, free: 115.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/0.6598, allocations: 2.863 MB / 464.6 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.038e-05/0.6598, allocations: 51.86 kB / 464.7 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.6598, allocations: 0 / 464.7 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.6598, allocations: 3.984 kB / 464.7 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/0.6634, allocations: 3.326 MB / 468 MB, free: 109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.6634, allocations: 4 kB / 468 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007071/0.6641, allocations: 163.8 kB / 468.2 MB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.6653, allocations: 0.5942 MB / 468.8 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.413e-05/0.6654, allocations: 23.98 kB / 468.8 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009037/0.6663, allocations: 2.135 MB / 470.9 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6663, allocations: 0.8438 kB / 470.9 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.668, allocations: 1.781 MB / 472.7 MB, free: 104.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.6682, allocations: 182.3 kB / 472.9 MB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.6684, allocations: 43.72 kB / 472.9 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/0.6689, allocations: 20 kB / 473 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.265e-05/0.669, allocations: 60.48 kB / 473 MB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.085e-05/0.669, allocations: 36.05 kB / 473.1 MB, free: 103.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007743/0.6698, allocations: 0.7946 MB / 473.8 MB, free: 103 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.6698, allocations: 0 / 473.8 MB, free: 103 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00306/0.6729, allocations: 1.314 MB / 475.2 MB, free: 101.7 MB / 378.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.004816/0.6777, allocations: 1.403 MB / 476.6 MB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002278/0.68, allocations: 1.068 MB / 477.6 MB, free: 99.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.68, allocations: 0 / 477.6 MB, free: 99.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.6811, allocations: 0.6542 MB / 478.3 MB, free: 98.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/0.6839, allocations: 0.6319 MB / 478.9 MB, free: 98.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003214/0.6871, allocations: 2.909 MB / 481.8 MB, free: 95.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.6876, allocations: 0.7423 MB / 482.6 MB, free: 94.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008874/0.6885, allocations: 0.6066 MB / 483.2 MB, free: 93.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.6887, allocations: 120.5 kB / 483.3 MB, free: 93.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6887, allocations: 0 / 483.3 MB, free: 93.64 MB / 378.7 MB Notification: Performance of Templates: time 0.05908/0.7478, allocations: 55.57 MB / 0.5262 GB, free: 38.5 MB / 378.7 MB " [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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 240] 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: 8.481071682064794]