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.001365/0.001365, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001482/0.001482, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.387/1.387, allocations: 230.6 MB / 258.3 MB, free: 8.051 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="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.001489/0.001489, allocations: 44.02 kB / 378.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2249, allocations: 53.37 MB / 431.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06418/0.2891, allocations: 63.98 MB / 495.9 MB, free: 6.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02913/0.3182, allocations: 22.59 MB / 0.5063 GB, free: 184 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.3193, allocations: 47.56 kB / 0.5064 GB, free: 136 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001816/0.3211, allocations: 0.7335 MB / 0.5071 GB, free: 15.39 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0138/0.3349, allocations: 5.835 MB / 0.5128 GB, free: 9.551 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008245/0.3432, allocations: 3.497 MB / 0.5162 GB, free: 6.055 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0163/0.3595, allocations: 9.094 MB / 0.5251 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.3608, allocations: 0.5959 MB / 0.5257 GB, free: 12.24 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002568/0.3633, allocations: 1.082 MB / 0.5267 GB, free: 11.15 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.365, allocations: 0.8597 MB / 0.5276 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002089/0.3652, allocations: 95.94 kB / 0.5277 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01513/0.3804, allocations: 7.711 MB / 0.5352 GB, free: 2.477 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004615/0.3808, allocations: 286.8 kB / 0.5355 GB, free: 2.195 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.3819, allocations: 0.7154 MB / 0.5362 GB, free: 1.477 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2243/0.6062, allocations: 5.781 MB / 0.5418 GB, free: 23.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.6062, allocations: 0 / 0.5418 GB, free: 23.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6062, allocations: 0 / 0.5418 GB, free: 23.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.6062, allocations: 0 / 0.5418 GB, free: 23.36 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.007443/0.6137, allocations: 2.459 MB / 0.5442 GB, free: 22.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.6137, allocations: 9.281 kB / 0.5442 GB, free: 22.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.398e-05/0.6138, allocations: 28.95 kB / 0.5442 GB, free: 22.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/0.6139, allocations: 155.6 kB / 0.5444 GB, free: 22.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004542/0.6185, allocations: 0.6637 MB / 0.545 GB, free: 22.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/0.6204, allocations: 0.9653 MB / 0.546 GB, free: 21.94 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/0.6204, allocations: 79.86 kB / 0.5461 GB, free: 21.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.6206, allocations: 96.94 kB / 0.5462 GB, free: 21.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003133/0.6237, allocations: 1.674 MB / 0.5478 GB, free: 21.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.6237, allocations: 6.5 kB / 0.5478 GB, free: 21.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.6238, allocations: 45.22 kB / 0.5478 GB, free: 21.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.6238, allocations: 26.84 kB / 0.5479 GB, free: 21.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/0.6268, allocations: 1.47 MB / 0.5493 GB, free: 21.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007705/0.6345, allocations: 8.057 MB / 0.5572 GB, free: 16.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.6371, allocations: 1.034 MB / 0.5582 GB, free: 16.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004788/0.6375, allocations: 363.5 kB / 0.5585 GB, free: 16.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1066/0.7442, allocations: 34.71 MB / 0.5924 GB, free: 14.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/0.7442, allocations: 40.62 kB / 0.5925 GB, free: 14.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.355e-06/0.7442, allocations: 0 / 0.5925 GB, free: 14.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005697/0.7499, allocations: 1.921 MB / 0.5943 GB, free: 13 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.75, allocations: 193.2 kB / 0.5945 GB, free: 12.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.7512, allocations: 0.9731 MB / 0.5955 GB, free: 12.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.401e-05/0.7513, allocations: 38.39 kB / 0.5955 GB, free: 11.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003876/0.7517, allocations: 0.5757 MB / 0.5961 GB, free: 11.61 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.7519, allocations: 286.6 kB / 0.5963 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002995/0.7522, allocations: 241.8 kB / 0.5966 GB, free: 11.22 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.7524, allocations: 350.1 kB / 0.5969 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005165/0.7529, allocations: 303.1 kB / 0.5972 GB, free: 10.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008987/0.7538, allocations: 0.7386 MB / 0.5979 GB, free: 9.902 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.7552, allocations: 1.108 MB / 0.599 GB, free: 8.973 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.7553, allocations: 11.94 kB / 0.599 GB, free: 8.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002086/0.7573, allocations: 1.239 MB / 0.6002 GB, free: 8.117 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.7574, allocations: 12 kB / 0.6002 GB, free: 8.105 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.7574, allocations: 16.12 kB / 0.6002 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003279/0.7607, allocations: 0.5163 MB / 0.6008 GB, free: 7.613 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.7618, allocations: 282.2 kB / 0.601 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.7631, allocations: 1.374 MB / 0.6024 GB, free: 6.059 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.7642, allocations: 135.2 kB / 0.6025 GB, free: 5.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.7643, allocations: 70.36 kB / 0.6026 GB, free: 5.891 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.0005809/0.7649, allocations: 292.5 kB / 0.6028 GB, free: 5.695 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000264/0.7651, allocations: 131.1 kB / 0.603 GB, free: 5.566 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00506/0.7702, allocations: 4.602 MB / 0.6075 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-05/0.7702, allocations: 43.69 kB / 0.6075 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.7702, allocations: 0 / 0.6075 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.7703, allocations: 11.97 kB / 0.6075 GB, free: 2.551 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005526/0.7758, allocations: 4.993 MB / 0.6124 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.7758, allocations: 3.938 kB / 0.6124 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008381/0.7766, allocations: 168.9 kB / 0.6126 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.7781, allocations: 0.6743 MB / 0.6132 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.276e-05/0.7782, allocations: 27.05 kB / 0.6132 GB, free: 14.24 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001435/0.7796, allocations: 1.778 MB / 0.615 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.7796, allocations: 4 kB / 0.615 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002501/0.7821, allocations: 2.026 MB / 0.617 GB, free: 11.19 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004287/0.7825, allocations: 202.8 kB / 0.6171 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.7827, allocations: 44.52 kB / 0.6172 GB, free: 10.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004864/0.7832, allocations: 19.31 kB / 0.6172 GB, free: 10.96 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.7833, allocations: 60.36 kB / 0.6173 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.899e-05/0.7833, allocations: 35.55 kB / 0.6173 GB, free: 10.88 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.7844, allocations: 0.8309 MB / 0.6181 GB, free: 10.27 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7844, allocations: 0.9844 kB / 0.6181 GB, free: 10.27 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005011/0.7895, allocations: 1.294 MB / 0.6194 GB, free: 9.051 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.009748/0.7992, allocations: 3.756 MB / 0.623 GB, free: 5.984 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00288/0.8021, allocations: 1.226 MB / 0.6242 GB, free: 4.977 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.8021, allocations: 1.359 kB / 0.6242 GB, free: 4.977 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.8037, allocations: 0.7474 MB / 0.625 GB, free: 4.246 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003581/0.8072, allocations: 0.725 MB / 0.6257 GB, free: 3.543 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01791/0.8251, allocations: 11.17 MB / 0.6366 GB, free: 7.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009054/0.826, allocations: 1.312 MB / 0.6379 GB, free: 6.586 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.8273, allocations: 0.6285 MB / 0.6385 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008071/0.8281, allocations: 0.6711 MB / 0.6391 GB, free: 5.297 MB / 494.1 MB Notification: Performance of SimCode: time 6.91e-07/0.8281, allocations: 3.281 kB / 0.6391 GB, free: 5.297 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1232/0.9513, allocations: 74.97 MB / 0.7124 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.47/18.42, allocations: 7.25 kB / 0.7124 GB, free: 10.79 MB / 0.5606 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: 25.791956347995438]