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.00131/0.00131, allocations: 107.6 kB / 21.18 MB, free: 0.6758 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.001452/0.001452, allocations: 209.1 kB / 24.48 MB, free: 3.977 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.481/1.481, allocations: 230.6 MB / 258.2 MB, free: 7.82 MB / 206.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.001579/0.001579, allocations: 55.86 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2811, allocations: 53.37 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06469/0.3457, allocations: 57.55 MB / 489.9 MB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02842/0.3742, allocations: 20.08 MB / 0.498 GB, free: 8.867 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002245/0.3764, allocations: 39.62 kB / 0.498 GB, free: 8.828 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003086/0.3795, allocations: 0.6712 MB / 0.4987 GB, free: 8.152 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01736/0.3969, allocations: 5.818 MB / 0.5044 GB, free: 2.328 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009944/0.4068, allocations: 3.426 MB / 0.5077 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02031/0.4271, allocations: 9.094 MB / 0.5166 GB, free: 5.688 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001457/0.4286, allocations: 0.5842 MB / 0.5172 GB, free: 5.094 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002483/0.4311, allocations: 1.082 MB / 0.5182 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001683/0.4327, allocations: 0.8596 MB / 0.5191 GB, free: 3.145 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001913/0.4329, allocations: 92 kB / 0.5192 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01653/0.4495, allocations: 7.598 MB / 0.5266 GB, free: 11.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005478/0.45, allocations: 290.8 kB / 0.5268 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.4511, allocations: 0.5911 MB / 0.5274 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01442/0.4655, allocations: 5.774 MB / 0.5331 GB, free: 4.781 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4655, allocations: 4 kB / 0.5331 GB, free: 4.777 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4655, allocations: 0 / 0.5331 GB, free: 4.777 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.4655, allocations: 0 / 0.5331 GB, free: 4.777 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.007272/0.4728, allocations: 2.46 MB / 0.5355 GB, free: 2.273 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.4728, allocations: 8.031 kB / 0.5355 GB, free: 2.266 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00508/0.4779, allocations: 0.6673 MB / 0.5361 GB, free: 1.598 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002554/0.4805, allocations: 0.9643 MB / 0.5371 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-05/0.4805, allocations: 74.39 kB / 0.5371 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.4807, allocations: 99.94 kB / 0.5372 GB, free: 440 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2257/0.7064, allocations: 1.974 MB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/0.7065, allocations: 10.19 kB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.7066, allocations: 49.84 kB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.72e-05/0.7066, allocations: 26 kB / 0.5392 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003357/0.71, allocations: 1.454 MB / 0.5407 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007917/0.7179, allocations: 6.251 MB / 0.5468 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.7204, allocations: 1.038 MB / 0.5478 GB, free: 102.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.7209, allocations: 359.3 kB / 0.5481 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1059/0.8268, allocations: 34.83 MB / 0.5821 GB, free: 70.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/0.8268, allocations: 47 kB / 0.5822 GB, free: 70.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.915e-06/0.8268, allocations: 0 / 0.5822 GB, free: 70.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005397/0.8322, allocations: 1.909 MB / 0.5841 GB, free: 68.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.8323, allocations: 188.4 kB / 0.5842 GB, free: 68.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008247/0.8331, allocations: 0.8238 MB / 0.585 GB, free: 67.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.835e-05/0.8332, allocations: 41.7 kB / 0.5851 GB, free: 67.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002639/0.8334, allocations: 0.5993 MB / 0.5857 GB, free: 67.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.8336, allocations: 286.8 kB / 0.5859 GB, free: 66.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002515/0.8339, allocations: 238.8 kB / 0.5862 GB, free: 66.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.348e-05/0.8339, allocations: 345.9 kB / 0.5865 GB, free: 66.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.8344, allocations: 306.5 kB / 0.5868 GB, free: 65.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005967/0.835, allocations: 0.8401 MB / 0.5876 GB, free: 64.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.836, allocations: 1.096 MB / 0.5887 GB, free: 63.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.836, allocations: 4 kB / 0.5887 GB, free: 63.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001731/0.8378, allocations: 1.235 MB / 0.5899 GB, free: 62.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.8378, allocations: 12 kB / 0.5899 GB, free: 62.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.8378, allocations: 15.94 kB / 0.5899 GB, free: 62.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003223/0.841, allocations: 0.5238 MB / 0.5904 GB, free: 61.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.842, allocations: 283.6 kB / 0.5907 GB, free: 61.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007438/0.8428, allocations: 1.376 MB / 0.592 GB, free: 60.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007869/0.8436, allocations: 113.6 kB / 0.5921 GB, free: 59.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.027e-05/0.8436, allocations: 69.52 kB / 0.5922 GB, free: 59.92 MB / 446.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.0004414/0.8441, allocations: 301.8 kB / 0.5925 GB, free: 59.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.8443, allocations: 107.3 kB / 0.5926 GB, free: 59.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003601/0.8479, allocations: 4.589 MB / 0.5971 GB, free: 54.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-05/0.8479, allocations: 43.94 kB / 0.5971 GB, free: 54.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.8479, allocations: 3.984 kB / 0.5971 GB, free: 54.92 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.8479, allocations: 7.922 kB / 0.5971 GB, free: 54.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004138/0.8521, allocations: 4.268 MB / 0.6013 GB, free: 50.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.8521, allocations: 4 kB / 0.6013 GB, free: 50.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007882/0.8529, allocations: 171.7 kB / 0.6015 GB, free: 50.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/0.8542, allocations: 0.6722 MB / 0.6021 GB, free: 49.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.821e-05/0.8543, allocations: 27.92 kB / 0.6022 GB, free: 49.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.8553, allocations: 1.782 MB / 0.6039 GB, free: 47.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.8553, allocations: 7.641 kB / 0.6039 GB, free: 47.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.8572, allocations: 2.007 MB / 0.6059 GB, free: 45.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002607/0.8575, allocations: 182 kB / 0.606 GB, free: 45.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.8577, allocations: 47.66 kB / 0.6061 GB, free: 45.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000476/0.8581, allocations: 23.94 kB / 0.6061 GB, free: 45.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.132e-05/0.8582, allocations: 60.55 kB / 0.6062 GB, free: 45.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.887e-05/0.8583, allocations: 32.08 kB / 0.6062 GB, free: 45.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006994/0.8589, allocations: 0.7166 MB / 0.6069 GB, free: 44.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8589, allocations: 0 / 0.6069 GB, free: 44.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00325/0.8622, allocations: 1.318 MB / 0.6082 GB, free: 43.54 MB / 446.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.003989/0.8662, allocations: 1.262 MB / 0.6094 GB, free: 42.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.8685, allocations: 1.221 MB / 0.6106 GB, free: 41.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.8685, allocations: 4 kB / 0.6106 GB, free: 41.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001377/0.8699, allocations: 0.7514 MB / 0.6113 GB, free: 40.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.8725, allocations: 0.5816 MB / 0.6119 GB, free: 39.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.8759, allocations: 3.157 MB / 0.615 GB, free: 36.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/0.8764, allocations: 0.7419 MB / 0.6157 GB, free: 35.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.8766, allocations: 115.4 kB / 0.6158 GB, free: 35.76 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8766, allocations: 0 / 0.6158 GB, free: 35.76 MB / 446.1 MB Notification: Performance of Templates: time 0.05572/0.9323, allocations: 50.52 MB / 0.6652 GB, free: 1.254 MB / 462.1 MB " [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 -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: 12.50528100100928]