Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_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.001117/0.001117, allocations: 98.8 kB / 16.94 MB, free: 5.98 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.001265/0.001265, allocations: 178.5 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004374/0.0004375, allocations: 12 kB / 280.8 MB, free: 3.664 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0922/0.09264, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2539/0.3466, allocations: 53.04 MB / 381.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02658/0.3732, allocations: 19.26 MB / 400.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/0.3758, allocations: 35.91 kB / 400.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002562/0.3784, allocations: 0.5737 MB / 401.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0189/0.3973, allocations: 4.867 MB / 406.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009316/0.4067, allocations: 2.738 MB / 408.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01855/0.4253, allocations: 12.69 MB / 421.6 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.4266, allocations: 0.5988 MB / 422.2 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002172/0.4287, allocations: 0.9209 MB / 423.2 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008262/0.4296, allocations: 0.6605 MB / 423.8 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.526e-05/0.4297, allocations: 48 kB / 423.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01564/0.4453, allocations: 7.437 MB / 431.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000434/0.4458, allocations: 224.2 kB / 431.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007664/0.4466, allocations: 297 kB / 431.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00854/0.4551, allocations: 3.898 MB / 435.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.4552, allocations: 0 / 435.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4552, allocations: 0 / 435.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.266e-05/0.4552, allocations: 0 / 435.7 MB, free: 11.8 MB / 334.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.005973/0.4612, allocations: 2.192 MB / 437.9 MB, free: 9.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.4612, allocations: 8.031 kB / 437.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002138/0.4615, allocations: 156.4 kB / 438.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004473/0.4659, allocations: 0.6566 MB / 438.7 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001824/0.4678, allocations: 0.9721 MB / 439.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.4679, allocations: 74.02 kB / 439.8 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.468, allocations: 97.72 kB / 439.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003288/0.4713, allocations: 1.667 MB / 441.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.4713, allocations: 7.938 kB / 441.5 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.4714, allocations: 44 kB / 441.6 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.802e-05/0.4715, allocations: 28 kB / 441.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003095/0.4746, allocations: 1.453 MB / 443 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009181/0.4838, allocations: 8.439 MB / 451.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002869/0.4867, allocations: 1.697 MB / 453.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1242/0.6109, allocations: 63.97 MB / 0.505 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.611, allocations: 43.12 kB / 0.5051 GB, free: 1.922 MB / 414.1 MB Notification: Performance of pre-optimization done (n=77): time 2.805e-06/0.611, allocations: 0 / 0.5051 GB, free: 1.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=77): time 0.005555/0.6165, allocations: 1.975 MB / 0.507 GB, free: 15.92 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.995e-05/0.6167, allocations: 192.5 kB / 0.5072 GB, free: 15.68 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.6179, allocations: 0.9566 MB / 0.5081 GB, free: 14.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.53e-05/0.618, allocations: 41.7 kB / 0.5082 GB, free: 14.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004111/0.6184, allocations: 0.5665 MB / 0.5087 GB, free: 14.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.6186, allocations: 269.7 kB / 0.509 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.6187, allocations: 27.94 kB / 0.509 GB, free: 13.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.6189, allocations: 349.9 kB / 0.5093 GB, free: 13.46 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005261/0.6194, allocations: 298.5 kB / 0.5096 GB, free: 13.17 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008768/0.6203, allocations: 0.7376 MB / 0.5103 GB, free: 12.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.621, allocations: 414.7 kB / 0.5107 GB, free: 11.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.621, allocations: 4 kB / 0.5107 GB, free: 11.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0021/0.6231, allocations: 1.234 MB / 0.5119 GB, free: 10.58 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.6231, allocations: 12 kB / 0.512 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/0.6232, allocations: 16 kB / 0.512 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003219/0.6264, allocations: 0.5277 MB / 0.5125 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.6275, allocations: 279.6 kB / 0.5127 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.6286, allocations: 1.383 MB / 0.5141 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.6296, allocations: 158.5 kB / 0.5142 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.423e-05/0.6298, allocations: 71.98 kB / 0.5143 GB, free: 8.094 MB / 430.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.0005714/0.6303, allocations: 288.1 kB / 0.5146 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.6305, allocations: 126.5 kB / 0.5147 GB, free: 7.676 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004972/0.6355, allocations: 4.506 MB / 0.5191 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.046e-05/0.6356, allocations: 47.92 kB / 0.5192 GB, free: 3.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.6356, allocations: 4 kB / 0.5192 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.6356, allocations: 3.984 kB / 0.5192 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005943/0.6416, allocations: 4.948 MB / 0.524 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.6416, allocations: 0 / 0.524 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008416/0.6424, allocations: 167.7 kB / 0.5242 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003914/0.6464, allocations: 1.59 MB / 0.5257 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/0.6465, allocations: 31.94 kB / 0.5257 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.648, allocations: 1.747 MB / 0.5274 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.648, allocations: 0 / 0.5274 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.6506, allocations: 2.021 MB / 0.5294 GB, free: 8.352 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005685/0.6512, allocations: 365.8 kB / 0.5298 GB, free: 7.973 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.6513, allocations: 16 kB / 0.5298 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005849/0.6519, allocations: 55.86 kB / 0.5298 GB, free: 7.902 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.395e-05/0.652, allocations: 56.48 kB / 0.5299 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.246e-05/0.6521, allocations: 31.98 kB / 0.5299 GB, free: 7.816 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001067/0.6532, allocations: 0.8224 MB / 0.5307 GB, free: 6.992 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6532, allocations: 0 / 0.5307 GB, free: 6.992 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003866/0.657, allocations: 1.28 MB / 0.532 GB, free: 5.711 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.008787/0.6658, allocations: 3.797 MB / 0.5357 GB, free: 1.945 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003336/0.6692, allocations: 1.248 MB / 0.5369 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/0.6693, allocations: 1.5 kB / 0.5369 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2346/0.9039, allocations: 0.9108 MB / 0.5378 GB, free: 126.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00372/0.9077, allocations: 0.6756 MB / 0.5385 GB, free: 126.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.9221, allocations: 17.9 MB / 0.5559 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008221/0.9229, allocations: 1.358 MB / 0.5573 GB, free: 113.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001794/0.9248, allocations: 0.6326 MB / 0.5579 GB, free: 113.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008149/0.9256, allocations: 0.6568 MB / 0.5585 GB, free: 113.4 MB / 446.1 MB Notification: Performance of SimCode: time 9.81e-07/0.9256, allocations: 0 / 0.5585 GB, free: 113.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0987/1.024, allocations: 71.17 MB / 0.628 GB, free: 56.98 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001503/1.024, allocations: 260.4 kB / 0.6283 GB, free: 56.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.91/5.934, allocations: 0 / 0.6283 GB, free: 56.62 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat