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.001881/0.001881, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002315/0.002315, allocations: 210.9 kB / 24.48 MB, free: 3.977 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.478/1.478, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.001549/0.001549, allocations: 47.92 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2119, allocations: 53.36 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06285/0.2747, allocations: 57.55 MB / 489.9 MB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.3022, allocations: 20.08 MB / 0.498 GB, free: 8.871 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006854/0.3029, allocations: 47.56 kB / 0.498 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001645/0.3045, allocations: 0.6674 MB / 0.4987 GB, free: 8.152 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01364/0.3182, allocations: 5.818 MB / 0.5044 GB, free: 2.332 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008383/0.3265, allocations: 3.433 MB / 0.5077 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01613/0.3427, allocations: 9.098 MB / 0.5166 GB, free: 5.684 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.3437, allocations: 0.5881 MB / 0.5172 GB, free: 5.086 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001917/0.3456, allocations: 1.078 MB / 0.5182 GB, free: 4.004 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001111/0.3467, allocations: 0.8557 MB / 0.5191 GB, free: 3.145 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001578/0.3469, allocations: 92 kB / 0.5192 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01378/0.3607, allocations: 7.59 MB / 0.5266 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003356/0.361, allocations: 302.8 kB / 0.5269 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006962/0.3617, allocations: 0.5834 MB / 0.5274 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008819/0.3705, allocations: 5.778 MB / 0.5331 GB, free: 4.781 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3705, allocations: 0 / 0.5331 GB, free: 4.781 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3705, allocations: 3.938 kB / 0.5331 GB, free: 4.777 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.3705, allocations: 4 kB / 0.5331 GB, free: 4.773 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.00591/0.3764, allocations: 2.448 MB / 0.5355 GB, free: 2.281 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.3765, allocations: 8.031 kB / 0.5355 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005118/0.3816, allocations: 0.6712 MB / 0.5361 GB, free: 1.602 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002085/0.3837, allocations: 0.9643 MB / 0.5371 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.872e-05/0.3838, allocations: 74.39 kB / 0.5371 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3839, allocations: 103.9 kB / 0.5372 GB, free: 440 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1716/0.5555, allocations: 1.973 MB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.5555, allocations: 6.938 kB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.5556, allocations: 45.91 kB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.5556, allocations: 25.62 kB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003337/0.559, allocations: 1.46 MB / 0.5407 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007275/0.5662, allocations: 6.255 MB / 0.5468 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002579/0.5688, allocations: 1.038 MB / 0.5478 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000476/0.5693, allocations: 364 kB / 0.5481 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1114/0.6807, allocations: 34.83 MB / 0.5821 GB, free: 70.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.6807, allocations: 51 kB / 0.5822 GB, free: 70.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.655e-06/0.6807, allocations: 0 / 0.5822 GB, free: 70.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005403/0.6861, allocations: 1.897 MB / 0.584 GB, free: 68.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.6862, allocations: 196.4 kB / 0.5842 GB, free: 68.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007455/0.6869, allocations: 0.8239 MB / 0.585 GB, free: 67.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.687, allocations: 41.7 kB / 0.5851 GB, free: 67.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.6872, allocations: 0.5938 MB / 0.5857 GB, free: 67.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.6873, allocations: 293.1 kB / 0.5859 GB, free: 66.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.6876, allocations: 238.8 kB / 0.5862 GB, free: 66.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.802e-05/0.6877, allocations: 349.9 kB / 0.5865 GB, free: 66.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004519/0.6881, allocations: 297 kB / 0.5868 GB, free: 65.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006243/0.6887, allocations: 0.8479 MB / 0.5876 GB, free: 64.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.6898, allocations: 1.09 MB / 0.5887 GB, free: 63.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.6898, allocations: 4 kB / 0.5887 GB, free: 63.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001702/0.6915, allocations: 1.235 MB / 0.5899 GB, free: 62.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.6915, allocations: 15.98 kB / 0.5899 GB, free: 62.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.6916, allocations: 16 kB / 0.5899 GB, free: 62.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00346/0.695, allocations: 0.5301 MB / 0.5904 GB, free: 61.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.6961, allocations: 279.6 kB / 0.5907 GB, free: 61.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007133/0.6968, allocations: 1.368 MB / 0.592 GB, free: 60.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006363/0.6974, allocations: 117.6 kB / 0.5921 GB, free: 60.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-05/0.6975, allocations: 71.92 kB / 0.5922 GB, free: 59.94 MB / 446.1 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.0003387/0.6978, allocations: 293.1 kB / 0.5925 GB, free: 59.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/0.698, allocations: 111.3 kB / 0.5926 GB, free: 59.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/0.7016, allocations: 4.589 MB / 0.5971 GB, free: 54.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-05/0.7016, allocations: 43.94 kB / 0.5971 GB, free: 54.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.7016, allocations: 0 / 0.5971 GB, free: 54.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.7017, allocations: 3.984 kB / 0.5971 GB, free: 54.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.7054, allocations: 4.287 MB / 0.6013 GB, free: 50.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.7054, allocations: 0 / 0.6013 GB, free: 50.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007987/0.7062, allocations: 171.7 kB / 0.6015 GB, free: 50.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.7076, allocations: 0.6761 MB / 0.6021 GB, free: 49.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.142e-05/0.7076, allocations: 23.94 kB / 0.6022 GB, free: 49.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009028/0.7085, allocations: 1.779 MB / 0.6039 GB, free: 47.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.7085, allocations: 3.938 kB / 0.6039 GB, free: 47.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.7103, allocations: 2.007 MB / 0.6059 GB, free: 45.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.7105, allocations: 181.7 kB / 0.606 GB, free: 45.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001495/0.7106, allocations: 47.67 kB / 0.6061 GB, free: 45.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004756/0.7111, allocations: 16 kB / 0.6061 GB, free: 45.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.882e-05/0.7112, allocations: 68.19 kB / 0.6062 GB, free: 45.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.987e-05/0.7112, allocations: 35.97 kB / 0.6062 GB, free: 45.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006614/0.7119, allocations: 0.7166 MB / 0.6069 GB, free: 44.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7119, allocations: 4 kB / 0.6069 GB, free: 44.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002631/0.7145, allocations: 1.318 MB / 0.6082 GB, free: 43.55 MB / 446.1 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.003424/0.7179, allocations: 1.248 MB / 0.6094 GB, free: 42.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.72, allocations: 1.225 MB / 0.6106 GB, free: 41.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.72, allocations: 4 kB / 0.6106 GB, free: 41.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.7212, allocations: 0.7475 MB / 0.6113 GB, free: 40.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002481/0.7237, allocations: 0.5802 MB / 0.6119 GB, free: 39.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.7268, allocations: 3.119 MB / 0.615 GB, free: 36.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004764/0.7273, allocations: 0.7307 MB / 0.6157 GB, free: 35.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008626/0.7281, allocations: 0.615 MB / 0.6163 GB, free: 35.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.7283, allocations: 111.4 kB / 0.6164 GB, free: 35.23 MB / 446.1 MB Notification: Performance of SimCode: time 3.91e-07/0.7283, allocations: 0 / 0.6164 GB, free: 35.23 MB / 446.1 MB Notification: Performance of Templates: time 0.06802/0.7964, allocations: 57.88 MB / 0.6729 GB, free: 9.863 MB / 478.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/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.329309818000183]