Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2231, allocations: 50.55 MB / 408.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.05531/0.2785, allocations: 63.03 MB / 471.8 MB, free: 2.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02551/0.304, allocations: 22.47 MB / 494.2 MB, free: 11.71 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.3053, allocations: 27.81 kB / 494.3 MB, free: 11.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001837/0.3071, allocations: 0.7257 MB / 495 MB, free: 10.95 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01409/0.3212, allocations: 5.815 MB / 0.4891 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009032/0.3303, allocations: 3.475 MB / 0.4925 GB, free: 1.652 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01765/0.348, allocations: 9.052 MB / 0.5013 GB, free: 8.484 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001255/0.3493, allocations: 0.6846 MB / 0.502 GB, free: 7.789 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002061/0.3513, allocations: 1.078 MB / 0.503 GB, free: 6.707 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001295/0.3526, allocations: 0.8285 MB / 0.5038 GB, free: 5.875 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002757/0.3529, allocations: 92 kB / 0.5039 GB, free: 5.785 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01472/0.3677, allocations: 7.68 MB / 0.5114 GB, free: 14.1 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006733/0.3684, allocations: 282.8 kB / 0.5117 GB, free: 13.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00139/0.3698, allocations: 0.7154 MB / 0.5124 GB, free: 13.1 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01283/0.3826, allocations: 5.774 MB / 0.518 GB, free: 7.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3827, allocations: 0 / 0.518 GB, free: 7.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3827, allocations: 0 / 0.518 GB, free: 7.312 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.326e-05/0.3827, allocations: 0 / 0.518 GB, free: 7.312 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.00667/0.3894, allocations: 2.543 MB / 0.5205 GB, free: 4.707 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3895, allocations: 12.03 kB / 0.5205 GB, free: 4.695 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002342/0.3897, allocations: 152.5 kB / 0.5207 GB, free: 4.539 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004924/0.3946, allocations: 0.6673 MB / 0.5213 GB, free: 3.871 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002129/0.3968, allocations: 1.04 MB / 0.5223 GB, free: 2.785 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-05/0.3969, allocations: 86.14 kB / 0.5224 GB, free: 2.699 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.3971, allocations: 96 kB / 0.5225 GB, free: 2.605 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003759/0.4008, allocations: 1.671 MB / 0.5241 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/0.4009, allocations: 7.938 kB / 0.5241 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.401, allocations: 48 kB / 0.5242 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.977e-05/0.401, allocations: 28 kB / 0.5242 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003478/0.4045, allocations: 1.459 MB / 0.5256 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009748/0.4143, allocations: 8.405 MB / 0.5339 GB, free: 6.219 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003201/0.4175, allocations: 1.709 MB / 0.5355 GB, free: 4.344 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006349/0.4182, allocations: 402.6 kB / 0.5359 GB, free: 3.949 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.291/0.7091, allocations: 70.66 MB / 0.6049 GB, free: 65.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.7092, allocations: 42.3 kB / 0.6049 GB, free: 65.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.434e-06/0.7092, allocations: 0 / 0.6049 GB, free: 65.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005285/0.7145, allocations: 2.001 MB / 0.6069 GB, free: 63.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.7146, allocations: 192.3 kB / 0.6071 GB, free: 63.34 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.7156, allocations: 0.9622 MB / 0.608 GB, free: 62.38 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.237e-05/0.7157, allocations: 41.7 kB / 0.6081 GB, free: 62.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.716, allocations: 0.5786 MB / 0.6086 GB, free: 61.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.7162, allocations: 290.6 kB / 0.6089 GB, free: 61.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002431/0.7164, allocations: 238.8 kB / 0.6091 GB, free: 61.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.921e-05/0.7165, allocations: 349.9 kB / 0.6095 GB, free: 61.01 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/0.717, allocations: 302.5 kB / 0.6098 GB, free: 60.71 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006115/0.7176, allocations: 0.7418 MB / 0.6105 GB, free: 59.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.7186, allocations: 1.098 MB / 0.6116 GB, free: 58.49 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.7187, allocations: 4 kB / 0.6116 GB, free: 58.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001687/0.7204, allocations: 1.253 MB / 0.6128 GB, free: 57.22 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.7204, allocations: 12 kB / 0.6128 GB, free: 57.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.7204, allocations: 16 kB / 0.6128 GB, free: 57.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003041/0.7235, allocations: 0.5231 MB / 0.6133 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009693/0.7244, allocations: 283.4 kB / 0.6136 GB, free: 56.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007246/0.7252, allocations: 1.375 MB / 0.6149 GB, free: 54.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007042/0.7259, allocations: 138.8 kB / 0.6151 GB, free: 54.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.371e-05/0.726, allocations: 67.98 kB / 0.6151 GB, free: 54.8 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.0003753/0.7264, allocations: 299 kB / 0.6154 GB, free: 54.51 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.7265, allocations: 131.1 kB / 0.6155 GB, free: 54.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/0.73, allocations: 4.504 MB / 0.6199 GB, free: 49.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/0.73, allocations: 43.94 kB / 0.62 GB, free: 49.88 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.73, allocations: 0 / 0.62 GB, free: 49.88 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.73, allocations: 7.969 kB / 0.62 GB, free: 49.88 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003941/0.734, allocations: 4.938 MB / 0.6248 GB, free: 44.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.734, allocations: 0 / 0.6248 GB, free: 44.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007524/0.7348, allocations: 171.7 kB / 0.625 GB, free: 44.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.7361, allocations: 0.6684 MB / 0.6256 GB, free: 43.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/0.7361, allocations: 31.92 kB / 0.6257 GB, free: 43.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.7371, allocations: 1.752 MB / 0.6274 GB, free: 42.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.7372, allocations: 4 kB / 0.6274 GB, free: 42.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.7391, allocations: 2.039 MB / 0.6294 GB, free: 40.06 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000292/0.7394, allocations: 279.1 kB / 0.6296 GB, free: 39.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000203/0.7396, allocations: 48.86 kB / 0.6297 GB, free: 39.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005351/0.7401, allocations: 20 kB / 0.6297 GB, free: 39.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/0.7402, allocations: 52.48 kB / 0.6297 GB, free: 39.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.7403, allocations: 35.98 kB / 0.6298 GB, free: 39.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008563/0.7411, allocations: 0.8303 MB / 0.6306 GB, free: 38.83 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7412, allocations: 0 / 0.6306 GB, free: 38.83 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002977/0.7441, allocations: 1.293 MB / 0.6319 GB, free: 37.57 MB / 462.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.006344/0.7505, allocations: 3.766 MB / 0.6355 GB, free: 33.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.7527, allocations: 1.259 MB / 0.6368 GB, free: 32.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.7527, allocations: 0 / 0.6368 GB, free: 32.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.754, allocations: 0.9155 MB / 0.6377 GB, free: 31.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/0.7572, allocations: 0.7224 MB / 0.6384 GB, free: 30.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.7696, allocations: 11.15 MB / 0.6492 GB, free: 19.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.7701, allocations: 1.312 MB / 0.6505 GB, free: 17.97 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001034/0.7712, allocations: 0.6276 MB / 0.6511 GB, free: 17.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000594/0.7718, allocations: 0.6711 MB / 0.6518 GB, free: 16.69 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7718, allocations: 0 / 0.6518 GB, free: 16.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1085/0.8802, allocations: 72.93 MB / 0.723 GB, free: 8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.35/17.23, allocations: 8.047 kB / 0.723 GB, free: 7.992 MB / 0.5137 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches