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.001299/0.001299, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001373/0.001373, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.389/1.389, allocations: 230.6 MB / 254.1 MB, free: 15.1 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: "" <> 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 0.001662/0.001662, allocations: 51.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0944/0.09607, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2429/0.339, allocations: 63.43 MB / 489.7 MB, free: 14.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02939/0.3683, allocations: 22.51 MB / 0.5002 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.3698, allocations: 43.56 kB / 0.5003 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002269/0.3721, allocations: 0.7374 MB / 0.501 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01603/0.3881, allocations: 5.817 MB / 0.5067 GB, free: 4.285 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009058/0.3972, allocations: 3.481 MB / 0.5101 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01644/0.4136, allocations: 9.063 MB / 0.5189 GB, free: 7.633 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.4148, allocations: 0.601 MB / 0.5195 GB, free: 7.023 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002062/0.4169, allocations: 1.082 MB / 0.5206 GB, free: 5.938 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.4181, allocations: 0.848 MB / 0.5214 GB, free: 5.086 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001635/0.4183, allocations: 99.88 kB / 0.5215 GB, free: 4.988 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01514/0.4334, allocations: 7.703 MB / 0.529 GB, free: 13.28 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003863/0.4338, allocations: 286.8 kB / 0.5293 GB, free: 13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009089/0.4347, allocations: 0.7076 MB / 0.53 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01179/0.4465, allocations: 5.782 MB / 0.5356 GB, free: 6.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4465, allocations: 4 kB / 0.5356 GB, free: 6.484 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.4465, allocations: 3.984 kB / 0.5356 GB, free: 6.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.4465, allocations: 4 kB / 0.5356 GB, free: 6.477 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.006388/0.4529, allocations: 2.531 MB / 0.5381 GB, free: 3.883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.4529, allocations: 8.031 kB / 0.5381 GB, free: 3.875 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002065/0.4531, allocations: 165.5 kB / 0.5383 GB, free: 3.707 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004728/0.4579, allocations: 0.6595 MB / 0.5389 GB, free: 3.047 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.4598, allocations: 1.044 MB / 0.5399 GB, free: 1.957 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/0.4598, allocations: 74.39 kB / 0.54 GB, free: 1.883 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.46, allocations: 103.9 kB / 0.5401 GB, free: 1.781 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003692/0.4636, allocations: 1.671 MB / 0.5417 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.4637, allocations: 7.938 kB / 0.5418 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.4638, allocations: 44 kB / 0.5418 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.4638, allocations: 28 kB / 0.5418 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003569/0.4674, allocations: 1.472 MB / 0.5433 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.4775, allocations: 8.4 MB / 0.5515 GB, free: 5.402 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003261/0.4808, allocations: 1.637 MB / 0.5531 GB, free: 3.598 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006324/0.4814, allocations: 363.6 kB / 0.5534 GB, free: 3.238 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3126/0.794, allocations: 70.66 MB / 0.6224 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.794, allocations: 45.3 kB / 0.6225 GB, free: 169.3 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=77): time 2.524e-06/0.794, allocations: 0 / 0.6225 GB, free: 169.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=77): time 0.005715/0.7997, allocations: 1.996 MB / 0.6244 GB, free: 169.2 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.7998, allocations: 192.3 kB / 0.6246 GB, free: 169 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.8009, allocations: 0.9653 MB / 0.6255 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.801, allocations: 39.64 kB / 0.6256 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/0.8013, allocations: 0.5827 MB / 0.6261 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.8015, allocations: 287.6 kB / 0.6264 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/0.8018, allocations: 238.4 kB / 0.6266 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.343e-05/0.8018, allocations: 350.3 kB / 0.627 GB, free: 168 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005029/0.8023, allocations: 304.1 kB / 0.6273 GB, free: 167.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006798/0.803, allocations: 0.7427 MB / 0.628 GB, free: 167.2 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.8042, allocations: 1.094 MB / 0.6291 GB, free: 166.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.8042, allocations: 4.969 kB / 0.6291 GB, free: 166.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002047/0.8063, allocations: 1.244 MB / 0.6303 GB, free: 165.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.8063, allocations: 12.53 kB / 0.6303 GB, free: 165.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.8063, allocations: 14.5 kB / 0.6303 GB, free: 165.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003343/0.8097, allocations: 0.5231 MB / 0.6308 GB, free: 165.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.8107, allocations: 282.2 kB / 0.6311 GB, free: 165.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007873/0.8115, allocations: 1.373 MB / 0.6324 GB, free: 164.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/0.8122, allocations: 138.7 kB / 0.6326 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.295e-05/0.8123, allocations: 68.17 kB / 0.6326 GB, free: 164.4 MB / 0.5137 GB 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.0004216/0.8127, allocations: 298.5 kB / 0.6329 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.8129, allocations: 129.2 kB / 0.633 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00454/0.8175, allocations: 4.41 MB / 0.6373 GB, free: 162.1 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.662e-05/0.8175, allocations: 45.95 kB / 0.6374 GB, free: 162.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.8175, allocations: 1.281 kB / 0.6374 GB, free: 162.1 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.8175, allocations: 4.828 kB / 0.6374 GB, free: 162.1 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0051/0.8226, allocations: 4.902 MB / 0.6422 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.8227, allocations: 1.031 kB / 0.6422 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007865/0.8234, allocations: 163 kB / 0.6423 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.825, allocations: 0.6669 MB / 0.643 GB, free: 159.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.02e-05/0.825, allocations: 31.83 kB / 0.643 GB, free: 159.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.8261, allocations: 1.746 MB / 0.6447 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8261, allocations: 5.5 kB / 0.6447 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002381/0.8285, allocations: 1.987 MB / 0.6467 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.8288, allocations: 277 kB / 0.6469 GB, free: 156.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.829, allocations: 44.39 kB / 0.647 GB, free: 156.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004684/0.8295, allocations: 17.41 kB / 0.647 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.857e-05/0.8295, allocations: 55.5 kB / 0.647 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.347e-05/0.8296, allocations: 42.7 kB / 0.6471 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008961/0.8305, allocations: 0.8331 MB / 0.6479 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.8305, allocations: 5.969 kB / 0.6479 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003669/0.8342, allocations: 1.291 MB / 0.6492 GB, free: 156.2 MB / 0.5137 GB 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.005992/0.8401, allocations: 3.685 MB / 0.6528 GB, free: 154.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002234/0.8424, allocations: 1.214 MB / 0.6539 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.8424, allocations: 0 / 0.6539 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.8436, allocations: 0.7319 MB / 0.6547 GB, free: 153.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003185/0.8468, allocations: 0.7334 MB / 0.6554 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.8586, allocations: 11.12 MB / 0.6662 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.8591, allocations: 1.324 MB / 0.6675 GB, free: 139.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0009813/0.86, allocations: 0.6381 MB / 0.6681 GB, free: 138.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000563/0.8606, allocations: 0.6672 MB / 0.6688 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of SimCode: time 6.71e-07/0.8606, allocations: 0 / 0.6688 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09644/0.957, allocations: 73.11 MB / 0.7402 GB, free: 65.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.57/17.53, allocations: 7.969 kB / 0.7402 GB, free: 65.32 MB / 0.5137 GB " [Timeout remaining time 642] (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: 22.029531243955716]