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.000924/0.0009241, allocations: 91.62 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 205.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002783, allocations: 7.984 kB / 306.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1149, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2698/0.3847, allocations: 53.12 MB / 411.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02353/0.4083, allocations: 19.29 MB / 430.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.41, allocations: 35.69 kB / 430.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.4117, allocations: 0.5715 MB / 431.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01364/0.4253, allocations: 4.893 MB / 436.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009679/0.435, allocations: 2.741 MB / 438.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01929/0.4543, allocations: 12.7 MB / 451.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.4556, allocations: 0.5994 MB / 452.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.4576, allocations: 0.9227 MB / 453.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008376/0.4584, allocations: 0.6575 MB / 453.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.4586, allocations: 55.92 kB / 453.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01387/0.4724, allocations: 7.437 MB / 461.2 MB, free: 4.609 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003852/0.4728, allocations: 239 kB / 461.4 MB, free: 4.375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005004/0.4734, allocations: 293 kB / 461.7 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007034/0.4804, allocations: 3.905 MB / 465.6 MB, free: 172 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.4804, allocations: 0 / 465.6 MB, free: 172 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4804, allocations: 0 / 465.6 MB, free: 172 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.4804, allocations: 0 / 465.6 MB, free: 172 kB / 366.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.005347/0.4858, allocations: 2.202 MB / 467.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4859, allocations: 12.03 kB / 467.9 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001986/0.4861, allocations: 160.3 kB / 468 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004493/0.4906, allocations: 0.6617 MB / 468.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.4924, allocations: 0.9611 MB / 469.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.765e-05/0.4925, allocations: 74.02 kB / 469.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.4927, allocations: 96 kB / 469.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003326/0.496, allocations: 1.659 MB / 471.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.496, allocations: 3.938 kB / 471.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.4962, allocations: 52 kB / 471.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.4962, allocations: 24 kB / 471.5 MB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003094/0.4993, allocations: 1.455 MB / 473 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0102/0.5095, allocations: 8.42 MB / 481.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003264/0.5128, allocations: 1.701 MB / 483.1 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3929/0.9058, allocations: 70.94 MB / 0.5411 GB, free: 143.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.658e-05/0.9058, allocations: 50.53 kB / 0.5411 GB, free: 143.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.594e-06/0.9059, allocations: 0 / 0.5411 GB, free: 143.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.006156/0.912, allocations: 1.984 MB / 0.5431 GB, free: 143.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.9121, allocations: 193.3 kB / 0.5432 GB, free: 143.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00133/0.9134, allocations: 0.9527 MB / 0.5442 GB, free: 143.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.9135, allocations: 40.95 kB / 0.5442 GB, free: 143.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.9139, allocations: 0.5641 MB / 0.5448 GB, free: 143 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.9141, allocations: 281.5 kB / 0.545 GB, free: 142.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.464e-05/0.9142, allocations: 21.91 kB / 0.545 GB, free: 142.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.438e-05/0.9142, allocations: 352.9 kB / 0.5454 GB, free: 142.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004842/0.9147, allocations: 297.8 kB / 0.5457 GB, free: 142.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006831/0.9154, allocations: 0.7346 MB / 0.5464 GB, free: 141.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006524/0.9161, allocations: 406.2 kB / 0.5468 GB, free: 141.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.9161, allocations: 4.625 kB / 0.5468 GB, free: 141.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001933/0.918, allocations: 1.24 MB / 0.548 GB, free: 140.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.9181, allocations: 14.78 kB / 0.548 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-05/0.9181, allocations: 15.12 kB / 0.548 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003066/0.9212, allocations: 0.5238 MB / 0.5485 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.9223, allocations: 281.6 kB / 0.5488 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008661/0.9231, allocations: 1.371 MB / 0.5501 GB, free: 139.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009635/0.9241, allocations: 161.6 kB / 0.5503 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.863e-05/0.9242, allocations: 70.56 kB / 0.5504 GB, free: 139.5 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.0004948/0.9247, allocations: 296.1 kB / 0.5506 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.9249, allocations: 128.5 kB / 0.5508 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00437/0.9293, allocations: 4.501 MB / 0.5552 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.092e-05/0.9294, allocations: 43.78 kB / 0.5552 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.9294, allocations: 0.75 kB / 0.5552 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.9294, allocations: 3.984 kB / 0.5552 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004852/0.9342, allocations: 4.946 MB / 0.56 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.9343, allocations: 0.5 kB / 0.56 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007795/0.9351, allocations: 170.2 kB / 0.5602 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/0.9384, allocations: 1.59 MB / 0.5618 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-05/0.9385, allocations: 27.75 kB / 0.5618 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.9395, allocations: 1.754 MB / 0.5635 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.9395, allocations: 0 / 0.5635 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.9415, allocations: 2.022 MB / 0.5655 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004658/0.942, allocations: 361.8 kB / 0.5658 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.9421, allocations: 19.95 kB / 0.5658 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005969/0.9427, allocations: 63.8 kB / 0.5659 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.966e-05/0.9428, allocations: 53.16 kB / 0.5659 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.783e-05/0.9429, allocations: 35.97 kB / 0.566 GB, free: 127.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008695/0.9438, allocations: 0.8186 MB / 0.5668 GB, free: 126.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.9438, allocations: 0 / 0.5668 GB, free: 126.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003631/0.9474, allocations: 1.289 MB / 0.568 GB, free: 125.6 MB / 446.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.006853/0.9543, allocations: 3.812 MB / 0.5718 GB, free: 121.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.9567, allocations: 1.245 MB / 0.573 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.9567, allocations: 4 kB / 0.573 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.958, allocations: 0.8992 MB / 0.5739 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/0.9612, allocations: 0.6733 MB / 0.5745 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.9748, allocations: 17.93 MB / 0.592 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006357/0.9755, allocations: 1.348 MB / 0.5933 GB, free: 99.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001428/0.9769, allocations: 0.6406 MB / 0.594 GB, free: 98.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006242/0.9776, allocations: 0.6594 MB / 0.5946 GB, free: 98.04 MB / 446.1 MB Notification: Performance of SimCode: time 8.91e-07/0.9776, allocations: 0 / 0.5946 GB, free: 98.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1722/1.15, allocations: 71.25 MB / 0.6642 GB, free: 27.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/1.15, allocations: 258.5 kB / 0.6644 GB, free: 26.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.496/6.646, allocations: 0 / 0.6644 GB, free: 26.74 MB / 446.1 MB (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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat