Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002227/0.002232, allocations: 186.3 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.4 MB / 222.5 MB, free: 13.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001687/0.001687, allocations: 94.86 kB / 270.9 MB, free: 13.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004003/0.0004004, allocations: 12 kB / 327.1 MB, free: 14.94 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1038, allocations: 47.57 MB / 374.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3712/0.475, allocations: 53.05 MB / 427.7 MB, free: 5.562 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03923/0.5143, allocations: 19.27 MB / 446.9 MB, free: 4.258 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002089/0.5164, allocations: 35.75 kB / 447 MB, free: 4.223 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003108/0.5196, allocations: 0.5754 MB / 447.6 MB, free: 3.645 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02217/0.5418, allocations: 4.877 MB / 452.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01345/0.5553, allocations: 2.735 MB / 455.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03745/0.5928, allocations: 12.69 MB / 467.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.5944, allocations: 0.596 MB / 468.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.5975, allocations: 0.9266 MB / 469.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.5992, allocations: 0.6497 MB / 470 MB, free: 13.13 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002696/0.5995, allocations: 52 kB / 470.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02221/0.6217, allocations: 7.433 MB / 477.5 MB, free: 5.637 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006034/0.6224, allocations: 231 kB / 477.7 MB, free: 5.41 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006684/0.6231, allocations: 293 kB / 478 MB, free: 5.117 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.634, allocations: 3.894 MB / 481.9 MB, free: 1.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.6341, allocations: 0 / 481.9 MB, free: 1.215 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.277e-06/0.6341, allocations: 4 kB / 481.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.751e-05/0.6341, allocations: 0 / 481.9 MB, free: 1.211 MB / 346.7 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.008948/0.6431, allocations: 2.194 MB / 484.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.788e-05/0.6432, allocations: 8.031 kB / 484.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000431/0.6436, allocations: 156.4 kB / 484.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006983/0.6506, allocations: 0.6617 MB / 484.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003186/0.6539, allocations: 0.961 MB / 485.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-05/0.654, allocations: 74.02 kB / 486 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002617/0.6543, allocations: 104 kB / 486.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005671/0.66, allocations: 1.659 MB / 487.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.226e-05/0.6601, allocations: 3.938 kB / 487.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001947/0.6603, allocations: 48 kB / 487.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/0.6603, allocations: 39.94 kB / 487.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005543/0.6659, allocations: 1.451 MB / 489.3 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01631/0.6822, allocations: 8.424 MB / 497.7 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004789/0.6871, allocations: 1.697 MB / 499.4 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4953/1.182, allocations: 63.96 MB / 0.5501 GB, free: 150.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/1.182, allocations: 46.23 kB / 0.5502 GB, free: 150.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 3.346e-06/1.183, allocations: 0 / 0.5502 GB, free: 150.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.009173/1.192, allocations: 1.989 MB / 0.5521 GB, free: 149.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/1.192, allocations: 190 kB / 0.5523 GB, free: 149.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001897/1.194, allocations: 0.9522 MB / 0.5532 GB, free: 149.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001735/1.194, allocations: 41.02 kB / 0.5533 GB, free: 149.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004426/1.194, allocations: 0.5644 MB / 0.5538 GB, free: 149 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003333/1.195, allocations: 282.4 kB / 0.5541 GB, free: 148.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.91e-05/1.195, allocations: 19.59 kB / 0.5541 GB, free: 148.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/1.195, allocations: 355.3 kB / 0.5545 GB, free: 148.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009516/1.196, allocations: 293.5 kB / 0.5547 GB, free: 148.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/1.197, allocations: 0.7425 MB / 0.5555 GB, free: 147.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/1.198, allocations: 408.4 kB / 0.5559 GB, free: 147.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/1.198, allocations: 3.5 kB / 0.5559 GB, free: 147.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003478/1.202, allocations: 1.164 MB / 0.557 GB, free: 147 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/1.202, allocations: 16.59 kB / 0.557 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/1.202, allocations: 13.81 kB / 0.557 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005996/1.208, allocations: 0.5311 MB / 0.5575 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/1.21, allocations: 277.7 kB / 0.5578 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/1.212, allocations: 1.372 MB / 0.5592 GB, free: 145.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/1.213, allocations: 162.4 kB / 0.5593 GB, free: 145.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001963/1.214, allocations: 67.41 kB / 0.5594 GB, free: 145.5 MB / 426.7 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.0007157/1.214, allocations: 293.9 kB / 0.5597 GB, free: 145.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003498/1.215, allocations: 132.8 kB / 0.5598 GB, free: 145.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007781/1.223, allocations: 4.502 MB / 0.5642 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.686e-05/1.223, allocations: 46.02 kB / 0.5642 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.501e-05/1.223, allocations: 5.312 kB / 0.5642 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/1.223, allocations: 7.656 kB / 0.5642 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008107/1.231, allocations: 4.938 MB / 0.5691 GB, free: 140.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/1.231, allocations: 0 / 0.5691 GB, free: 140.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/1.232, allocations: 169.2 kB / 0.5692 GB, free: 140.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006455/1.239, allocations: 1.592 MB / 0.5708 GB, free: 140 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/1.239, allocations: 27.84 kB / 0.5708 GB, free: 139.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/1.241, allocations: 1.749 MB / 0.5725 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.241, allocations: 3.938 kB / 0.5725 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003462/1.244, allocations: 2.022 MB / 0.5745 GB, free: 137.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007198/1.245, allocations: 362.4 kB / 0.5748 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/1.245, allocations: 24.55 kB / 0.5749 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/1.247, allocations: 57.69 kB / 0.5749 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/1.247, allocations: 57.11 kB / 0.575 GB, free: 136.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-05/1.247, allocations: 30.17 kB / 0.575 GB, free: 136.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001453/1.248, allocations: 0.8252 MB / 0.5758 GB, free: 136.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.248, allocations: 0 / 0.5758 GB, free: 136.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004578/1.253, allocations: 1.278 MB / 0.577 GB, free: 135.2 MB / 426.7 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.01085/1.264, allocations: 3.795 MB / 0.5807 GB, free: 131.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004152/1.268, allocations: 1.245 MB / 0.582 GB, free: 130.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/1.268, allocations: 4 kB / 0.582 GB, free: 130.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002787/1.271, allocations: 0.9099 MB / 0.5829 GB, free: 129.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005771/1.277, allocations: 0.6896 MB / 0.5835 GB, free: 128.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02045/1.297, allocations: 17.95 MB / 0.6011 GB, free: 110.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008152/1.298, allocations: 1.351 MB / 0.6024 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001147/1.299, allocations: 0.6594 MB / 0.603 GB, free: 108.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/1.299, allocations: 0 / 0.603 GB, free: 108.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.41/5.709, allocations: 58.64 MB / 0.6603 GB, free: 49.45 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat