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.00122/0.00122, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001336/0.001336, allocations: 214.9 kB / 24.51 MB, free: 3.945 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.344/1.344, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 47.92 kB / 378.5 MB, free: 3.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.224, allocations: 53.36 MB / 431.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06011/0.2841, allocations: 57.5 MB / 489.3 MB, free: 12.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02673/0.3109, allocations: 20.06 MB / 0.4975 GB, free: 8.875 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.3123, allocations: 47.56 kB / 0.4975 GB, free: 8.828 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001814/0.3141, allocations: 0.6635 MB / 0.4982 GB, free: 8.16 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01423/0.3283, allocations: 5.815 MB / 0.5038 GB, free: 2.336 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00845/0.3368, allocations: 3.433 MB / 0.5072 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01882/0.3556, allocations: 9.094 MB / 0.5161 GB, free: 5.691 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.3568, allocations: 0.5842 MB / 0.5166 GB, free: 5.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002068/0.3588, allocations: 1.074 MB / 0.5177 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.3601, allocations: 0.8635 MB / 0.5185 GB, free: 3.152 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001832/0.3603, allocations: 92 kB / 0.5186 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01382/0.3741, allocations: 7.586 MB / 0.526 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004157/0.3745, allocations: 298.8 kB / 0.5263 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008337/0.3753, allocations: 0.5873 MB / 0.5269 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.3859, allocations: 5.778 MB / 0.5325 GB, free: 4.793 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3859, allocations: 0 / 0.5325 GB, free: 4.793 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3859, allocations: 0 / 0.5325 GB, free: 4.793 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.3859, allocations: 3.938 kB / 0.5325 GB, free: 4.789 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.005789/0.3917, allocations: 2.456 MB / 0.5349 GB, free: 2.289 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3917, allocations: 16.02 kB / 0.5349 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.88e-05/0.3918, allocations: 26.2 kB / 0.535 GB, free: 2.246 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001965/0.392, allocations: 156.5 kB / 0.5351 GB, free: 2.086 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004718/0.3967, allocations: 0.6634 MB / 0.5358 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.3986, allocations: 0.9605 MB / 0.5367 GB, free: 440 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.926e-05/0.3987, allocations: 85.89 kB / 0.5368 GB, free: 352 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.3988, allocations: 96 kB / 0.5369 GB, free: 256 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1647/0.5636, allocations: 1.972 MB / 0.5388 GB, free: 108 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.5636, allocations: 9.969 kB / 0.5388 GB, free: 108 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.5637, allocations: 47.47 kB / 0.5389 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.352e-05/0.5637, allocations: 26.09 kB / 0.5389 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003175/0.5669, allocations: 1.462 MB / 0.5403 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00705/0.5739, allocations: 6.408 MB / 0.5466 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.5763, allocations: 1.039 MB / 0.5476 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004502/0.5768, allocations: 354 kB / 0.5479 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09527/0.6721, allocations: 34.83 MB / 0.5819 GB, free: 70.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.6721, allocations: 51.05 kB / 0.582 GB, free: 70.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.755e-06/0.6721, allocations: 0 / 0.582 GB, free: 70.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005002/0.6771, allocations: 1.909 MB / 0.5838 GB, free: 68.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.6771, allocations: 196.4 kB / 0.584 GB, free: 68.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008619/0.678, allocations: 0.9706 MB / 0.585 GB, free: 67.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.6781, allocations: 37.7 kB / 0.585 GB, free: 67.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002459/0.6783, allocations: 0.5842 MB / 0.5856 GB, free: 66.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.6785, allocations: 286 kB / 0.5859 GB, free: 66.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.6788, allocations: 238.8 kB / 0.5861 GB, free: 66.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.591e-05/0.6788, allocations: 349.9 kB / 0.5864 GB, free: 65.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.6792, allocations: 302.5 kB / 0.5867 GB, free: 65.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005811/0.6798, allocations: 0.8425 MB / 0.5875 GB, free: 64.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.6808, allocations: 1.098 MB / 0.5886 GB, free: 63.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.6808, allocations: 4 kB / 0.5886 GB, free: 63.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001631/0.6825, allocations: 1.247 MB / 0.5898 GB, free: 61.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.6825, allocations: 12 kB / 0.5898 GB, free: 61.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.6825, allocations: 12 kB / 0.5899 GB, free: 61.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/0.6856, allocations: 0.5284 MB / 0.5904 GB, free: 61.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009349/0.6866, allocations: 284.9 kB / 0.5906 GB, free: 61.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006838/0.6872, allocations: 1.375 MB / 0.592 GB, free: 59.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/0.6879, allocations: 132.7 kB / 0.5921 GB, free: 59.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.499e-05/0.688, allocations: 68.03 kB / 0.5922 GB, free: 59.42 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.0003588/0.6883, allocations: 297.2 kB / 0.5925 GB, free: 59.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.6885, allocations: 131.1 kB / 0.5926 GB, free: 59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003402/0.6919, allocations: 4.604 MB / 0.5971 GB, free: 54.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.691e-05/0.6919, allocations: 47.92 kB / 0.5971 GB, free: 54.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.692, allocations: 0 / 0.5971 GB, free: 54.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.692, allocations: 3.984 kB / 0.5971 GB, free: 54.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0036/0.6956, allocations: 4.458 MB / 0.6015 GB, free: 49.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6956, allocations: 0 / 0.6015 GB, free: 49.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007125/0.6963, allocations: 171.7 kB / 0.6016 GB, free: 49.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.6975, allocations: 0.6722 MB / 0.6023 GB, free: 49.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.6975, allocations: 23.94 kB / 0.6023 GB, free: 49.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008471/0.6984, allocations: 1.783 MB / 0.6041 GB, free: 47.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.6984, allocations: 0 / 0.6041 GB, free: 47.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.7001, allocations: 2.028 MB / 0.606 GB, free: 45.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.7003, allocations: 202.1 kB / 0.6062 GB, free: 44.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.7005, allocations: 43.73 kB / 0.6063 GB, free: 44.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004653/0.701, allocations: 20 kB / 0.6063 GB, free: 44.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.701, allocations: 52.55 kB / 0.6063 GB, free: 44.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.857e-05/0.7011, allocations: 35.98 kB / 0.6064 GB, free: 44.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007716/0.7018, allocations: 0.8343 MB / 0.6072 GB, free: 43.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7018, allocations: 3.938 kB / 0.6072 GB, free: 43.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002751/0.7046, allocations: 1.298 MB / 0.6085 GB, free: 42.67 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.005727/0.7103, allocations: 3.738 MB / 0.6121 GB, free: 38.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.7124, allocations: 1.229 MB / 0.6133 GB, free: 37.76 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.7124, allocations: 8 kB / 0.6133 GB, free: 37.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.7136, allocations: 0.7475 MB / 0.6141 GB, free: 37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.7164, allocations: 0.7258 MB / 0.6148 GB, free: 36.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.7282, allocations: 11.16 MB / 0.6257 GB, free: 24.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.7287, allocations: 0.7431 MB / 0.6264 GB, free: 23.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001068/0.7298, allocations: 0.6432 MB / 0.627 GB, free: 23.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005752/0.7303, allocations: 0.6633 MB / 0.6277 GB, free: 22.53 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7303, allocations: 0 / 0.6277 GB, free: 22.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.117/0.8473, allocations: 75.67 MB / 0.7016 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.48/18.33, allocations: 11.27 kB / 0.7016 GB, free: 11.37 MB / 0.4981 GB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 52.5] 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: 23.311069351970218]