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.001398/0.001398, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.0015/0.0015, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 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.484/1.484, allocations: 230.5 MB / 257.4 MB, free: 7.809 MB / 206.1 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 0.002022/0.002022, allocations: 67.91 kB / 378.2 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2907, allocations: 53.41 MB / 431.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06516/0.3559, allocations: 57.55 MB / 489.2 MB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02921/0.3851, allocations: 20.08 MB / 0.4973 GB, free: 8.629 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001786/0.3868, allocations: 47.56 kB / 0.4974 GB, free: 8.582 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00223/0.3891, allocations: 0.6674 MB / 0.498 GB, free: 7.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.018/0.4071, allocations: 5.817 MB / 0.5037 GB, free: 2.094 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01159/0.4187, allocations: 3.429 MB / 0.507 GB, free: 14.67 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01771/0.4364, allocations: 9.09 MB / 0.5159 GB, free: 5.457 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.4378, allocations: 0.5835 MB / 0.5165 GB, free: 4.863 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002416/0.4402, allocations: 1.074 MB / 0.5175 GB, free: 3.785 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001328/0.4415, allocations: 0.8128 MB / 0.5183 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001805/0.4417, allocations: 92 kB / 0.5184 GB, free: 2.879 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01664/0.4583, allocations: 7.293 MB / 0.5255 GB, free: 11.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006049/0.4589, allocations: 294.8 kB / 0.5258 GB, free: 11.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001179/0.4601, allocations: 0.595 MB / 0.5264 GB, free: 10.69 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01497/0.4751, allocations: 5.77 MB / 0.532 GB, free: 4.906 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4751, allocations: 0 / 0.532 GB, free: 4.906 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4751, allocations: 0 / 0.532 GB, free: 4.906 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.4751, allocations: 0 / 0.532 GB, free: 4.906 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.006663/0.4818, allocations: 2.46 MB / 0.5344 GB, free: 2.402 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.4818, allocations: 11.98 kB / 0.5344 GB, free: 2.391 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004746/0.4866, allocations: 0.6634 MB / 0.5351 GB, free: 1.727 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.4887, allocations: 0.9643 MB / 0.536 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.4887, allocations: 74.39 kB / 0.5361 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.4889, allocations: 99.94 kB / 0.5362 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2309/0.7197, allocations: 1.976 MB / 0.5381 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.096e-05/0.7198, allocations: 6.75 kB / 0.5381 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.7199, allocations: 45.25 kB / 0.5382 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.593e-05/0.72, allocations: 26.91 kB / 0.5382 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003479/0.7234, allocations: 1.457 MB / 0.5396 GB, free: 107.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007823/0.7313, allocations: 6.255 MB / 0.5457 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.7339, allocations: 1.031 MB / 0.5467 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00049/0.7344, allocations: 367.6 kB / 0.5471 GB, free: 102.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1095/0.8439, allocations: 34.83 MB / 0.5811 GB, free: 70.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.844, allocations: 51.05 kB / 0.5812 GB, free: 70.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.345e-06/0.844, allocations: 0 / 0.5812 GB, free: 70.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005458/0.8494, allocations: 1.894 MB / 0.583 GB, free: 68.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.8495, allocations: 192.4 kB / 0.5832 GB, free: 68.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000983/0.8505, allocations: 0.8239 MB / 0.584 GB, free: 67.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.662e-05/0.8506, allocations: 45.69 kB / 0.584 GB, free: 67.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000303/0.8509, allocations: 0.5977 MB / 0.5846 GB, free: 66.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000209/0.8511, allocations: 291 kB / 0.5849 GB, free: 66.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.8513, allocations: 234.8 kB / 0.5851 GB, free: 66.47 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/0.8514, allocations: 353.9 kB / 0.5855 GB, free: 66.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/0.8519, allocations: 298.5 kB / 0.5857 GB, free: 65.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006419/0.8525, allocations: 0.8479 MB / 0.5866 GB, free: 64.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.8537, allocations: 1.095 MB / 0.5876 GB, free: 63.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.8537, allocations: 4 kB / 0.5877 GB, free: 63.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001826/0.8555, allocations: 1.227 MB / 0.5888 GB, free: 62.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.8555, allocations: 12 kB / 0.5889 GB, free: 62.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.8556, allocations: 16.88 kB / 0.5889 GB, free: 62.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003002/0.8586, allocations: 0.5273 MB / 0.5894 GB, free: 61.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000969/0.8595, allocations: 271.6 kB / 0.5897 GB, free: 61.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000771/0.8603, allocations: 1.376 MB / 0.591 GB, free: 59.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.8611, allocations: 116.3 kB / 0.5911 GB, free: 59.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-05/0.8612, allocations: 72.02 kB / 0.5912 GB, free: 59.81 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.0004991/0.8617, allocations: 289.8 kB / 0.5915 GB, free: 59.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/0.862, allocations: 107.3 kB / 0.5916 GB, free: 59.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003798/0.8658, allocations: 4.615 MB / 0.5961 GB, free: 54.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.964e-05/0.8658, allocations: 47.92 kB / 0.5961 GB, free: 54.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.8658, allocations: 0 / 0.5961 GB, free: 54.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.8659, allocations: 3.984 kB / 0.5961 GB, free: 54.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004259/0.8701, allocations: 4.289 MB / 0.6003 GB, free: 50.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.8701, allocations: 0 / 0.6003 GB, free: 50.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007285/0.8709, allocations: 167.7 kB / 0.6005 GB, free: 50.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.8722, allocations: 0.6761 MB / 0.6011 GB, free: 49.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.483e-05/0.8722, allocations: 27.92 kB / 0.6011 GB, free: 49.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.8732, allocations: 1.775 MB / 0.6029 GB, free: 47.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.8732, allocations: 3.938 kB / 0.6029 GB, free: 47.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.8752, allocations: 2.011 MB / 0.6048 GB, free: 45.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002946/0.8755, allocations: 181.2 kB / 0.605 GB, free: 45.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.8757, allocations: 55.7 kB / 0.6051 GB, free: 45.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.8762, allocations: 16 kB / 0.6051 GB, free: 45.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.8763, allocations: 60.44 kB / 0.6051 GB, free: 45.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.399e-05/0.8764, allocations: 35.98 kB / 0.6052 GB, free: 45.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009946/0.8774, allocations: 0.7205 MB / 0.6059 GB, free: 44.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8774, allocations: 0 / 0.6059 GB, free: 44.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004801/0.8822, allocations: 1.306 MB / 0.6072 GB, free: 43.41 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.004827/0.887, allocations: 1.263 MB / 0.6084 GB, free: 42.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.8894, allocations: 1.232 MB / 0.6096 GB, free: 41.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.8894, allocations: 0 / 0.6096 GB, free: 41.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.8907, allocations: 0.7602 MB / 0.6103 GB, free: 40.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002844/0.8935, allocations: 0.5817 MB / 0.6109 GB, free: 39.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/0.8974, allocations: 3.103 MB / 0.6139 GB, free: 36.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005768/0.8979, allocations: 0.7385 MB / 0.6147 GB, free: 35.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001051/0.899, allocations: 0.6166 MB / 0.6153 GB, free: 35.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.8992, allocations: 115.4 kB / 0.6154 GB, free: 35.08 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.8992, allocations: 0 / 0.6154 GB, free: 35.08 MB / 446.1 MB Notification: Performance of Templates: time 0.07343/0.9727, allocations: 57.23 MB / 0.6713 GB, free: 10.29 MB / 478.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] 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.737833073362708]