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.001435/0.001435, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 200.6 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2242, allocations: 50.56 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.0627/0.2869, allocations: 63.03 MB / 471.8 MB, free: 2.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02704/0.314, allocations: 22.45 MB / 494.3 MB, free: 11.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008494/0.3149, allocations: 31.75 kB / 494.3 MB, free: 11.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.3166, allocations: 0.7296 MB / 495 MB, free: 10.96 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01377/0.3304, allocations: 5.803 MB / 0.4891 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008469/0.3389, allocations: 3.471 MB / 0.4925 GB, free: 1.684 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01804/0.3569, allocations: 9.036 MB / 0.5013 GB, free: 8.531 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.3583, allocations: 0.6923 MB / 0.502 GB, free: 7.828 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.3604, allocations: 1.058 MB / 0.503 GB, free: 6.766 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.3617, allocations: 0.8285 MB / 0.5038 GB, free: 5.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.3619, allocations: 96 kB / 0.5039 GB, free: 5.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01463/0.3765, allocations: 7.668 MB / 0.5114 GB, free: 14.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003997/0.377, allocations: 290.8 kB / 0.5117 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.3781, allocations: 0.7154 MB / 0.5124 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.3897, allocations: 5.774 MB / 0.518 GB, free: 7.371 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3897, allocations: 3.938 kB / 0.518 GB, free: 7.367 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3898, allocations: 0 / 0.518 GB, free: 7.367 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3898, allocations: 0 / 0.518 GB, free: 7.367 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.005672/0.3955, allocations: 2.543 MB / 0.5205 GB, free: 4.762 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3955, allocations: 8.031 kB / 0.5205 GB, free: 4.754 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001959/0.3957, allocations: 156.5 kB / 0.5207 GB, free: 4.594 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004581/0.4003, allocations: 0.6673 MB / 0.5213 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.4021, allocations: 1.044 MB / 0.5223 GB, free: 2.836 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.377e-05/0.4022, allocations: 78.14 kB / 0.5224 GB, free: 2.758 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.4024, allocations: 96 kB / 0.5225 GB, free: 2.664 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003603/0.406, allocations: 1.678 MB / 0.5242 GB, free: 0.832 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.406, allocations: 3.938 kB / 0.5242 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.4061, allocations: 48 kB / 0.5242 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.4062, allocations: 24 kB / 0.5242 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003421/0.4096, allocations: 1.467 MB / 0.5257 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009894/0.4195, allocations: 8.401 MB / 0.5339 GB, free: 6.277 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003239/0.4228, allocations: 1.702 MB / 0.5355 GB, free: 4.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006719/0.4235, allocations: 410.7 kB / 0.5359 GB, free: 4.008 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2898/0.7133, allocations: 70.64 MB / 0.6049 GB, free: 47.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.7134, allocations: 46.81 kB / 0.6049 GB, free: 47.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.585e-06/0.7134, allocations: 0 / 0.6049 GB, free: 47.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.004912/0.7183, allocations: 1.99 MB / 0.6069 GB, free: 45.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.7184, allocations: 196.8 kB / 0.6071 GB, free: 45.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008636/0.7192, allocations: 0.9692 MB / 0.608 GB, free: 44.71 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.732e-05/0.7193, allocations: 44.38 kB / 0.6081 GB, free: 44.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.7195, allocations: 0.5796 MB / 0.6086 GB, free: 44.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.7197, allocations: 290.4 kB / 0.6089 GB, free: 44.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.7199, allocations: 230.3 kB / 0.6091 GB, free: 44.02 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.319e-05/0.72, allocations: 347.4 kB / 0.6095 GB, free: 43.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/0.7204, allocations: 304.5 kB / 0.6098 GB, free: 43.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005635/0.721, allocations: 0.7432 MB / 0.6105 GB, free: 42.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.722, allocations: 1.099 MB / 0.6115 GB, free: 41.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.722, allocations: 4 kB / 0.6116 GB, free: 41.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001655/0.7237, allocations: 1.252 MB / 0.6128 GB, free: 40.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.7237, allocations: 14.81 kB / 0.6128 GB, free: 40.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.7237, allocations: 12 kB / 0.6128 GB, free: 40.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002926/0.7267, allocations: 0.5249 MB / 0.6133 GB, free: 40.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009024/0.7276, allocations: 282 kB / 0.6136 GB, free: 40.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006805/0.7283, allocations: 1.374 MB / 0.6149 GB, free: 38.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006785/0.729, allocations: 137.1 kB / 0.6151 GB, free: 38.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.371e-05/0.7291, allocations: 66.8 kB / 0.6151 GB, free: 38.7 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.0003718/0.7294, allocations: 295.2 kB / 0.6154 GB, free: 38.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.7296, allocations: 131.2 kB / 0.6155 GB, free: 38.39 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003407/0.733, allocations: 4.493 MB / 0.6199 GB, free: 34.69 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/0.7331, allocations: 46.7 kB / 0.62 GB, free: 34.65 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.7331, allocations: 0.8125 kB / 0.62 GB, free: 34.65 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.7331, allocations: 7.984 kB / 0.62 GB, free: 34.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.7368, allocations: 4.945 MB / 0.6248 GB, free: 29.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.7368, allocations: 5.969 kB / 0.6248 GB, free: 29.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006914/0.7375, allocations: 170.2 kB / 0.625 GB, free: 29.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.7387, allocations: 0.6684 MB / 0.6256 GB, free: 28.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.7388, allocations: 23.47 kB / 0.6256 GB, free: 28.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008779/0.7397, allocations: 1.763 MB / 0.6274 GB, free: 26.94 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7397, allocations: 0 / 0.6274 GB, free: 26.94 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.7414, allocations: 2.035 MB / 0.6293 GB, free: 24.85 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.7416, allocations: 279.2 kB / 0.6296 GB, free: 24.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.7418, allocations: 41.84 kB / 0.6297 GB, free: 24.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.7422, allocations: 20 kB / 0.6297 GB, free: 24.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.075e-05/0.7423, allocations: 55.48 kB / 0.6297 GB, free: 24.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.475e-05/0.7424, allocations: 31.98 kB / 0.6298 GB, free: 24.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007553/0.7431, allocations: 0.8342 MB / 0.6306 GB, free: 23.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7431, allocations: 4 kB / 0.6306 GB, free: 23.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002546/0.7457, allocations: 1.294 MB / 0.6318 GB, free: 22.37 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.005459/0.7512, allocations: 3.766 MB / 0.6355 GB, free: 18.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.7533, allocations: 1.261 MB / 0.6367 GB, free: 17.47 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7533, allocations: 0 / 0.6367 GB, free: 17.47 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.7545, allocations: 0.9187 MB / 0.6376 GB, free: 16.57 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00298/0.7575, allocations: 0.7217 MB / 0.6384 GB, free: 15.88 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.7689, allocations: 11.15 MB / 0.6492 GB, free: 4.289 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/0.7694, allocations: 1.324 MB / 0.6505 GB, free: 2.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001023/0.7704, allocations: 0.6154 MB / 0.6511 GB, free: 2.324 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005664/0.771, allocations: 0.6711 MB / 0.6518 GB, free: 1.652 MB / 462.1 MB Notification: Performance of SimCode: time 4.2e-07/0.771, allocations: 0 / 0.6518 GB, free: 1.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2249/0.9959, allocations: 72.95 MB / 0.723 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.49/17.49, allocations: 3.625 kB / 0.723 GB, free: 9.055 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches