Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_0_0_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.001314/0.001314, allocations: 97.06 kB / 16.3 MB, free: 5.996 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.001391/0.001391, allocations: 182.3 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.0002591, allocations: 5.25 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1152, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.04932/0.1646, allocations: 53.06 MB / 404.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02553/0.1902, allocations: 19.28 MB / 423.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001806/0.192, allocations: 39.69 kB / 423.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.194, allocations: 0.5715 MB / 424.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2532/0.4472, allocations: 4.889 MB / 429.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008304/0.4556, allocations: 2.739 MB / 431.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02133/0.4769, allocations: 12.71 MB / 444.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.4785, allocations: 0.6032 MB / 445.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002483/0.481, allocations: 0.927 MB / 446 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.4821, allocations: 0.6504 MB / 446.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.4823, allocations: 49.75 kB / 446.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01514/0.4974, allocations: 7.436 MB / 454.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005041/0.498, allocations: 237.1 kB / 454.4 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000783/0.4987, allocations: 292.5 kB / 454.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008371/0.5071, allocations: 3.904 MB / 458.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.5072, allocations: 0 / 458.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5072, allocations: 0 / 458.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.945e-05/0.5072, allocations: 0 / 458.6 MB, free: 4.848 MB / 350.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.00671/0.5139, allocations: 2.187 MB / 460.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.514, allocations: 8.031 kB / 460.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002783/0.5143, allocations: 162.3 kB / 460.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004546/0.5188, allocations: 0.6635 MB / 461.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.5207, allocations: 0.9619 MB / 462.6 MB, free: 17.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.12e-05/0.5208, allocations: 73.39 kB / 462.6 MB, free: 17.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.5209, allocations: 95.25 kB / 462.7 MB, free: 17.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003092/0.524, allocations: 1.662 MB / 464.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.524, allocations: 13 kB / 464.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.5241, allocations: 45.06 kB / 464.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.5242, allocations: 28 kB / 464.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003104/0.5273, allocations: 1.455 MB / 465.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009874/0.5372, allocations: 8.431 MB / 474.4 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.54, allocations: 1.691 MB / 476.1 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1237/0.6638, allocations: 63.97 MB / 0.5274 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.949e-05/0.6639, allocations: 45.25 kB / 0.5274 GB, free: 15.04 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 3.597e-06/0.6639, allocations: 4 kB / 0.5274 GB, free: 15.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.006104/0.67, allocations: 1.984 MB / 0.5294 GB, free: 13.47 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.6702, allocations: 190.1 kB / 0.5295 GB, free: 13.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.6715, allocations: 0.9613 MB / 0.5305 GB, free: 12.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.002e-05/0.6716, allocations: 39.2 kB / 0.5305 GB, free: 12.47 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004538/0.6721, allocations: 0.5569 MB / 0.5311 GB, free: 12.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002459/0.6723, allocations: 282.1 kB / 0.5313 GB, free: 11.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.6724, allocations: 22.5 kB / 0.5313 GB, free: 11.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.6725, allocations: 350.1 kB / 0.5317 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/0.6731, allocations: 301.8 kB / 0.532 GB, free: 11.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008057/0.6739, allocations: 0.7344 MB / 0.5327 GB, free: 10.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006488/0.6745, allocations: 414.7 kB / 0.5331 GB, free: 10.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/0.6745, allocations: 4 kB / 0.5331 GB, free: 10.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001952/0.6765, allocations: 1.235 MB / 0.5343 GB, free: 9.496 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.6765, allocations: 12 kB / 0.5343 GB, free: 9.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.6766, allocations: 12 kB / 0.5343 GB, free: 9.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003114/0.6797, allocations: 0.5275 MB / 0.5348 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.6807, allocations: 285.8 kB / 0.5351 GB, free: 8.742 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.6818, allocations: 1.371 MB / 0.5364 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.6829, allocations: 162.4 kB / 0.5366 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-05/0.683, allocations: 67.2 kB / 0.5367 GB, free: 7.238 MB / 446.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005113/0.6835, allocations: 305.5 kB / 0.5369 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.6837, allocations: 118.6 kB / 0.5371 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004809/0.6885, allocations: 4.503 MB / 0.5415 GB, free: 4.098 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.653e-05/0.6886, allocations: 48.8 kB / 0.5415 GB, free: 4.062 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.6886, allocations: 2.625 kB / 0.5415 GB, free: 4.062 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.6886, allocations: 7.984 kB / 0.5415 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005967/0.6946, allocations: 4.939 MB / 0.5463 GB, free: 0.582 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.679e-06/0.6946, allocations: 0 / 0.5463 GB, free: 0.582 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008117/0.6955, allocations: 169.4 kB / 0.5465 GB, free: 444 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003781/0.6992, allocations: 1.599 MB / 0.5481 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.676e-05/0.6994, allocations: 25.64 kB / 0.5481 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.7008, allocations: 1.741 MB / 0.5498 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.7008, allocations: 3.953 kB / 0.5498 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.7034, allocations: 2.019 MB / 0.5518 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006791/0.7041, allocations: 359.8 kB / 0.5521 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.7043, allocations: 20.95 kB / 0.5521 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.7049, allocations: 64.75 kB / 0.5522 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.705, allocations: 53.23 kB / 0.5522 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.333e-05/0.7051, allocations: 35.23 kB / 0.5523 GB, free: 11.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001131/0.7062, allocations: 0.8157 MB / 0.5531 GB, free: 10.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7062, allocations: 3.75 kB / 0.5531 GB, free: 10.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005289/0.7115, allocations: 1.282 MB / 0.5543 GB, free: 9.668 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01134/0.7229, allocations: 3.804 MB / 0.558 GB, free: 6.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003079/0.726, allocations: 1.251 MB / 0.5593 GB, free: 5.746 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.515e-06/0.726, allocations: 5.875 kB / 0.5593 GB, free: 5.742 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.7276, allocations: 0.905 MB / 0.5601 GB, free: 5.219 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00359/0.7313, allocations: 0.6971 MB / 0.5608 GB, free: 4.656 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01997/0.7512, allocations: 17.9 MB / 0.5783 GB, free: 3.621 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009567/0.7523, allocations: 1.353 MB / 0.5796 GB, free: 2.242 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001685/0.754, allocations: 0.6319 MB / 0.5802 GB, free: 1.621 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007646/0.7547, allocations: 0.6583 MB / 0.5809 GB, free: 1.461 MB / 478.1 MB Notification: Performance of SimCode: time 1.703e-06/0.7547, allocations: 0 / 0.5809 GB, free: 1.461 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3202/1.075, allocations: 71.18 MB / 0.6504 GB, free: 158.9 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002561/1.075, allocations: 271.7 kB / 0.6507 GB, free: 158.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.058/6.133, allocations: 0 / 0.6507 GB, free: 158.5 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat