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.0008858/0.0008858, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009936/0.0009936, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8856/0.8856, allocations: 177.1 MB / 204.3 MB, free: 5.727 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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573e-05/1.749e-05, allocations: 14.22 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.03437/0.03439, allocations: 57.15 MB / 381.7 MB, free: 6.613 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01547/0.04986, allocations: 20.08 MB / 401.8 MB, free: 2.465 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000597/0.05046, allocations: 47.56 kB / 401.8 MB, free: 2.418 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.05159, allocations: 0.6749 MB / 402.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009882/0.06148, allocations: 5.915 MB / 408.4 MB, free: 11.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00642/0.0679, allocations: 3.491 MB / 411.9 MB, free: 8.324 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008939/0.07683, allocations: 9.163 MB / 421.1 MB, free: 15.05 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00093/0.07776, allocations: 0.5951 MB / 421.7 MB, free: 14.44 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.07939, allocations: 1.418 MB / 423.1 MB, free: 13.02 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006818/0.08007, allocations: 0.7089 MB / 423.8 MB, free: 12.3 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.0802, allocations: 92 kB / 423.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009167/0.08937, allocations: 7.3 MB / 431.2 MB, free: 4.906 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001841/0.08955, allocations: 298.7 kB / 431.5 MB, free: 4.613 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003559/0.08991, allocations: 0.495 MB / 432 MB, free: 4.117 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006461/0.09637, allocations: 6.91 MB / 438.9 MB, free: 13.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.09637, allocations: 0 / 438.9 MB, free: 13.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09637, allocations: 0 / 438.9 MB, free: 13.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.09639, allocations: 4 kB / 438.9 MB, free: 13.19 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.003289/0.09968, allocations: 2.447 MB / 441.3 MB, free: 10.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.09972, allocations: 11.97 kB / 441.3 MB, free: 10.69 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.09984, allocations: 156.5 kB / 441.5 MB, free: 10.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002218/0.1021, allocations: 0.6634 MB / 442.2 MB, free: 9.863 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.1032, allocations: 0.9715 MB / 443.1 MB, free: 8.867 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.1032, allocations: 74.39 kB / 443.2 MB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.287e-05/0.1033, allocations: 96.38 kB / 443.3 MB, free: 8.699 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.1053, allocations: 1.977 MB / 445.3 MB, free: 6.496 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.1053, allocations: 11.92 kB / 445.3 MB, free: 6.484 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-05/0.1054, allocations: 44 kB / 445.3 MB, free: 6.441 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.1054, allocations: 28 kB / 445.4 MB, free: 6.414 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.1072, allocations: 1.459 MB / 446.8 MB, free: 4.953 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1428/0.2499, allocations: 6.375 MB / 453.2 MB, free: 117.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.2517, allocations: 1.028 MB / 454.2 MB, free: 117.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003725/0.252, allocations: 356.4 kB / 454.6 MB, free: 117.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04871/0.3007, allocations: 34.81 MB / 489.4 MB, free: 87.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.3008, allocations: 43.06 kB / 489.4 MB, free: 87.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 2.635e-06/0.3008, allocations: 0 / 489.4 MB, free: 87.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.003047/0.3038, allocations: 1.921 MB / 491.3 MB, free: 85.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.3039, allocations: 188.8 kB / 491.5 MB, free: 85.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000682/0.3045, allocations: 0.9937 MB / 492.5 MB, free: 84.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.3046, allocations: 41.7 kB / 492.6 MB, free: 84.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.3048, allocations: 0.575 MB / 493.1 MB, free: 84.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.204e-05/0.3049, allocations: 285 kB / 493.4 MB, free: 83.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.305, allocations: 234.8 kB / 493.6 MB, free: 83.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.241e-05/0.3051, allocations: 345.9 kB / 494 MB, free: 83.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.3053, allocations: 302.5 kB / 494.3 MB, free: 82.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.3058, allocations: 0.8464 MB / 495.1 MB, free: 81.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007575/0.3065, allocations: 1.099 MB / 496.2 MB, free: 80.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.81e-06/0.3065, allocations: 8 kB / 496.2 MB, free: 80.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001075/0.3076, allocations: 1.244 MB / 497.5 MB, free: 79.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3076, allocations: 12 kB / 497.5 MB, free: 79.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.3076, allocations: 15.36 kB / 497.5 MB, free: 79.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.309, allocations: 0.5267 MB / 498 MB, free: 78.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.3095, allocations: 286.1 kB / 498.3 MB, free: 78.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004904/0.31, allocations: 1.365 MB / 499.7 MB, free: 77.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004098/0.3104, allocations: 136.6 kB / 499.8 MB, free: 77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.931e-05/0.3105, allocations: 66.66 kB / 499.9 MB, free: 76.94 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.0002329/0.3107, allocations: 298.3 kB / 0.4884 GB, free: 76.65 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.3108, allocations: 131.2 kB / 0.4886 GB, free: 76.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002258/0.3131, allocations: 4.645 MB / 0.4931 GB, free: 71.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/0.3131, allocations: 47.92 kB / 0.4931 GB, free: 71.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3131, allocations: 5.25 kB / 0.4931 GB, free: 71.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.3131, allocations: 3.984 kB / 0.4932 GB, free: 71.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002465/0.3156, allocations: 4.446 MB / 0.4975 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3156, allocations: 4.875 kB / 0.4975 GB, free: 67.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.3159, allocations: 167.7 kB / 0.4977 GB, free: 67.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006028/0.3165, allocations: 0.6694 MB / 0.4983 GB, free: 66.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.3165, allocations: 27.98 kB / 0.4983 GB, free: 66.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005566/0.3171, allocations: 1.781 MB / 0.5001 GB, free: 64.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3171, allocations: 2.5 kB / 0.5001 GB, free: 64.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.3182, allocations: 2.035 MB / 0.5021 GB, free: 62.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.3183, allocations: 197.2 kB / 0.5023 GB, free: 62.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.217e-05/0.3184, allocations: 41.14 kB / 0.5023 GB, free: 62.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.3187, allocations: 20 kB / 0.5023 GB, free: 62.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.3187, allocations: 64.48 kB / 0.5024 GB, free: 62.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.3187, allocations: 27.98 kB / 0.5024 GB, free: 62.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005117/0.3192, allocations: 0.8342 MB / 0.5032 GB, free: 61.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3192, allocations: 4 kB / 0.5032 GB, free: 61.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00178/0.321, allocations: 1.294 MB / 0.5045 GB, free: 60.2 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.003459/0.3245, allocations: 3.889 MB / 0.5083 GB, free: 56.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.3256, allocations: 1.244 MB / 0.5095 GB, free: 55.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3256, allocations: 0 / 0.5095 GB, free: 55.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006276/0.3263, allocations: 0.7437 MB / 0.5102 GB, free: 54.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.3278, allocations: 0.7246 MB / 0.5109 GB, free: 53.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007567/0.3354, allocations: 11.16 MB / 0.5218 GB, free: 41.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.3357, allocations: 0.743 MB / 0.5226 GB, free: 41.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006886/0.3364, allocations: 0.6311 MB / 0.5232 GB, free: 40.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003916/0.3368, allocations: 0.6682 MB / 0.5238 GB, free: 39.93 MB / 410.7 MB Notification: Performance of SimCode: time 8.51e-07/0.3368, allocations: 0 / 0.5238 GB, free: 39.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0679/0.4047, allocations: 75.49 MB / 0.5975 GB, free: 12.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.923/10.33, allocations: 7.938 kB / 0.5976 GB, free: 12.97 MB / 458.7 MB " [Timeout remaining time 650] (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/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: 12.887582996860147]