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.001639/0.001639, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002126/0.002126, allocations: 209.9 kB / 24.48 MB, free: 3.934 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.48/1.48, allocations: 230.5 MB / 258.1 MB, free: 7.77 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.002025/0.002025, allocations: 67.91 kB / 379 MB, free: 2.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2946, allocations: 53.4 MB / 432.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06793/0.3625, allocations: 57.55 MB / 489.9 MB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03072/0.3932, allocations: 20.08 MB / 0.4981 GB, free: 8.629 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001543/0.3948, allocations: 43.56 kB / 0.4981 GB, free: 8.586 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002285/0.397, allocations: 0.6713 MB / 0.4987 GB, free: 7.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01781/0.4149, allocations: 5.817 MB / 0.5044 GB, free: 2.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01051/0.4254, allocations: 3.429 MB / 0.5078 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0177/0.4431, allocations: 9.09 MB / 0.5167 GB, free: 5.453 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001426/0.4445, allocations: 0.5835 MB / 0.5172 GB, free: 4.859 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002531/0.447, allocations: 1.074 MB / 0.5183 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.4483, allocations: 0.8128 MB / 0.5191 GB, free: 2.965 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001757/0.4485, allocations: 92 kB / 0.5192 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01607/0.4646, allocations: 7.293 MB / 0.5263 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005147/0.4651, allocations: 298.8 kB / 0.5266 GB, free: 11.28 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000973/0.466, allocations: 0.5833 MB / 0.5271 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01452/0.4806, allocations: 5.774 MB / 0.5328 GB, free: 4.906 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.4806, allocations: 3.938 kB / 0.5328 GB, free: 4.902 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4806, allocations: 0 / 0.5328 GB, free: 4.902 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.563e-05/0.4806, allocations: 0 / 0.5328 GB, free: 4.902 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.007113/0.4877, allocations: 2.46 MB / 0.5352 GB, free: 2.398 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.4878, allocations: 11.98 kB / 0.5352 GB, free: 2.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004756/0.4925, allocations: 0.6595 MB / 0.5358 GB, free: 1.727 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/0.4947, allocations: 0.9643 MB / 0.5368 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-05/0.4947, allocations: 74.39 kB / 0.5368 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.4949, allocations: 103.9 kB / 0.5369 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2399/0.7348, allocations: 1.976 MB / 0.5389 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.617e-05/0.7349, allocations: 6.5 kB / 0.5389 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.735, allocations: 45.25 kB / 0.5389 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-05/0.735, allocations: 26.97 kB / 0.5389 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003511/0.7385, allocations: 1.453 MB / 0.5404 GB, free: 107.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007914/0.7465, allocations: 6.255 MB / 0.5465 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.749, allocations: 1.037 MB / 0.5475 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004835/0.7495, allocations: 363.1 kB / 0.5478 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.107/0.8565, allocations: 34.83 MB / 0.5819 GB, free: 70.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.8566, allocations: 39.06 kB / 0.5819 GB, free: 70.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 3.006e-06/0.8566, allocations: 0 / 0.5819 GB, free: 70.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005165/0.8617, allocations: 1.906 MB / 0.5838 GB, free: 68.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.8618, allocations: 188.4 kB / 0.5839 GB, free: 68.37 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007732/0.8626, allocations: 0.828 MB / 0.5847 GB, free: 67.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/0.8626, allocations: 37.7 kB / 0.5848 GB, free: 67.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.8629, allocations: 0.6045 MB / 0.5854 GB, free: 66.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.8631, allocations: 285.7 kB / 0.5856 GB, free: 66.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.8633, allocations: 242.8 kB / 0.5859 GB, free: 66.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.133e-05/0.8634, allocations: 345.9 kB / 0.5862 GB, free: 66.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.8638, allocations: 306.5 kB / 0.5865 GB, free: 65.81 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006326/0.8644, allocations: 0.844 MB / 0.5873 GB, free: 64.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.8655, allocations: 1.095 MB / 0.5884 GB, free: 63.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.8655, allocations: 8 kB / 0.5884 GB, free: 63.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001676/0.8672, allocations: 1.224 MB / 0.5896 GB, free: 62.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.8672, allocations: 12 kB / 0.5896 GB, free: 62.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.8673, allocations: 12 kB / 0.5896 GB, free: 62.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002986/0.8702, allocations: 0.5281 MB / 0.5901 GB, free: 61.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009261/0.8712, allocations: 275.6 kB / 0.5904 GB, free: 61.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000727/0.8719, allocations: 1.376 MB / 0.5917 GB, free: 59.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007233/0.8726, allocations: 118.4 kB / 0.5918 GB, free: 59.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/0.8727, allocations: 63.98 kB / 0.5919 GB, free: 59.8 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.0004335/0.8731, allocations: 299.8 kB / 0.5922 GB, free: 59.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.8733, allocations: 107.3 kB / 0.5923 GB, free: 59.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/0.8769, allocations: 4.616 MB / 0.5968 GB, free: 54.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.683e-05/0.8769, allocations: 47.92 kB / 0.5968 GB, free: 54.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.8769, allocations: 0 / 0.5968 GB, free: 54.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.8769, allocations: 3.984 kB / 0.5969 GB, free: 54.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0039/0.8808, allocations: 4.286 MB / 0.601 GB, free: 50.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.8809, allocations: 0 / 0.601 GB, free: 50.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007161/0.8816, allocations: 167.7 kB / 0.6012 GB, free: 50.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.8828, allocations: 0.6722 MB / 0.6019 GB, free: 49.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.186e-05/0.8828, allocations: 31.92 kB / 0.6019 GB, free: 49.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009449/0.8838, allocations: 1.775 MB / 0.6036 GB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.8838, allocations: 7.969 kB / 0.6036 GB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.8856, allocations: 2.007 MB / 0.6056 GB, free: 45.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.8858, allocations: 180.7 kB / 0.6058 GB, free: 45.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.8859, allocations: 47.61 kB / 0.6058 GB, free: 45.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/0.8864, allocations: 24.09 kB / 0.6058 GB, free: 45.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.8865, allocations: 60.55 kB / 0.6059 GB, free: 45.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-05/0.8865, allocations: 31.98 kB / 0.6059 GB, free: 45.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006767/0.8872, allocations: 0.7205 MB / 0.6066 GB, free: 44.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.8872, allocations: 0 / 0.6066 GB, free: 44.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003043/0.8902, allocations: 1.31 MB / 0.6079 GB, free: 43.39 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.00344/0.8937, allocations: 1.257 MB / 0.6091 GB, free: 42.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.8958, allocations: 1.236 MB / 0.6103 GB, free: 41.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.8958, allocations: 0 / 0.6103 GB, free: 41.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.8972, allocations: 0.7599 MB / 0.6111 GB, free: 40.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/0.8996, allocations: 0.5957 MB / 0.6117 GB, free: 39.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.903, allocations: 3.147 MB / 0.6147 GB, free: 36.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.9034, allocations: 0.7303 MB / 0.6154 GB, free: 35.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.9037, allocations: 119.4 kB / 0.6156 GB, free: 35.61 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.9037, allocations: 4 kB / 0.6156 GB, free: 35.61 MB / 446.1 MB Notification: Performance of Templates: time 0.05455/0.9582, allocations: 50.51 MB / 0.6649 GB, free: 1.09 MB / 462.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/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_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: 12.917961611878127]