Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009106/0.0009106, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00349/0.00349, allocations: 160.9 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8377/0.8377, allocations: 177.2 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.173e-05, allocations: 4.672 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.03403/0.03405, allocations: 57.14 MB / 383 MB, free: 6.098 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.05063, allocations: 20.08 MB / 403.1 MB, free: 1.945 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007639/0.05139, allocations: 47.5 kB / 403.1 MB, free: 1.898 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001229/0.05262, allocations: 0.6787 MB / 403.8 MB, free: 1.215 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01168/0.0643, allocations: 5.911 MB / 409.7 MB, free: 11.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007044/0.07134, allocations: 3.491 MB / 413.2 MB, free: 7.805 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009816/0.08116, allocations: 9.161 MB / 422.3 MB, free: 14.53 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008207/0.08198, allocations: 0.599 MB / 422.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001909/0.08389, allocations: 1.41 MB / 424.3 MB, free: 12.5 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006527/0.08454, allocations: 0.7166 MB / 425.1 MB, free: 11.78 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.704e-05/0.08464, allocations: 92 kB / 425.2 MB, free: 11.69 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0107/0.09534, allocations: 7.312 MB / 432.5 MB, free: 4.371 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.09555, allocations: 306.7 kB / 432.8 MB, free: 4.07 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004293/0.09598, allocations: 0.4911 MB / 433.3 MB, free: 3.578 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009258/0.1052, allocations: 6.91 MB / 440.2 MB, free: 12.65 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1052, allocations: 0 / 440.2 MB, free: 12.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1052, allocations: 0 / 440.2 MB, free: 12.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.1053, allocations: 3.938 kB / 440.2 MB, free: 12.65 MB / 410.7 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.003913/0.1092, allocations: 2.444 MB / 442.6 MB, free: 10.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.1092, allocations: 11.97 kB / 442.6 MB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002385/0.1116, allocations: 0.6596 MB / 443.3 MB, free: 9.488 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.1131, allocations: 0.9675 MB / 444.3 MB, free: 8.496 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.1131, allocations: 74.39 kB / 444.3 MB, free: 8.422 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.096e-05/0.1132, allocations: 100.3 kB / 444.4 MB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002292/0.1155, allocations: 1.976 MB / 446.4 MB, free: 6.121 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.1155, allocations: 7.938 kB / 446.4 MB, free: 6.113 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.899e-05/0.1156, allocations: 48 kB / 446.5 MB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.1156, allocations: 28 kB / 446.5 MB, free: 6.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.1175, allocations: 1.459 MB / 447.9 MB, free: 4.578 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1655/0.283, allocations: 6.218 MB / 454.2 MB, free: 117.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/0.285, allocations: 1.033 MB / 455.2 MB, free: 117.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004254/0.2855, allocations: 358.3 kB / 455.5 MB, free: 117.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04993/0.3354, allocations: 34.81 MB / 490.3 MB, free: 87.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/0.3354, allocations: 48.47 kB / 490.4 MB, free: 87.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 3.336e-06/0.3354, allocations: 0 / 490.4 MB, free: 87.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.003161/0.3386, allocations: 1.904 MB / 492.3 MB, free: 85.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.3386, allocations: 188.4 kB / 492.5 MB, free: 85.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005724/0.3392, allocations: 0.8252 MB / 493.3 MB, free: 84.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.3393, allocations: 41.7 kB / 493.3 MB, free: 84.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.3394, allocations: 0.5999 MB / 493.9 MB, free: 84.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.51e-05/0.3395, allocations: 289.8 kB / 494.2 MB, free: 84.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.3397, allocations: 234.8 kB / 494.5 MB, free: 83.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.194e-05/0.3397, allocations: 345.9 kB / 494.8 MB, free: 83.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.34, allocations: 302.5 kB / 495.1 MB, free: 83.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004061/0.3404, allocations: 0.8392 MB / 495.9 MB, free: 82.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007512/0.3412, allocations: 1.096 MB / 497 MB, free: 80.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3412, allocations: 8 kB / 497 MB, free: 80.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001062/0.3423, allocations: 1.237 MB / 498.3 MB, free: 79.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3423, allocations: 12 kB / 498.3 MB, free: 79.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3423, allocations: 12 kB / 498.3 MB, free: 79.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.3437, allocations: 0.5183 MB / 498.8 MB, free: 79.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.3442, allocations: 287.5 kB / 499.1 MB, free: 78.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004972/0.3447, allocations: 1.368 MB / 0.4887 GB, free: 77.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.3451, allocations: 122 kB / 0.4889 GB, free: 77.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.741e-05/0.3451, allocations: 64.03 kB / 0.4889 GB, free: 77.23 MB / 410.7 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.000269/0.3454, allocations: 299.4 kB / 0.4892 GB, free: 76.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.3455, allocations: 119.3 kB / 0.4893 GB, free: 76.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/0.3478, allocations: 4.631 MB / 0.4938 GB, free: 72.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.3478, allocations: 47.94 kB / 0.4939 GB, free: 72.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.3478, allocations: 4 kB / 0.4939 GB, free: 72.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3478, allocations: 3.984 kB / 0.4939 GB, free: 72.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002542/0.3504, allocations: 4.287 MB / 0.4981 GB, free: 67.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.3504, allocations: 4 kB / 0.4981 GB, free: 67.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.3508, allocations: 167.7 kB / 0.4982 GB, free: 67.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000616/0.3514, allocations: 0.6694 MB / 0.4989 GB, free: 67.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.3514, allocations: 24 kB / 0.4989 GB, free: 67.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005831/0.352, allocations: 1.779 MB / 0.5007 GB, free: 65.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.352, allocations: 4.094 kB / 0.5007 GB, free: 65.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.3532, allocations: 2.018 MB / 0.5026 GB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.3533, allocations: 180.2 kB / 0.5028 GB, free: 63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.3534, allocations: 49.88 kB / 0.5028 GB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.3536, allocations: 19.98 kB / 0.5029 GB, free: 62.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.3536, allocations: 60.48 kB / 0.5029 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.3537, allocations: 31.98 kB / 0.503 GB, free: 62.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004481/0.3541, allocations: 0.7166 MB / 0.5037 GB, free: 62.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3541, allocations: 0 / 0.5037 GB, free: 62.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002374/0.3565, allocations: 1.31 MB / 0.5049 GB, free: 60.82 MB / 410.7 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.002407/0.3589, allocations: 1.41 MB / 0.5063 GB, free: 59.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.3602, allocations: 1.232 MB / 0.5075 GB, free: 58.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3602, allocations: 4 kB / 0.5075 GB, free: 58.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007014/0.3609, allocations: 0.7494 MB / 0.5082 GB, free: 57.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/0.3622, allocations: 0.5871 MB / 0.5088 GB, free: 56.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.3645, allocations: 3.11 MB / 0.5119 GB, free: 53.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.3648, allocations: 0.7342 MB / 0.5126 GB, free: 53.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.3649, allocations: 120.5 kB / 0.5127 GB, free: 52.94 MB / 410.7 MB Notification: Performance of SimCode: time 6.22e-07/0.365, allocations: 0 / 0.5127 GB, free: 52.94 MB / 410.7 MB Notification: Performance of Templates: time 0.03043/0.3954, allocations: 50.64 MB / 0.5621 GB, free: 2.324 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 7.308201505802572]