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.001914/0.001915, allocations: 116.8 kB / 18.41 MB, free: 4.668 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.001718/0.001718, allocations: 190.9 kB / 21.35 MB, free: 1.734 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: 222.9 MB / 247 MB, free: 4.332 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.001745/0.001745, allocations: 43.92 kB / 358.7 MB, free: 8.488 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1113, allocations: 49.44 MB / 408.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2986/0.4099, allocations: 62.85 MB / 470.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03055/0.4405, allocations: 22.46 MB / 493.4 MB, free: 3.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001854/0.4424, allocations: 28.06 kB / 493.4 MB, free: 3.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.4448, allocations: 0.7394 MB / 494.2 MB, free: 2.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01783/0.4627, allocations: 5.776 MB / 499.9 MB, free: 14.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.4734, allocations: 3.453 MB / 0.4916 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0192/0.4926, allocations: 9.056 MB / 0.5004 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.4942, allocations: 0.69 MB / 0.5011 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002444/0.4966, allocations: 1.059 MB / 0.5021 GB, free: 200 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.498, allocations: 0.8246 MB / 0.503 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.4982, allocations: 92 kB / 0.503 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0171/0.5153, allocations: 7.668 MB / 0.5105 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006083/0.516, allocations: 290.9 kB / 0.5108 GB, free: 7.316 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001231/0.5172, allocations: 0.7114 MB / 0.5115 GB, free: 6.602 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01628/0.5335, allocations: 5.77 MB / 0.5171 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5335, allocations: 0 / 0.5171 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5336, allocations: 4 kB / 0.5171 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.5336, allocations: 0 / 0.5171 GB, free: 0.8125 MB / 414.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.006978/0.5406, allocations: 2.535 MB / 0.5196 GB, free: 14.21 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.5406, allocations: 8.031 kB / 0.5196 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00478/0.5454, allocations: 0.6595 MB / 0.5203 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/0.5477, allocations: 1.052 MB / 0.5213 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.328e-05/0.5478, allocations: 74.58 kB / 0.5214 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.5479, allocations: 99.94 kB / 0.5215 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003819/0.5518, allocations: 1.675 MB / 0.5231 GB, free: 10.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.5518, allocations: 3.938 kB / 0.5231 GB, free: 10.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.5519, allocations: 48 kB / 0.5231 GB, free: 10.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.194e-05/0.552, allocations: 24 kB / 0.5232 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003403/0.5554, allocations: 1.467 MB / 0.5246 GB, free: 8.906 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.5659, allocations: 8.41 MB / 0.5328 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/0.5693, allocations: 1.691 MB / 0.5345 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006657/0.57, allocations: 404.5 kB / 0.5349 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.137/0.707, allocations: 63.67 MB / 0.597 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.788e-05/0.7071, allocations: 48.48 kB / 0.5971 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=77): time 4.017e-06/0.7071, allocations: 0 / 0.5971 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of matching and sorting (n=77): time 0.006687/0.7138, allocations: 2.008 MB / 0.599 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.714, allocations: 188.5 kB / 0.5992 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/0.7157, allocations: 0.9646 MB / 0.6002 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.7158, allocations: 45.64 kB / 0.6002 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005561/0.7164, allocations: 0.578 MB / 0.6008 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003408/0.7167, allocations: 293.5 kB / 0.601 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003994/0.7171, allocations: 238.8 kB / 0.6013 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001969/0.7174, allocations: 349.9 kB / 0.6016 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006754/0.718, allocations: 306.4 kB / 0.6019 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.7191, allocations: 0.7395 MB / 0.6026 GB, free: 392 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.721, allocations: 1.1 MB / 0.6037 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.716e-05/0.721, allocations: 4 kB / 0.6037 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002726/0.7238, allocations: 1.255 MB / 0.6049 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.7238, allocations: 12 kB / 0.6049 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/0.7239, allocations: 16 kB / 0.605 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003431/0.7273, allocations: 0.518 MB / 0.6055 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.7285, allocations: 283.5 kB / 0.6057 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.7299, allocations: 1.369 MB / 0.6071 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.731, allocations: 135.8 kB / 0.6072 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.7311, allocations: 68.02 kB / 0.6073 GB, free: 11.38 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.0007013/0.7319, allocations: 296.2 kB / 0.6075 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.7322, allocations: 131.1 kB / 0.6077 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005968/0.7382, allocations: 4.487 MB / 0.6121 GB, free: 6.438 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.408e-05/0.7383, allocations: 47.92 kB / 0.6121 GB, free: 6.391 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.517e-06/0.7383, allocations: 3.938 kB / 0.6121 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.7383, allocations: 3.984 kB / 0.6121 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006929/0.7453, allocations: 4.946 MB / 0.6169 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/0.7453, allocations: 4 kB / 0.6169 GB, free: 1.246 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008608/0.7462, allocations: 167.7 kB / 0.6171 GB, free: 1.082 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.7479, allocations: 0.6685 MB / 0.6178 GB, free: 416 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.748, allocations: 23.98 kB / 0.6178 GB, free: 392 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2369/0.9849, allocations: 1.759 MB / 0.6195 GB, free: 188.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.985, allocations: 3.469 kB / 0.6195 GB, free: 188.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.9875, allocations: 2.032 MB / 0.6215 GB, free: 188 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004183/0.988, allocations: 276.1 kB / 0.6217 GB, free: 187.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/0.9882, allocations: 42.28 kB / 0.6218 GB, free: 187.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/0.9887, allocations: 22.78 kB / 0.6218 GB, free: 187.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.435e-05/0.9888, allocations: 54.81 kB / 0.6219 GB, free: 187.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.772e-05/0.9888, allocations: 35.42 kB / 0.6219 GB, free: 187.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001047/0.9899, allocations: 0.8288 MB / 0.6227 GB, free: 187.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9899, allocations: 0 / 0.6227 GB, free: 187.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004543/0.9944, allocations: 1.293 MB / 0.624 GB, free: 187.7 MB / 0.5137 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.005287/0.9997, allocations: 1.264 MB / 0.6252 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00314/1.003, allocations: 1.264 MB / 0.6264 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.003, allocations: 1.375 kB / 0.6264 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001885/1.005, allocations: 0.9052 MB / 0.6273 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004187/1.009, allocations: 0.7329 MB / 0.628 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005072/1.014, allocations: 3.131 MB / 0.6311 GB, free: 186.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/1.015, allocations: 1.313 MB / 0.6324 GB, free: 185.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005452/1.016, allocations: 127.1 kB / 0.6325 GB, free: 185.6 MB / 0.5137 GB Notification: Performance of SimCode: time 2.154e-06/1.016, allocations: 0 / 0.6325 GB, free: 185.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.06575/1.081, allocations: 51.08 MB / 0.6824 GB, free: 145.8 MB / 0.5137 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: 14.36830676801037]