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.001665/0.001665, allocations: 122.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.00204/0.00204, allocations: 202 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.496/1.496, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001823, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2686, allocations: 50.54 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06759/0.3362, allocations: 63.03 MB / 471.8 MB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03023/0.3665, allocations: 22.45 MB / 494.2 MB, free: 11.76 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00186/0.3684, allocations: 27.81 kB / 494.3 MB, free: 11.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002347/0.3708, allocations: 0.7296 MB / 495 MB, free: 11 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01645/0.3873, allocations: 5.802 MB / 0.489 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00996/0.3973, allocations: 3.463 MB / 0.4924 GB, free: 1.727 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01774/0.415, allocations: 9.048 MB / 0.5013 GB, free: 8.566 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0016/0.4167, allocations: 0.7001 MB / 0.5019 GB, free: 7.855 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.4192, allocations: 1.055 MB / 0.503 GB, free: 6.797 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.4207, allocations: 0.8246 MB / 0.5038 GB, free: 5.969 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002127/0.4209, allocations: 92 kB / 0.5039 GB, free: 5.879 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01509/0.436, allocations: 7.68 MB / 0.5114 GB, free: 14.19 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005071/0.4366, allocations: 282.9 kB / 0.5116 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.4377, allocations: 0.7153 MB / 0.5123 GB, free: 13.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.451, allocations: 5.778 MB / 0.518 GB, free: 7.402 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4511, allocations: 0 / 0.518 GB, free: 7.402 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4511, allocations: 0 / 0.518 GB, free: 7.402 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.632e-05/0.4511, allocations: 4 kB / 0.518 GB, free: 7.398 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.007325/0.4585, allocations: 2.535 MB / 0.5205 GB, free: 4.801 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.4585, allocations: 12.03 kB / 0.5205 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002236/0.4588, allocations: 160.5 kB / 0.5206 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004758/0.4635, allocations: 0.6595 MB / 0.5213 GB, free: 3.965 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002266/0.4658, allocations: 1.044 MB / 0.5223 GB, free: 2.875 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.667e-05/0.4659, allocations: 78.14 kB / 0.5224 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.4661, allocations: 96 kB / 0.5225 GB, free: 2.703 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003804/0.4699, allocations: 1.674 MB / 0.5241 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.4699, allocations: 7.938 kB / 0.5241 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.4701, allocations: 44 kB / 0.5241 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/0.4701, allocations: 28 kB / 0.5242 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003461/0.4736, allocations: 1.471 MB / 0.5256 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/0.4842, allocations: 8.401 MB / 0.5338 GB, free: 6.309 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003293/0.4875, allocations: 1.702 MB / 0.5355 GB, free: 4.441 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000657/0.4882, allocations: 402.6 kB / 0.5359 GB, free: 4.047 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3646/0.8528, allocations: 70.65 MB / 0.6049 GB, free: 47.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.8529, allocations: 46.31 kB / 0.6049 GB, free: 47.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.665e-06/0.8529, allocations: 0 / 0.6049 GB, free: 47.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005123/0.858, allocations: 2 MB / 0.6068 GB, free: 45.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.214e-05/0.8581, allocations: 192.1 kB / 0.607 GB, free: 45.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009116/0.859, allocations: 0.9704 MB / 0.608 GB, free: 44.81 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.886e-05/0.8591, allocations: 36.89 kB / 0.608 GB, free: 44.78 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.8594, allocations: 0.5873 MB / 0.6086 GB, free: 44.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.8595, allocations: 283.5 kB / 0.6089 GB, free: 44.29 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002404/0.8598, allocations: 238.5 kB / 0.6091 GB, free: 44.13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.526e-05/0.8598, allocations: 344.8 kB / 0.6094 GB, free: 43.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004309/0.8603, allocations: 303 kB / 0.6097 GB, free: 43.61 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006489/0.8609, allocations: 0.7472 MB / 0.6104 GB, free: 42.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.862, allocations: 1.096 MB / 0.6115 GB, free: 41.87 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.862, allocations: 8 kB / 0.6115 GB, free: 41.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001757/0.8638, allocations: 1.251 MB / 0.6127 GB, free: 41.01 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.8638, allocations: 10.97 kB / 0.6127 GB, free: 41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.8639, allocations: 16 kB / 0.6128 GB, free: 40.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003159/0.867, allocations: 0.5209 MB / 0.6133 GB, free: 40.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009478/0.868, allocations: 284.3 kB / 0.6135 GB, free: 40.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007695/0.8688, allocations: 1.369 MB / 0.6149 GB, free: 38.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008551/0.8696, allocations: 138.2 kB / 0.615 GB, free: 38.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.747e-05/0.8697, allocations: 67.09 kB / 0.6151 GB, free: 38.81 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.0004633/0.8702, allocations: 298.1 kB / 0.6154 GB, free: 38.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.8704, allocations: 127.2 kB / 0.6155 GB, free: 38.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003741/0.8742, allocations: 4.497 MB / 0.6199 GB, free: 34.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.609e-05/0.8742, allocations: 47.92 kB / 0.6199 GB, free: 34.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.8742, allocations: 0 / 0.6199 GB, free: 34.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.8742, allocations: 3.984 kB / 0.6199 GB, free: 34.73 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004034/0.8783, allocations: 4.953 MB / 0.6248 GB, free: 29.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.8783, allocations: 0 / 0.6248 GB, free: 29.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007414/0.879, allocations: 171.3 kB / 0.6249 GB, free: 29.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.8803, allocations: 0.6646 MB / 0.6256 GB, free: 28.86 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.977e-05/0.8804, allocations: 23.98 kB / 0.6256 GB, free: 28.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009796/0.8814, allocations: 1.759 MB / 0.6273 GB, free: 27.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.8814, allocations: 48 / 0.6273 GB, free: 27.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.8833, allocations: 2.042 MB / 0.6293 GB, free: 24.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.8836, allocations: 270.5 kB / 0.6296 GB, free: 24.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.8838, allocations: 45.14 kB / 0.6296 GB, free: 24.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004805/0.8843, allocations: 25.52 kB / 0.6296 GB, free: 24.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.106e-05/0.8843, allocations: 56.48 kB / 0.6297 GB, free: 24.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.765e-05/0.8844, allocations: 31.98 kB / 0.6297 GB, free: 24.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008636/0.8853, allocations: 0.8303 MB / 0.6305 GB, free: 23.72 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8853, allocations: 4 kB / 0.6305 GB, free: 23.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003079/0.8884, allocations: 1.292 MB / 0.6318 GB, free: 22.46 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.006066/0.8944, allocations: 3.76 MB / 0.6355 GB, free: 18.78 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.8967, allocations: 1.269 MB / 0.6367 GB, free: 17.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.8967, allocations: 0 / 0.6367 GB, free: 17.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.898, allocations: 0.9224 MB / 0.6376 GB, free: 16.66 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003003/0.901, allocations: 0.7199 MB / 0.6383 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/0.9137, allocations: 11.13 MB / 0.6492 GB, free: 4.387 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.9144, allocations: 1.328 MB / 0.6505 GB, free: 3.027 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001126/0.9155, allocations: 0.6327 MB / 0.6511 GB, free: 2.406 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005491/0.9161, allocations: 0.671 MB / 0.6517 GB, free: 1.738 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.9161, allocations: 0 / 0.6517 GB, free: 1.738 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/1.045, allocations: 72.93 MB / 0.723 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.03/18.08, allocations: 3.094 kB / 0.723 GB, free: 9.168 MB / 0.5294 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.1.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