Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 107.3 kB / 17.72 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001891/0.001892, allocations: 184.1 kB / 18.65 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 47.94 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07932/0.08068, allocations: 46.63 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2367/0.3175, allocations: 62.84 MB / 437.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02607/0.3436, allocations: 22.45 MB / 459.9 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001606/0.3453, allocations: 31.75 kB / 460 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.3474, allocations: 0.7335 MB / 460.7 MB, free: 9.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01693/0.3643, allocations: 5.804 MB / 466.5 MB, free: 3.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009047/0.3734, allocations: 3.455 MB / 469.9 MB, free: 500 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01824/0.3917, allocations: 9.048 MB / 479 MB, free: 7.324 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001522/0.3933, allocations: 0.6932 MB / 479.7 MB, free: 6.629 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.3958, allocations: 1.062 MB / 480.7 MB, free: 5.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001507/0.3973, allocations: 0.8207 MB / 481.6 MB, free: 4.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003733/0.3977, allocations: 92 kB / 481.7 MB, free: 4.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01585/0.4136, allocations: 7.668 MB / 489.3 MB, free: 12.97 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006349/0.4143, allocations: 290.9 kB / 489.6 MB, free: 12.69 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.4158, allocations: 0.7153 MB / 490.3 MB, free: 11.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01436/0.4302, allocations: 5.758 MB / 496.1 MB, free: 6.195 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4302, allocations: 0 / 496.1 MB, free: 6.195 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4302, allocations: 0 / 496.1 MB, free: 6.195 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.094e-05/0.4303, allocations: 0 / 496.1 MB, free: 6.195 MB / 414.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.007149/0.4374, allocations: 2.535 MB / 498.6 MB, free: 3.598 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.4375, allocations: 12.03 kB / 498.6 MB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000289/0.4378, allocations: 156.5 kB / 498.8 MB, free: 3.426 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004914/0.4427, allocations: 0.6595 MB / 499.4 MB, free: 2.766 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/0.445, allocations: 1.044 MB / 0.4888 GB, free: 1.676 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-05/0.4451, allocations: 74.39 kB / 0.4888 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/0.4454, allocations: 107.9 kB / 0.4889 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003941/0.4493, allocations: 1.671 MB / 0.4906 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.4494, allocations: 4 kB / 0.4906 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.4495, allocations: 48 kB / 0.4906 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.4496, allocations: 31.94 kB / 0.4906 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003354/0.4529, allocations: 1.463 MB / 0.4921 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009633/0.4626, allocations: 8.402 MB / 0.5003 GB, free: 5.109 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002999/0.4656, allocations: 1.7 MB / 0.5019 GB, free: 3.246 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005865/0.4662, allocations: 403.5 kB / 0.5023 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3114/0.7776, allocations: 63.66 MB / 0.5645 GB, free: 150 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.7777, allocations: 41.97 kB / 0.5645 GB, free: 149.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 2.775e-06/0.7777, allocations: 0 / 0.5645 GB, free: 149.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006114/0.7838, allocations: 1.997 MB / 0.5665 GB, free: 149.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.7839, allocations: 194.1 kB / 0.5667 GB, free: 149.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.7852, allocations: 0.9669 MB / 0.5676 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.7853, allocations: 41.83 kB / 0.5676 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003331/0.7856, allocations: 0.5809 MB / 0.5682 GB, free: 148.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.7858, allocations: 283.9 kB / 0.5685 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.7861, allocations: 242.8 kB / 0.5687 GB, free: 148.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.538e-05/0.7862, allocations: 351.9 kB / 0.5691 GB, free: 148.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.7867, allocations: 306.8 kB / 0.5693 GB, free: 148.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007647/0.7875, allocations: 0.7421 MB / 0.5701 GB, free: 147.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.7888, allocations: 1.105 MB / 0.5712 GB, free: 146.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.7888, allocations: 4.312 kB / 0.5712 GB, free: 146.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002115/0.791, allocations: 1.245 MB / 0.5724 GB, free: 146 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.791, allocations: 11.91 kB / 0.5724 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.168e-05/0.791, allocations: 18.62 kB / 0.5724 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003093/0.7941, allocations: 0.5285 MB / 0.5729 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.7952, allocations: 277.8 kB / 0.5732 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000836/0.796, allocations: 1.372 MB / 0.5745 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008366/0.7969, allocations: 140.3 kB / 0.5747 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-05/0.797, allocations: 65.45 kB / 0.5747 GB, free: 144.6 MB / 478.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.0005122/0.7975, allocations: 300 kB / 0.575 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.7977, allocations: 133.3 kB / 0.5751 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004373/0.8021, allocations: 4.49 MB / 0.5795 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.269e-05/0.8022, allocations: 44.41 kB / 0.5796 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.8022, allocations: 3.938 kB / 0.5796 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.8022, allocations: 12.59 kB / 0.5796 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004242/0.8064, allocations: 4.946 MB / 0.5844 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.8065, allocations: 0 / 0.5844 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007151/0.8072, allocations: 166.1 kB / 0.5846 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.8084, allocations: 0.6706 MB / 0.5852 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/0.8085, allocations: 27.58 kB / 0.5852 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009791/0.8095, allocations: 1.753 MB / 0.587 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.8095, allocations: 0 / 0.587 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.8115, allocations: 2.047 MB / 0.589 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.8118, allocations: 275.6 kB / 0.5892 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.8119, allocations: 43.73 kB / 0.5893 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004748/0.8124, allocations: 16 kB / 0.5893 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.192e-05/0.8125, allocations: 56.42 kB / 0.5893 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-05/0.8125, allocations: 39.98 kB / 0.5894 GB, free: 135.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000811/0.8134, allocations: 0.8303 MB / 0.5902 GB, free: 134.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8134, allocations: 0 / 0.5902 GB, free: 134.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002963/0.8163, allocations: 1.288 MB / 0.5914 GB, free: 133.3 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.006185/0.8225, allocations: 3.75 MB / 0.5951 GB, free: 129.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.8248, allocations: 1.265 MB / 0.5963 GB, free: 128.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.8248, allocations: 4 kB / 0.5963 GB, free: 128.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.8261, allocations: 0.9092 MB / 0.5972 GB, free: 127.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/0.8293, allocations: 0.7327 MB / 0.5979 GB, free: 126.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/0.8419, allocations: 11.13 MB / 0.6088 GB, free: 115 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.8424, allocations: 1.316 MB / 0.6101 GB, free: 113.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001062/0.8435, allocations: 0.6418 MB / 0.6107 GB, free: 113 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005717/0.8441, allocations: 0.6749 MB / 0.6114 GB, free: 112.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.41e-07/0.8441, allocations: 0 / 0.6114 GB, free: 112.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09265/0.9367, allocations: 72.83 MB / 0.6825 GB, free: 39.37 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.01/17.94, allocations: 15.94 kB / 0.6825 GB, free: 39.36 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches