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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.00164, allocations: 109.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002181/0.002181, allocations: 210.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2669, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06553/0.3325, allocations: 63.02 MB / 472.9 MB, free: 2.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02831/0.3609, allocations: 22.45 MB / 495.4 MB, free: 11.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001537/0.3625, allocations: 31.75 kB / 495.4 MB, free: 11.8 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.3648, allocations: 0.7296 MB / 496.2 MB, free: 11.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01681/0.3816, allocations: 5.799 MB / 0.4902 GB, free: 5.266 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01001/0.3916, allocations: 3.464 MB / 0.4936 GB, free: 1.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01789/0.4096, allocations: 9.052 MB / 0.5024 GB, free: 8.637 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.4112, allocations: 0.6962 MB / 0.5031 GB, free: 7.93 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002605/0.4138, allocations: 1.063 MB / 0.5041 GB, free: 6.863 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001573/0.4154, allocations: 0.8246 MB / 0.5049 GB, free: 6.035 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004263/0.4159, allocations: 96 kB / 0.505 GB, free: 5.941 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01651/0.4324, allocations: 7.672 MB / 0.5125 GB, free: 14.26 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006949/0.4331, allocations: 290.9 kB / 0.5128 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.4346, allocations: 0.7114 MB / 0.5135 GB, free: 13.26 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01372/0.4483, allocations: 5.761 MB / 0.5191 GB, free: 7.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.4484, allocations: 0 / 0.5191 GB, free: 7.488 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4484, allocations: 3.938 kB / 0.5191 GB, free: 7.484 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.515e-05/0.4485, allocations: 0 / 0.5191 GB, free: 7.484 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.007277/0.4558, allocations: 2.478 MB / 0.5215 GB, free: 4.949 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.4558, allocations: 8.031 kB / 0.5215 GB, free: 4.941 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004807/0.4606, allocations: 0.6549 MB / 0.5222 GB, free: 4.285 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002406/0.4631, allocations: 1.036 MB / 0.5232 GB, free: 3.203 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.398e-05/0.4632, allocations: 82.33 kB / 0.5233 GB, free: 3.121 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002128/0.4634, allocations: 99.94 kB / 0.5234 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003944/0.4673, allocations: 1.674 MB / 0.525 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.152e-05/0.4674, allocations: 7.938 kB / 0.525 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.4675, allocations: 44 kB / 0.5251 GB, free: 1.145 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.138e-05/0.4675, allocations: 28 kB / 0.5251 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003488/0.471, allocations: 1.467 MB / 0.5265 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01066/0.4817, allocations: 8.388 MB / 0.5347 GB, free: 6.645 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003484/0.4852, allocations: 1.702 MB / 0.5364 GB, free: 4.781 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006696/0.4859, allocations: 403.6 kB / 0.5368 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.375/0.861, allocations: 70.64 MB / 0.6057 GB, free: 47.59 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.8611, allocations: 49.88 kB / 0.6058 GB, free: 47.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.775e-06/0.8611, allocations: 0 / 0.6058 GB, free: 47.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005204/0.8663, allocations: 1.996 MB / 0.6077 GB, free: 46.04 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.8664, allocations: 188.5 kB / 0.6079 GB, free: 45.81 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009519/0.8673, allocations: 0.968 MB / 0.6089 GB, free: 45.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.8674, allocations: 40.64 kB / 0.6089 GB, free: 45.05 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.8677, allocations: 0.5621 MB / 0.6094 GB, free: 44.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.8679, allocations: 284.2 kB / 0.6097 GB, free: 44.53 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.8681, allocations: 231.3 kB / 0.6099 GB, free: 44.38 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.116e-05/0.8682, allocations: 352.2 kB / 0.6103 GB, free: 44.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004354/0.8687, allocations: 300.9 kB / 0.6106 GB, free: 43.86 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006448/0.8693, allocations: 0.7447 MB / 0.6113 GB, free: 43.05 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.8704, allocations: 1.102 MB / 0.6124 GB, free: 42.12 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.8705, allocations: 5.312 kB / 0.6124 GB, free: 42.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001769/0.8722, allocations: 1.244 MB / 0.6136 GB, free: 41.26 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.8723, allocations: 12 kB / 0.6136 GB, free: 41.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.8723, allocations: 12 kB / 0.6136 GB, free: 41.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003105/0.8754, allocations: 0.5199 MB / 0.6141 GB, free: 40.76 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009689/0.8764, allocations: 285.6 kB / 0.6144 GB, free: 40.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007812/0.8772, allocations: 1.377 MB / 0.6157 GB, free: 39.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007447/0.8779, allocations: 127.2 kB / 0.6159 GB, free: 39.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.733e-05/0.878, allocations: 68.41 kB / 0.6159 GB, free: 39.04 MB / 462.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.0004248/0.8785, allocations: 304.7 kB / 0.6162 GB, free: 38.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.8787, allocations: 122.6 kB / 0.6163 GB, free: 38.71 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.8823, allocations: 4.491 MB / 0.6207 GB, free: 34.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.017e-05/0.8823, allocations: 51.92 kB / 0.6208 GB, free: 34.86 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.8823, allocations: 4 kB / 0.6208 GB, free: 34.86 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.8823, allocations: 3.984 kB / 0.6208 GB, free: 34.85 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004361/0.8867, allocations: 4.941 MB / 0.6256 GB, free: 29.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.8867, allocations: 0 / 0.6256 GB, free: 29.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000731/0.8875, allocations: 171.7 kB / 0.6258 GB, free: 29.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.8887, allocations: 0.6645 MB / 0.6264 GB, free: 28.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.8888, allocations: 23.98 kB / 0.6264 GB, free: 28.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009808/0.8898, allocations: 1.758 MB / 0.6281 GB, free: 27.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8898, allocations: 0 / 0.6281 GB, free: 27.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001984/0.8918, allocations: 2.033 MB / 0.6301 GB, free: 25.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.8921, allocations: 266.2 kB / 0.6304 GB, free: 24.75 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.8923, allocations: 39.62 kB / 0.6304 GB, free: 24.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004456/0.8927, allocations: 20 kB / 0.6304 GB, free: 24.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.244e-05/0.8928, allocations: 59.58 kB / 0.6305 GB, free: 24.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.8928, allocations: 27.98 kB / 0.6305 GB, free: 24.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008719/0.8937, allocations: 0.8342 MB / 0.6313 GB, free: 23.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.8937, allocations: 0 / 0.6313 GB, free: 23.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003645/0.8974, allocations: 1.284 MB / 0.6326 GB, free: 22.57 MB / 462.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.004535/0.9019, allocations: 1.257 MB / 0.6338 GB, free: 21.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002417/0.9044, allocations: 1.271 MB / 0.6351 GB, free: 20.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.9044, allocations: 0 / 0.6351 GB, free: 20.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.9058, allocations: 0.9091 MB / 0.636 GB, free: 19.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/0.9092, allocations: 0.7241 MB / 0.6367 GB, free: 18.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003514/0.9127, allocations: 3.083 MB / 0.6397 GB, free: 15.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.9132, allocations: 1.31 MB / 0.6409 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/0.9135, allocations: 123.4 kB / 0.6411 GB, free: 14.15 MB / 462.1 MB Notification: Performance of SimCode: time 5.2e-07/0.9135, allocations: 0 / 0.6411 GB, free: 14.15 MB / 462.1 MB Notification: Performance of Templates: time 0.06044/0.974, allocations: 51.44 MB / 0.6913 GB, free: 10.8 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "" 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