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.001673/0.001673, allocations: 115.5 kB / 18.45 MB, free: 4.602 MB / 14.72 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.001973/0.001973, allocations: 192.3 kB / 21.4 MB, free: 1.664 MB / 14.72 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 1.483/1.483, allocations: 225.6 MB / 249.8 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001558/0.001558, allocations: 51.92 kB / 366.8 MB, free: 456 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1222, allocations: 52.15 MB / 419 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3397/0.462, allocations: 63.24 MB / 482.2 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0352/0.4972, allocations: 22.52 MB / 0.4929 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.4993, allocations: 28.62 kB / 0.4929 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002695/0.502, allocations: 0.7362 MB / 0.4936 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02065/0.5226, allocations: 5.814 MB / 0.4993 GB, free: 7.051 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01185/0.5345, allocations: 3.47 MB / 0.5027 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02112/0.5556, allocations: 9.061 MB / 0.5115 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001663/0.5573, allocations: 0.6023 MB / 0.5121 GB, free: 12.45 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002884/0.5602, allocations: 1.066 MB / 0.5132 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001789/0.5619, allocations: 0.8479 MB / 0.514 GB, free: 10.53 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.5622, allocations: 95.98 kB / 0.5141 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01865/0.5808, allocations: 7.692 MB / 0.5216 GB, free: 2.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006209/0.5814, allocations: 294.8 kB / 0.5219 GB, free: 2.449 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.5829, allocations: 0.7076 MB / 0.5226 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01749/0.6004, allocations: 5.774 MB / 0.5282 GB, free: 11.95 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.6004, allocations: 4 kB / 0.5282 GB, free: 11.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6004, allocations: 4 kB / 0.5282 GB, free: 11.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.6004, allocations: 0 / 0.5282 GB, free: 11.94 MB / 430.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.008599/0.609, allocations: 2.531 MB / 0.5307 GB, free: 9.348 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.609, allocations: 8.031 kB / 0.5307 GB, free: 9.34 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005187/0.6142, allocations: 0.6673 MB / 0.5314 GB, free: 8.672 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002513/0.6167, allocations: 1.044 MB / 0.5324 GB, free: 7.586 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.289e-05/0.6168, allocations: 74.58 kB / 0.5324 GB, free: 7.512 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.617, allocations: 99.94 kB / 0.5325 GB, free: 7.414 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004008/0.621, allocations: 1.675 MB / 0.5342 GB, free: 5.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.621, allocations: 7.938 kB / 0.5342 GB, free: 5.582 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.6211, allocations: 44 kB / 0.5342 GB, free: 5.539 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.6212, allocations: 28 kB / 0.5342 GB, free: 5.512 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003666/0.6248, allocations: 1.459 MB / 0.5357 GB, free: 4.047 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01328/0.6381, allocations: 8.407 MB / 0.5439 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003559/0.6417, allocations: 1.647 MB / 0.5455 GB, free: 9.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006818/0.6423, allocations: 359.6 kB / 0.5458 GB, free: 8.875 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1585/0.8009, allocations: 63.67 MB / 0.608 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.342e-05/0.801, allocations: 43.12 kB / 0.6081 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=77): time 4.548e-06/0.801, allocations: 0 / 0.6081 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=77): time 0.01186/0.8128, allocations: 2.005 MB / 0.61 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001742/0.813, allocations: 188.5 kB / 0.6102 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0023/0.8153, allocations: 0.953 MB / 0.6111 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.8155, allocations: 41.7 kB / 0.6112 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007741/0.8162, allocations: 0.5896 MB / 0.6117 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004691/0.8167, allocations: 289.5 kB / 0.612 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005609/0.8173, allocations: 234.8 kB / 0.6122 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002591/0.8175, allocations: 349.9 kB / 0.6126 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.8186, allocations: 302.5 kB / 0.6129 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.8203, allocations: 0.7394 MB / 0.6136 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002974/0.8233, allocations: 1.101 MB / 0.6147 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.739e-05/0.8233, allocations: 4.812 kB / 0.6147 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004413/0.8277, allocations: 1.249 MB / 0.6159 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.8278, allocations: 14.19 kB / 0.6159 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-05/0.8278, allocations: 12 kB / 0.6159 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005952/0.8337, allocations: 0.5198 MB / 0.6164 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/0.8359, allocations: 279.6 kB / 0.6167 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/0.838, allocations: 1.375 MB / 0.618 GB, free: 6.848 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.8399, allocations: 134.9 kB / 0.6182 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/0.8401, allocations: 65 kB / 0.6182 GB, free: 6.652 MB / 0.5137 GB 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.0009238/0.8411, allocations: 297 kB / 0.6185 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005019/0.8416, allocations: 131.2 kB / 0.6186 GB, free: 6.223 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009722/0.8513, allocations: 4.419 MB / 0.6229 GB, free: 1.789 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.654e-05/0.8514, allocations: 48.06 kB / 0.623 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.8514, allocations: 3.984 kB / 0.623 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.408e-05/0.8514, allocations: 3.984 kB / 0.623 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/0.8626, allocations: 4.891 MB / 0.6278 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/0.8626, allocations: 4 kB / 0.6278 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/0.8642, allocations: 167.7 kB / 0.6279 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002674/0.8668, allocations: 0.6723 MB / 0.6286 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.867, allocations: 27.61 kB / 0.6286 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002748/0.8697, allocations: 1.759 MB / 0.6303 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.8697, allocations: 0 / 0.6303 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004955/0.8747, allocations: 1.981 MB / 0.6323 GB, free: 7.941 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008011/0.8755, allocations: 279.3 kB / 0.6325 GB, free: 7.648 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003154/0.8758, allocations: 43.67 kB / 0.6326 GB, free: 7.605 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009249/0.8767, allocations: 23.98 kB / 0.6326 GB, free: 7.582 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.8769, allocations: 56.48 kB / 0.6327 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.877, allocations: 35.98 kB / 0.6327 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002105/0.8791, allocations: 0.8264 MB / 0.6335 GB, free: 6.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8791, allocations: 0 / 0.6335 GB, free: 6.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006542/0.8856, allocations: 1.287 MB / 0.6348 GB, free: 5.371 MB / 0.5294 GB 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.008984/0.8946, allocations: 1.264 MB / 0.636 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005057/0.8997, allocations: 1.221 MB / 0.6372 GB, free: 2.891 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/0.8997, allocations: 4.375 kB / 0.6372 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00307/0.9027, allocations: 0.732 MB / 0.6379 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006427/0.9092, allocations: 0.7329 MB / 0.6386 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2306/1.14, allocations: 3.115 MB / 0.6417 GB, free: 196 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000681/1.14, allocations: 1.315 MB / 0.6429 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003903/1.141, allocations: 128.4 kB / 0.6431 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.804e-06/1.141, allocations: 0 / 0.6431 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.08128/1.222, allocations: 51.17 MB / 0.693 GB, free: 164.1 MB / 0.5294 GB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 13.873200783040375]