Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008712/0.0008712, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00444/0.00444, allocations: 144.8 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.858/0.858, allocations: 173.4 MB / 201.2 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 3.938 kB / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.647e-05/2.81e-05, allocations: 4.812 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.03812/0.03815, allocations: 56.94 MB / 376.6 MB, free: 12.69 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.05617, allocations: 20.09 MB / 396.7 MB, free: 8.531 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001188/0.05736, allocations: 43.56 kB / 396.8 MB, free: 8.488 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.05886, allocations: 0.6787 MB / 397.4 MB, free: 7.805 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01211/0.07097, allocations: 5.901 MB / 403.3 MB, free: 1.895 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006733/0.07771, allocations: 3.486 MB / 406.8 MB, free: 14.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009867/0.08757, allocations: 9.163 MB / 416 MB, free: 5.129 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.08871, allocations: 0.5872 MB / 416.6 MB, free: 4.535 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.09093, allocations: 1.414 MB / 418 MB, free: 3.117 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007962/0.09172, allocations: 0.7089 MB / 418.7 MB, free: 2.406 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.09184, allocations: 95.94 kB / 418.8 MB, free: 2.312 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0103/0.1021, allocations: 7.3 MB / 426.1 MB, free: 11 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003873/0.1025, allocations: 302.8 kB / 426.4 MB, free: 10.71 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000756/0.1033, allocations: 0.4949 MB / 426.9 MB, free: 10.21 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01309/0.1164, allocations: 6.898 MB / 433.8 MB, free: 3.297 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1164, allocations: 0 / 433.8 MB, free: 3.297 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1164, allocations: 0 / 433.8 MB, free: 3.297 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.859e-05/0.1164, allocations: 0 / 433.8 MB, free: 3.297 MB / 394.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.004376/0.1208, allocations: 2.444 MB / 436.2 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.1208, allocations: 8.922 kB / 436.2 MB, free: 0.8008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002428/0.1232, allocations: 0.6595 MB / 436.9 MB, free: 144 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.1248, allocations: 0.9636 MB / 437.9 MB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.181e-05/0.1248, allocations: 74.39 kB / 437.9 MB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.276e-05/0.1249, allocations: 96.38 kB / 438 MB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.1272, allocations: 1.98 MB / 440 MB, free: 12.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.1272, allocations: 7.938 kB / 440 MB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.279e-05/0.1273, allocations: 48 kB / 440.1 MB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.1273, allocations: 32 kB / 440.1 MB, free: 12.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/0.1292, allocations: 1.451 MB / 441.5 MB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005497/0.1347, allocations: 6.245 MB / 447.8 MB, free: 4.816 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.1363, allocations: 1.032 MB / 448.8 MB, free: 3.766 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003791/0.1367, allocations: 358 kB / 449.2 MB, free: 3.414 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1885/0.3252, allocations: 33.49 MB / 482.7 MB, free: 103.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.3252, allocations: 47.05 kB / 482.7 MB, free: 103.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 2.806e-06/0.3252, allocations: 4 kB / 482.7 MB, free: 103.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.003247/0.3285, allocations: 1.9 MB / 484.6 MB, free: 101.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.3285, allocations: 192.4 kB / 484.8 MB, free: 101.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006127/0.3291, allocations: 0.822 MB / 485.6 MB, free: 100.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.477e-05/0.3292, allocations: 41.7 kB / 485.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.3294, allocations: 0.5971 MB / 486.2 MB, free: 99.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.3295, allocations: 288.5 kB / 486.5 MB, free: 99.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.3296, allocations: 238.8 kB / 486.8 MB, free: 99.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.54e-05/0.3297, allocations: 349.9 kB / 487.1 MB, free: 99.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003056/0.33, allocations: 302.5 kB / 487.4 MB, free: 98.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004303/0.3304, allocations: 0.8473 MB / 488.2 MB, free: 97.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008115/0.3312, allocations: 1.092 MB / 489.3 MB, free: 96.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.3312, allocations: 4 kB / 489.3 MB, free: 96.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001272/0.3325, allocations: 1.225 MB / 490.6 MB, free: 95.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.3325, allocations: 12 kB / 490.6 MB, free: 95.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.3326, allocations: 16 kB / 490.6 MB, free: 95.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/0.3341, allocations: 0.5236 MB / 491.1 MB, free: 94.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/0.3346, allocations: 275.6 kB / 491.4 MB, free: 94.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005659/0.3352, allocations: 1.372 MB / 492.8 MB, free: 92.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005502/0.3357, allocations: 126.9 kB / 492.9 MB, free: 92.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.447e-05/0.3358, allocations: 72.02 kB / 493 MB, free: 92.8 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.0003919/0.3362, allocations: 285.6 kB / 493.2 MB, free: 92.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3363, allocations: 111.3 kB / 493.3 MB, free: 92.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002624/0.3389, allocations: 4.648 MB / 498 MB, free: 87.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-05/0.339, allocations: 47.92 kB / 498 MB, free: 87.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.557e-06/0.339, allocations: 4 kB / 498 MB, free: 87.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.339, allocations: 3.984 kB / 498 MB, free: 87.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.342, allocations: 4.277 MB / 0.4906 GB, free: 83.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.342, allocations: 4 kB / 0.4906 GB, free: 83.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004269/0.3424, allocations: 167.7 kB / 0.4907 GB, free: 83.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006825/0.3431, allocations: 0.674 MB / 0.4914 GB, free: 82.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/0.3431, allocations: 27.92 kB / 0.4914 GB, free: 82.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000681/0.3438, allocations: 1.775 MB / 0.4931 GB, free: 80.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3438, allocations: 7.938 kB / 0.4931 GB, free: 80.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.3453, allocations: 2.014 MB / 0.4951 GB, free: 78.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.3455, allocations: 177 kB / 0.4953 GB, free: 78.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3456, allocations: 50.89 kB / 0.4953 GB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.3458, allocations: 24 kB / 0.4953 GB, free: 78.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.3459, allocations: 56.64 kB / 0.4954 GB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.029e-05/0.3459, allocations: 35.98 kB / 0.4954 GB, free: 78.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005409/0.3465, allocations: 0.7166 MB / 0.4961 GB, free: 77.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3465, allocations: 0 / 0.4961 GB, free: 77.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002783/0.3492, allocations: 1.306 MB / 0.4974 GB, free: 76.42 MB / 410.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.003847/0.3531, allocations: 1.414 MB / 0.4988 GB, free: 75.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.3549, allocations: 1.239 MB / 0.5 GB, free: 73.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3549, allocations: 0 / 0.5 GB, free: 73.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008644/0.3558, allocations: 0.7528 MB / 0.5007 GB, free: 73.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.3575, allocations: 0.5883 MB / 0.5013 GB, free: 72.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.3602, allocations: 3.114 MB / 0.5044 GB, free: 69.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.3606, allocations: 0.7343 MB / 0.5051 GB, free: 68.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002145/0.3608, allocations: 120.5 kB / 0.5052 GB, free: 68.54 MB / 410.7 MB Notification: Performance of SimCode: time 2.315e-06/0.3608, allocations: 0 / 0.5052 GB, free: 68.54 MB / 410.7 MB Notification: Performance of Templates: time 0.03931/0.4001, allocations: 50.51 MB / 0.5545 GB, free: 18.05 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.504389719106257]