Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008442/0.0008442, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0008601/0.0008601, allocations: 156.8 kB / 25.44 MB, free: 8.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8988/0.8988, allocations: 158.6 MB / 187.2 MB, free: 3.062 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.448e-05/3.618e-05, allocations: 2.281 kB / 299.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2107/0.2108, allocations: 56.94 MB / 356.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01895/0.2297, allocations: 20.08 MB / 376.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.2311, allocations: 43.66 kB / 376.8 MB, free: 13.66 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001683/0.2328, allocations: 0.6809 MB / 377.4 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01469/0.2475, allocations: 5.896 MB / 383.3 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008541/0.2561, allocations: 3.484 MB / 386.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00994/0.266, allocations: 9.166 MB / 396 MB, free: 6.91 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.2673, allocations: 0.5763 MB / 396.6 MB, free: 6.539 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.2698, allocations: 1.412 MB / 398 MB, free: 5.777 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001059/0.2709, allocations: 0.7129 MB / 398.7 MB, free: 5.488 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.271, allocations: 92.19 kB / 398.8 MB, free: 5.488 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01216/0.2832, allocations: 7.296 MB / 406.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004365/0.2836, allocations: 296.8 kB / 406.4 MB, free: 15.31 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00103/0.2846, allocations: 0.4923 MB / 406.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01532/0.3, allocations: 6.899 MB / 413.7 MB, free: 8.262 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3, allocations: 0 / 413.7 MB, free: 8.262 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3, allocations: 0 / 413.7 MB, free: 8.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.608e-05/0.3, allocations: 0 / 413.7 MB, free: 8.262 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.005702/0.3057, allocations: 2.435 MB / 416.2 MB, free: 5.809 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.244e-05/0.3058, allocations: 11.98 kB / 416.2 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/0.3085, allocations: 0.6682 MB / 416.9 MB, free: 5.133 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001739/0.3102, allocations: 0.9637 MB / 417.8 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.3102, allocations: 74.39 kB / 417.9 MB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.13e-05/0.3103, allocations: 96.38 kB / 418 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.3127, allocations: 1.973 MB / 420 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3127, allocations: 15.88 kB / 420 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.937e-05/0.3128, allocations: 44 kB / 420 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.3128, allocations: 28 kB / 420.1 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001966/0.3148, allocations: 1.459 MB / 421.5 MB, free: 280 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005756/0.3206, allocations: 6.227 MB / 427.7 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001688/0.3223, allocations: 1.034 MB / 428.8 MB, free: 8.898 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.3227, allocations: 359 kB / 429.1 MB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05715/0.3798, allocations: 33.49 MB / 462.6 MB, free: 7.043 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.3798, allocations: 51 kB / 462.7 MB, free: 6.984 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 3.166e-06/0.3799, allocations: 0 / 462.7 MB, free: 6.984 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.003572/0.3834, allocations: 1.898 MB / 464.6 MB, free: 5.078 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.05e-05/0.3835, allocations: 192.4 kB / 464.7 MB, free: 4.848 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007392/0.3842, allocations: 0.8308 MB / 465.6 MB, free: 3.992 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/0.3843, allocations: 41.7 kB / 465.6 MB, free: 3.945 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/0.3846, allocations: 0.597 MB / 466.2 MB, free: 3.348 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004485/0.385, allocations: 290 kB / 466.5 MB, free: 3.066 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/0.3852, allocations: 234.8 kB / 466.7 MB, free: 2.832 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.3853, allocations: 341.9 kB / 467.1 MB, free: 2.492 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.3857, allocations: 302.5 kB / 467.4 MB, free: 2.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005816/0.3863, allocations: 0.8518 MB / 468.2 MB, free: 1.113 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.3873, allocations: 1.098 MB / 469.3 MB, free: 15.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.3873, allocations: 4 kB / 469.3 MB, free: 15.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00143/0.3887, allocations: 1.228 MB / 470.5 MB, free: 14.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.3888, allocations: 12 kB / 470.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.3888, allocations: 12 kB / 470.6 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/0.3904, allocations: 0.5236 MB / 471.1 MB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005723/0.391, allocations: 279.6 kB / 471.4 MB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009128/0.3919, allocations: 1.369 MB / 472.7 MB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/0.3924, allocations: 123 kB / 472.8 MB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.3925, allocations: 64.03 kB / 472.9 MB, free: 12.15 MB / 410.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.0004299/0.3929, allocations: 296.2 kB / 473.2 MB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.393, allocations: 119.4 kB / 473.3 MB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003315/0.3963, allocations: 4.625 MB / 477.9 MB, free: 7.148 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-05/0.3964, allocations: 43.94 kB / 478 MB, free: 7.105 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.3964, allocations: 3.938 kB / 478 MB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3964, allocations: 11.97 kB / 478 MB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.4003, allocations: 4.269 MB / 482.3 MB, free: 2.781 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.4003, allocations: 4 kB / 482.3 MB, free: 2.777 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.4008, allocations: 163.7 kB / 482.4 MB, free: 2.617 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008315/0.4016, allocations: 0.681 MB / 483.1 MB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.567e-05/0.4017, allocations: 27.98 kB / 483.1 MB, free: 1.906 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009979/0.4027, allocations: 1.775 MB / 484.9 MB, free: 84 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4027, allocations: 3.938 kB / 484.9 MB, free: 80 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.4045, allocations: 2.022 MB / 486.9 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002408/0.4047, allocations: 182.3 kB / 487.1 MB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.587e-05/0.4048, allocations: 43.72 kB / 487.2 MB, free: 13.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.4051, allocations: 19.98 kB / 487.2 MB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.304e-05/0.4051, allocations: 62.19 kB / 487.2 MB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.4052, allocations: 31.92 kB / 487.3 MB, free: 13.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009469/0.4061, allocations: 0.7166 MB / 488 MB, free: 12.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4061, allocations: 0 / 488 MB, free: 12.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003226/0.4093, allocations: 1.306 MB / 489.3 MB, free: 11.64 MB / 426.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.003961/0.4133, allocations: 1.428 MB / 490.7 MB, free: 10.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.4153, allocations: 1.237 MB / 492 MB, free: 9.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4153, allocations: 4 kB / 492 MB, free: 9.066 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009404/0.4163, allocations: 0.7518 MB / 492.7 MB, free: 8.316 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/0.418, allocations: 0.5761 MB / 493.3 MB, free: 7.734 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.4217, allocations: 3.112 MB / 496.4 MB, free: 4.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.4222, allocations: 0.7342 MB / 497.1 MB, free: 3.824 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.4225, allocations: 116.5 kB / 497.3 MB, free: 3.711 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/0.4225, allocations: 7.875 kB / 497.3 MB, free: 3.703 MB / 426.7 MB Notification: Performance of Templates: time 0.204/0.6265, allocations: 50.47 MB / 0.5349 GB, free: 176.5 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T Variables in the result:suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T,time [Calling sys.exit(0), Time elapsed: 7.94083930645138]