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.001326/0.001326, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.00145/0.00145, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001675/0.001675, allocations: 55.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2503, allocations: 53.35 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07361/0.3239, allocations: 63.99 MB / 495.1 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03179/0.3557, allocations: 22.6 MB / 0.5056 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.3576, allocations: 43.56 kB / 0.5056 GB, free: 15.94 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002592/0.3602, allocations: 0.7334 MB / 0.5063 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01723/0.3774, allocations: 5.834 MB / 0.512 GB, free: 9.367 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009748/0.3871, allocations: 3.5 MB / 0.5154 GB, free: 5.867 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02096/0.4081, allocations: 9.099 MB / 0.5243 GB, free: 12.65 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.4094, allocations: 0.5803 MB / 0.5249 GB, free: 12.06 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002358/0.4118, allocations: 1.086 MB / 0.526 GB, free: 10.97 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.4134, allocations: 0.8635 MB / 0.5268 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002933/0.4136, allocations: 92 kB / 0.5269 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01576/0.4294, allocations: 7.707 MB / 0.5344 GB, free: 2.297 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005549/0.43, allocations: 290.8 kB / 0.5347 GB, free: 2.012 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.4313, allocations: 0.7153 MB / 0.5354 GB, free: 1.293 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2491/0.6804, allocations: 5.779 MB / 0.541 GB, free: 23.13 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.6804, allocations: 0 / 0.541 GB, free: 23.13 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.6804, allocations: 1.562 kB / 0.541 GB, free: 23.13 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.363e-05/0.6805, allocations: 0 / 0.541 GB, free: 23.13 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.008364/0.6888, allocations: 2.465 MB / 0.5434 GB, free: 22.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.6889, allocations: 7.688 kB / 0.5435 GB, free: 22.1 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.689, allocations: 155 kB / 0.5436 GB, free: 22.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004655/0.6937, allocations: 0.6632 MB / 0.5442 GB, free: 21.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002138/0.6958, allocations: 0.9713 MB / 0.5452 GB, free: 21.72 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.5e-05/0.6959, allocations: 74.11 kB / 0.5453 GB, free: 21.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.696, allocations: 101.9 kB / 0.5454 GB, free: 21.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003284/0.6993, allocations: 1.675 MB / 0.547 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.6993, allocations: 10.62 kB / 0.547 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.707e-05/0.6994, allocations: 43.91 kB / 0.5471 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.6995, allocations: 26.28 kB / 0.5471 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00301/0.7025, allocations: 1.468 MB / 0.5485 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007988/0.7105, allocations: 8.051 MB / 0.5564 GB, free: 16.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002574/0.713, allocations: 1.034 MB / 0.5574 GB, free: 16.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004959/0.7135, allocations: 360.8 kB / 0.5577 GB, free: 16.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1071/0.8207, allocations: 34.7 MB / 0.5916 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.8207, allocations: 50.22 kB / 0.5917 GB, free: 14.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 3.036e-06/0.8207, allocations: 0 / 0.5917 GB, free: 14.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005975/0.8267, allocations: 1.918 MB / 0.5935 GB, free: 12.81 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.8268, allocations: 188.4 kB / 0.5937 GB, free: 12.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.8282, allocations: 0.9636 MB / 0.5947 GB, free: 11.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.528e-05/0.8283, allocations: 41.7 kB / 0.5947 GB, free: 11.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004598/0.8287, allocations: 0.5792 MB / 0.5953 GB, free: 11.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/0.829, allocations: 291.3 kB / 0.5955 GB, free: 11.19 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.8294, allocations: 237 kB / 0.5958 GB, free: 11.04 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.8295, allocations: 347.2 kB / 0.5961 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005567/0.8301, allocations: 304.7 kB / 0.5964 GB, free: 10.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008794/0.831, allocations: 0.7476 MB / 0.5971 GB, free: 9.715 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.8324, allocations: 1.103 MB / 0.5982 GB, free: 8.785 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.8324, allocations: 4.812 kB / 0.5982 GB, free: 8.781 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002214/0.8346, allocations: 1.241 MB / 0.5994 GB, free: 7.934 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.8347, allocations: 15.75 kB / 0.5994 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.8347, allocations: 12 kB / 0.5994 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003338/0.838, allocations: 0.5232 MB / 0.5999 GB, free: 7.426 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.8392, allocations: 276.7 kB / 0.6002 GB, free: 7.188 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.8404, allocations: 1.38 MB / 0.6016 GB, free: 5.871 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009934/0.8414, allocations: 140.2 kB / 0.6017 GB, free: 5.758 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.8415, allocations: 68.64 kB / 0.6018 GB, free: 5.703 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.0005459/0.8421, allocations: 299.2 kB / 0.602 GB, free: 5.504 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002678/0.8424, allocations: 135.1 kB / 0.6022 GB, free: 5.371 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004857/0.8472, allocations: 4.593 MB / 0.6067 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-05/0.8473, allocations: 51.05 kB / 0.6067 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.8473, allocations: 0 / 0.6067 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.8473, allocations: 3.984 kB / 0.6067 GB, free: 2.363 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005979/0.8533, allocations: 4.985 MB / 0.6116 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.8533, allocations: 0 / 0.6116 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008461/0.8541, allocations: 172.3 kB / 0.6117 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001495/0.8556, allocations: 0.6814 MB / 0.6124 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-05/0.8557, allocations: 28.5 kB / 0.6124 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.8572, allocations: 1.773 MB / 0.6142 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.8572, allocations: 3.844 kB / 0.6142 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.8599, allocations: 2.036 MB / 0.6162 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004333/0.8604, allocations: 198 kB / 0.6164 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/0.8606, allocations: 43.84 kB / 0.6164 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.861, allocations: 16.62 kB / 0.6164 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.328e-05/0.8611, allocations: 59.92 kB / 0.6165 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.8612, allocations: 36.47 kB / 0.6165 GB, free: 10.69 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001131/0.8623, allocations: 0.8314 MB / 0.6173 GB, free: 10.08 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8623, allocations: 0 / 0.6173 GB, free: 10.08 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005503/0.8678, allocations: 1.295 MB / 0.6186 GB, free: 8.855 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.01044/0.8783, allocations: 3.753 MB / 0.6222 GB, free: 5.793 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002847/0.8811, allocations: 1.224 MB / 0.6234 GB, free: 4.773 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.8811, allocations: 0 / 0.6234 GB, free: 4.773 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.8827, allocations: 0.7466 MB / 0.6242 GB, free: 4.043 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/0.8861, allocations: 0.7222 MB / 0.6249 GB, free: 3.344 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01935/0.9055, allocations: 11.17 MB / 0.6358 GB, free: 7.738 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.9065, allocations: 1.32 MB / 0.6371 GB, free: 6.387 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001437/0.9079, allocations: 0.6388 MB / 0.6377 GB, free: 5.758 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008397/0.9088, allocations: 0.6672 MB / 0.6383 GB, free: 5.094 MB / 494.1 MB Notification: Performance of SimCode: time 1.593e-06/0.9088, allocations: 0 / 0.6383 GB, free: 5.094 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1478/1.057, allocations: 74.94 MB / 0.7115 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.84/18.9, allocations: 7.062 kB / 0.7115 GB, free: 10.62 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: 23.797853037016466]