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.001965/0.001965, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002593/0.002593, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.485/1.485, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 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 2.124e-06/2.124e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.173e-05/3.385e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2432/0.2432, allocations: 57.12 MB / 329.4 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03153/0.2747, allocations: 20.09 MB / 349.5 MB, free: 3.969 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.2762, allocations: 43.56 kB / 349.5 MB, free: 3.926 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002212/0.2784, allocations: 0.6748 MB / 350.2 MB, free: 3.246 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01711/0.2955, allocations: 5.912 MB / 356.1 MB, free: 13.31 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01036/0.3059, allocations: 3.48 MB / 359.6 MB, free: 9.812 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02043/0.3263, allocations: 9.161 MB / 368.8 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.328, allocations: 0.6228 MB / 369.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003729/0.3317, allocations: 1.418 MB / 370.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/0.3342, allocations: 0.7167 MB / 371.5 MB, free: 13.76 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004776/0.3346, allocations: 96 kB / 371.6 MB, free: 13.67 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01628/0.3509, allocations: 7.297 MB / 378.9 MB, free: 6.363 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005814/0.3515, allocations: 310.7 kB / 379.2 MB, free: 6.059 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.3525, allocations: 0.495 MB / 379.7 MB, free: 5.562 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01573/0.3683, allocations: 6.913 MB / 386.6 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3683, allocations: 0 / 386.6 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3683, allocations: 3.938 kB / 386.6 MB, free: 14.63 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.002e-05/0.3684, allocations: 0 / 386.6 MB, free: 14.63 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.007758/0.3761, allocations: 2.448 MB / 389.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3762, allocations: 8.031 kB / 389.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00582/0.382, allocations: 0.9864 MB / 390.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002895/0.3849, allocations: 1.011 MB / 391.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.385, allocations: 78.33 kB / 391.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003027/0.3853, allocations: 104.4 kB / 391.3 MB, free: 9.922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005849/0.3911, allocations: 1.977 MB / 393.2 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.793e-05/0.3912, allocations: 7.875 kB / 393.3 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003003/0.3915, allocations: 48 kB / 393.3 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.254e-05/0.3915, allocations: 28 kB / 393.3 MB, free: 7.641 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004386/0.3959, allocations: 1.451 MB / 394.8 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01169/0.4076, allocations: 6.272 MB / 401.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003341/0.411, allocations: 1.036 MB / 402.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007765/0.4117, allocations: 363 kB / 402.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2439/0.6557, allocations: 34.81 MB / 437.3 MB, free: 132.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.6557, allocations: 44.69 kB / 437.3 MB, free: 132.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.334e-06/0.6557, allocations: 0 / 437.3 MB, free: 132.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.006041/0.6617, allocations: 2.042 MB / 439.3 MB, free: 132.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.6618, allocations: 201.1 kB / 439.5 MB, free: 132 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008838/0.6627, allocations: 0.8235 MB / 440.4 MB, free: 131.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.684e-05/0.6627, allocations: 41.55 kB / 440.4 MB, free: 131.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.663, allocations: 0.597 MB / 441 MB, free: 131.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.6632, allocations: 287.8 kB / 441.3 MB, free: 131.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/0.6635, allocations: 237.4 kB / 441.5 MB, free: 130.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.651e-05/0.6636, allocations: 346.1 kB / 441.8 MB, free: 130.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005072/0.6641, allocations: 302 kB / 442.1 MB, free: 130.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007018/0.6648, allocations: 0.8482 MB / 443 MB, free: 129.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.666, allocations: 1.092 MB / 444.1 MB, free: 128.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.666, allocations: 4.062 kB / 444.1 MB, free: 128.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001958/0.668, allocations: 1.288 MB / 445.4 MB, free: 128.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.668, allocations: 15.25 kB / 445.4 MB, free: 128.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/0.668, allocations: 11.75 kB / 445.4 MB, free: 128.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003235/0.6713, allocations: 0.5211 MB / 445.9 MB, free: 128.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.6723, allocations: 283.5 kB / 446.2 MB, free: 128.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007714/0.6731, allocations: 1.371 MB / 447.6 MB, free: 127 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000728/0.6738, allocations: 116 kB / 447.7 MB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.22e-05/0.6739, allocations: 70.11 kB / 447.8 MB, free: 126.9 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.0004098/0.6743, allocations: 304 kB / 448 MB, free: 126.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.6745, allocations: 137.5 kB / 448.2 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003768/0.6783, allocations: 4.624 MB / 452.8 MB, free: 124.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/0.6783, allocations: 47.92 kB / 452.9 MB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.6783, allocations: 8 kB / 452.9 MB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.6783, allocations: 3.984 kB / 452.9 MB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/0.6821, allocations: 4.288 MB / 457.2 MB, free: 120 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.6821, allocations: 2.938 kB / 457.2 MB, free: 120 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007569/0.6829, allocations: 171.7 kB / 457.3 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.6842, allocations: 0.6694 MB / 458 MB, free: 119.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.396e-05/0.6842, allocations: 23.98 kB / 458 MB, free: 119.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009591/0.6852, allocations: 1.783 MB / 459.8 MB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6852, allocations: 0 / 459.8 MB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.6871, allocations: 2.049 MB / 461.8 MB, free: 115.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.6873, allocations: 176.9 kB / 462 MB, free: 115 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.6875, allocations: 49.41 kB / 462.1 MB, free: 115 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004777/0.6879, allocations: 20 kB / 462.1 MB, free: 115 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.688, allocations: 52.55 kB / 462.1 MB, free: 114.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/0.6881, allocations: 35.98 kB / 462.2 MB, free: 114.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006939/0.6887, allocations: 0.7166 MB / 462.9 MB, free: 114.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.6888, allocations: 0 / 462.9 MB, free: 114.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002946/0.6917, allocations: 1.315 MB / 464.2 MB, free: 112.8 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.003783/0.6955, allocations: 1.415 MB / 465.6 MB, free: 111.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.6977, allocations: 1.242 MB / 466.9 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6977, allocations: 0 / 466.9 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.6989, allocations: 0.7399 MB / 467.6 MB, free: 109.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.7015, allocations: 0.6267 MB / 468.2 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003268/0.7048, allocations: 3.118 MB / 471.3 MB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.7052, allocations: 0.7424 MB / 472.1 MB, free: 105 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009139/0.7061, allocations: 0.6133 MB / 472.7 MB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002432/0.7064, allocations: 116.5 kB / 472.8 MB, free: 104.3 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7064, allocations: 4 kB / 472.8 MB, free: 104.3 MB / 378.7 MB Notification: Performance of Templates: time 0.058/0.7644, allocations: 54.89 MB / 0.5153 GB, free: 49.94 MB / 378.7 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.574761667987332]