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.001733/0.001733, allocations: 70.42 kB / 21.24 MB, free: 0.5391 MB / 14.72 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.002151/0.002151, allocations: 158.5 kB / 24.5 MB, free: 3.711 MB / 14.72 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 1.507/1.507, allocations: 177.2 MB / 204.9 MB, free: 9.004 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001536/0.001536, allocations: 51.14 kB / 325.5 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09269, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06282/0.1555, allocations: 57.55 MB / 436.4 MB, free: 5.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0275/0.183, allocations: 20.09 MB / 456.5 MB, free: 1.758 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009963/0.184, allocations: 43.56 kB / 456.6 MB, free: 1.715 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0018/0.1858, allocations: 0.6751 MB / 457.2 MB, free: 1.035 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01566/0.2015, allocations: 5.816 MB / 463.1 MB, free: 11.21 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009247/0.2107, allocations: 3.429 MB / 466.5 MB, free: 7.785 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.2121/0.4228, allocations: 9.092 MB / 475.6 MB, free: 13.47 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/0.4239, allocations: 0.5842 MB / 476.2 MB, free: 13.44 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.4257, allocations: 1.074 MB / 477.2 MB, free: 13.44 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.427, allocations: 0.8071 MB / 478 MB, free: 13.44 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.4271, allocations: 92 kB / 478.1 MB, free: 13.44 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01385/0.441, allocations: 7.292 MB / 485.4 MB, free: 13.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004136/0.4414, allocations: 290.8 kB / 485.7 MB, free: 13.44 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009194/0.4423, allocations: 0.5999 MB / 486.3 MB, free: 13.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01048/0.4528, allocations: 5.766 MB / 492.1 MB, free: 13.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4528, allocations: 0 / 492.1 MB, free: 13.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4528, allocations: 0 / 492.1 MB, free: 13.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.168e-05/0.4528, allocations: 0 / 492.1 MB, free: 13.02 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.005477/0.4583, allocations: 2.459 MB / 494.5 MB, free: 11.95 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.4583, allocations: 11 kB / 494.5 MB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004609/0.463, allocations: 0.6638 MB / 495.2 MB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.4646, allocations: 0.9706 MB / 496.2 MB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.4646, allocations: 76.77 kB / 496.3 MB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.4647, allocations: 99.25 kB / 496.4 MB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003056/0.4678, allocations: 1.978 MB / 498.3 MB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/0.4678, allocations: 6.25 kB / 498.3 MB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.667e-05/0.4679, allocations: 45.12 kB / 498.4 MB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.4679, allocations: 31.56 kB / 498.4 MB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002942/0.4709, allocations: 1.458 MB / 499.9 MB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006534/0.4774, allocations: 6.252 MB / 0.4943 GB, free: 7.348 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.4799, allocations: 1.037 MB / 0.4953 GB, free: 7.297 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004942/0.4804, allocations: 360 kB / 0.4956 GB, free: 7.281 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1196/0.6, allocations: 34.84 MB / 0.5296 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.783e-05/0.6001, allocations: 41 kB / 0.5297 GB, free: 15.55 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 3.276e-06/0.6001, allocations: 0 / 0.5297 GB, free: 15.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005932/0.606, allocations: 1.901 MB / 0.5315 GB, free: 14.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.6062, allocations: 192.4 kB / 0.5317 GB, free: 13.86 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.6072, allocations: 0.8231 MB / 0.5325 GB, free: 13.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/0.6073, allocations: 45.27 kB / 0.5326 GB, free: 13.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.6077, allocations: 0.5965 MB / 0.5331 GB, free: 12.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002353/0.6079, allocations: 288 kB / 0.5334 GB, free: 12.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003022/0.6082, allocations: 240.7 kB / 0.5336 GB, free: 12.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.6084, allocations: 350.2 kB / 0.534 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005407/0.6089, allocations: 308.2 kB / 0.5343 GB, free: 11.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009781/0.6099, allocations: 0.8411 MB / 0.5351 GB, free: 10.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.6114, allocations: 1.098 MB / 0.5362 GB, free: 9.957 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.6114, allocations: 4 kB / 0.5362 GB, free: 9.953 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002075/0.6135, allocations: 1.222 MB / 0.5374 GB, free: 9.129 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.6135, allocations: 12 kB / 0.5374 GB, free: 9.117 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/0.6135, allocations: 12.84 kB / 0.5374 GB, free: 9.105 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003374/0.6169, allocations: 0.5271 MB / 0.5379 GB, free: 8.625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.618, allocations: 277.3 kB / 0.5382 GB, free: 8.383 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.6192, allocations: 1.375 MB / 0.5395 GB, free: 7.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007024/0.6199, allocations: 122.3 kB / 0.5396 GB, free: 6.969 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.62, allocations: 70.2 kB / 0.5397 GB, free: 6.914 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.0004481/0.6204, allocations: 288.2 kB / 0.54 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.6207, allocations: 115.3 kB / 0.5401 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004932/0.6256, allocations: 4.636 MB / 0.5446 GB, free: 3.621 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.205e-05/0.6256, allocations: 48.05 kB / 0.5446 GB, free: 3.586 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.6256, allocations: 4 kB / 0.5447 GB, free: 3.582 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.6257, allocations: 3.984 kB / 0.5447 GB, free: 3.578 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005634/0.6313, allocations: 4.276 MB / 0.5488 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.6313, allocations: 3.281 kB / 0.5488 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008201/0.6321, allocations: 170.3 kB / 0.549 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/0.6337, allocations: 0.6787 MB / 0.5497 GB, free: 14.64 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.114e-05/0.6337, allocations: 23.98 kB / 0.5497 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.6354, allocations: 1.782 MB / 0.5514 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.6354, allocations: 0 / 0.5514 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/0.6382, allocations: 2.021 MB / 0.5534 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002895/0.6385, allocations: 188.5 kB / 0.5536 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.6386, allocations: 35.83 kB / 0.5536 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004553/0.6391, allocations: 31.94 kB / 0.5536 GB, free: 10.47 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.6392, allocations: 52.55 kB / 0.5537 GB, free: 10.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-05/0.6392, allocations: 36.86 kB / 0.5537 GB, free: 10.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009993/0.6402, allocations: 0.7243 MB / 0.5544 GB, free: 9.656 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6402, allocations: 0 / 0.5544 GB, free: 9.656 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003845/0.6441, allocations: 1.31 MB / 0.5557 GB, free: 8.344 MB / 478.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.003949/0.648, allocations: 1.265 MB / 0.557 GB, free: 7.188 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002689/0.6507, allocations: 1.234 MB / 0.5582 GB, free: 5.996 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.6507, allocations: 4 kB / 0.5582 GB, free: 5.992 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.6522, allocations: 0.7445 MB / 0.5589 GB, free: 5.27 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002775/0.655, allocations: 0.5842 MB / 0.5595 GB, free: 4.703 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/0.6596, allocations: 3.106 MB / 0.5625 GB, free: 1.578 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007701/0.6604, allocations: 0.7384 MB / 0.5632 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001228/0.6616, allocations: 0.6115 MB / 0.5638 GB, free: 212 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.6618, allocations: 120.5 kB / 0.5639 GB, free: 92 kB / 478.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6618, allocations: 0 / 0.5639 GB, free: 92 kB / 478.1 MB Notification: Performance of Templates: time 0.08513/0.747, allocations: 54.8 MB / 0.6174 GB, free: 9.934 MB / 0.5294 GB " [Timeout remaining time 659] 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 -s ida -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/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_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: 8.5475336140953]