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.001336/0.001336, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001327/0.001327, allocations: 187 kB / 18.66 MB, free: 4.414 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.304/1.304, 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.001222/0.001222, allocations: 59.86 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08021/0.08144, allocations: 46.62 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2243/0.3057, allocations: 62.86 MB / 437.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02541/0.3312, allocations: 22.43 MB / 459.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.3327, allocations: 27.81 kB / 460 MB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001919/0.3346, allocations: 0.7296 MB / 460.7 MB, free: 9.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01589/0.3505, allocations: 5.797 MB / 466.5 MB, free: 3.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008637/0.3592, allocations: 3.439 MB / 469.9 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01749/0.3767, allocations: 9.041 MB / 479 MB, free: 7.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001308/0.3781, allocations: 0.6918 MB / 479.7 MB, free: 6.641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002041/0.3801, allocations: 1.039 MB / 480.7 MB, free: 5.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001142/0.3813, allocations: 0.8207 MB / 481.5 MB, free: 4.773 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001625/0.3815, allocations: 96 kB / 481.6 MB, free: 4.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01458/0.396, allocations: 7.656 MB / 489.3 MB, free: 13.02 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003937/0.3965, allocations: 298.9 kB / 489.6 MB, free: 12.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.3975, allocations: 0.7114 MB / 490.3 MB, free: 12.01 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01273/0.4103, allocations: 5.745 MB / 496 MB, free: 6.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4103, allocations: 4 kB / 496 MB, free: 6.246 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4103, allocations: 0 / 496 MB, free: 6.246 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.433e-05/0.4104, allocations: 0 / 496 MB, free: 6.246 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.006932/0.4173, allocations: 2.47 MB / 498.5 MB, free: 3.719 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.4174, allocations: 8.031 kB / 498.5 MB, free: 3.711 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002561/0.4177, allocations: 156.5 kB / 498.7 MB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004793/0.4225, allocations: 0.6557 MB / 499.3 MB, free: 2.895 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002198/0.4247, allocations: 1.043 MB / 0.4886 GB, free: 1.805 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/0.4248, allocations: 74.39 kB / 0.4887 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001904/0.425, allocations: 99.94 kB / 0.4888 GB, free: 1.633 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003832/0.4288, allocations: 1.675 MB / 0.4904 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/0.4289, allocations: 7.875 kB / 0.4904 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.429, allocations: 48 kB / 0.4905 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.429, allocations: 24 kB / 0.4905 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003554/0.4326, allocations: 1.471 MB / 0.4919 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.4426, allocations: 8.381 MB / 0.5001 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003201/0.4459, allocations: 1.708 MB / 0.5018 GB, free: 3.387 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006478/0.4465, allocations: 407.5 kB / 0.5022 GB, free: 2.984 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2954/0.742, allocations: 63.65 MB / 0.5643 GB, free: 150.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.742, allocations: 47.64 kB / 0.5644 GB, free: 150.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 2.545e-06/0.742, allocations: 0 / 0.5644 GB, free: 150.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.005999/0.748, allocations: 1.985 MB / 0.5663 GB, free: 150.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.7481, allocations: 195.7 kB / 0.5665 GB, free: 149.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.7493, allocations: 0.9625 MB / 0.5674 GB, free: 149.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.7494, allocations: 44.19 kB / 0.5675 GB, free: 149.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.7497, allocations: 0.5654 MB / 0.568 GB, free: 149.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.7499, allocations: 276.4 kB / 0.5683 GB, free: 148.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/0.7502, allocations: 235.2 kB / 0.5685 GB, free: 148.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.638e-05/0.7502, allocations: 350.5 kB / 0.5689 GB, free: 148.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000503/0.7507, allocations: 303.6 kB / 0.5692 GB, free: 148.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006998/0.7515, allocations: 0.747 MB / 0.5699 GB, free: 147.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.7527, allocations: 1.1 MB / 0.571 GB, free: 146.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.7527, allocations: 8.344 kB / 0.571 GB, free: 146.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00204/0.7548, allocations: 1.24 MB / 0.5722 GB, free: 146.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.7548, allocations: 11.09 kB / 0.5722 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.7548, allocations: 14.34 kB / 0.5722 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003165/0.758, allocations: 0.5277 MB / 0.5727 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.759, allocations: 275.3 kB / 0.573 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007912/0.7598, allocations: 1.383 MB / 0.5743 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007262/0.7606, allocations: 138 kB / 0.5745 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.983e-05/0.7607, allocations: 66.42 kB / 0.5745 GB, free: 144.8 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.0004109/0.7611, allocations: 289.8 kB / 0.5748 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002078/0.7613, allocations: 120.2 kB / 0.5749 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004188/0.7655, allocations: 4.489 MB / 0.5793 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.29e-05/0.7655, allocations: 43.31 kB / 0.5793 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.7656, allocations: 3.938 kB / 0.5793 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.7656, allocations: 9.094 kB / 0.5794 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004216/0.7698, allocations: 4.938 MB / 0.5842 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.7698, allocations: 0 / 0.5842 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000723/0.7706, allocations: 166.2 kB / 0.5843 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001248/0.7718, allocations: 0.6709 MB / 0.585 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.902e-05/0.7719, allocations: 24.55 kB / 0.585 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009705/0.7728, allocations: 1.763 MB / 0.5867 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.7729, allocations: 0 / 0.5867 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.7748, allocations: 2.03 MB / 0.5887 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/0.7751, allocations: 269.3 kB / 0.589 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.7752, allocations: 35.69 kB / 0.589 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.7757, allocations: 20 kB / 0.589 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.341e-05/0.7758, allocations: 56.42 kB / 0.5891 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.837e-05/0.7758, allocations: 31.98 kB / 0.5891 GB, free: 135.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008155/0.7766, allocations: 0.8381 MB / 0.5899 GB, free: 134.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7767, allocations: 0 / 0.5899 GB, free: 134.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003239/0.7799, allocations: 1.28 MB / 0.5912 GB, free: 133.5 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.005613/0.7855, allocations: 3.729 MB / 0.5948 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.7877, allocations: 1.266 MB / 0.5961 GB, free: 128.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.7878, allocations: 7.844 kB / 0.5961 GB, free: 128.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.7891, allocations: 0.9074 MB / 0.597 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00319/0.7923, allocations: 0.7345 MB / 0.5977 GB, free: 127 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.8047, allocations: 11.06 MB / 0.6085 GB, free: 115.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005156/0.8053, allocations: 1.32 MB / 0.6098 GB, free: 114.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001073/0.8064, allocations: 0.6271 MB / 0.6104 GB, free: 113.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005747/0.807, allocations: 0.6672 MB / 0.611 GB, free: 112.9 MB / 478.1 MB Notification: Performance of SimCode: time 6.61e-07/0.807, allocations: 0 / 0.611 GB, free: 112.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0925/0.8995, allocations: 72.82 MB / 0.6821 GB, free: 39.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.51/17.41, allocations: 11.89 kB / 0.6822 GB, free: 39.86 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