Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.045/2.045, allocations: 194.8 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005249/0.000525, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.09997, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4459/0.546, allocations: 90.47 MB / 399 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.5463, allocations: 90.95 kB / 399.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4468/0.9931, allocations: 107.9 MB / 0.4951 GB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.9932, allocations: 0 / 0.4951 GB, free: 12.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003729/0.9936, allocations: 108 kB / 0.4952 GB, free: 12.61 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1913 * Number of variables: 1913 Notification: Performance of Generate backend data structure: time 0.04794/1.042, allocations: 6.609 MB / 0.5017 GB, free: 5.922 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.042, allocations: 11.97 kB / 0.5017 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004866/1.047, allocations: 0.9835 MB / 0.5027 GB, free: 4.914 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0294/1.076, allocations: 3.401 MB / 0.506 GB, free: 1.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0297/1.106, allocations: 7.53 MB / 0.5133 GB, free: 9.906 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007094/1.106, allocations: 407.4 kB / 0.5137 GB, free: 9.508 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003402/1.11, allocations: 0.5387 MB / 0.5142 GB, free: 8.969 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3438/1.454, allocations: 16.58 MB / 0.5304 GB, free: 73.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004663/1.454, allocations: 76.88 kB / 0.5305 GB, free: 73.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002792/1.457, allocations: 258.6 kB / 0.5308 GB, free: 73.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004795/1.462, allocations: 1.485 MB / 0.5322 GB, free: 73.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05582/1.518, allocations: 14.48 MB / 0.5463 GB, free: 73.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1006/1.618, allocations: 63.55 MB / 0.6084 GB, free: 35.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02854/1.647, allocations: 6.219 MB / 0.6145 GB, free: 33.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03186/1.679, allocations: 13.22 MB / 0.6274 GB, free: 26.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.429e-05/1.679, allocations: 63.69 kB / 0.6274 GB, free: 26.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=246): time 5.841e-06/1.679, allocations: 3.031 kB / 0.6274 GB, free: 26.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.1508/1.83, allocations: 26.88 MB / 0.6537 GB, free: 12.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005153/1.835, allocations: 4.609 MB / 0.6582 GB, free: 7.633 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01205/1.847, allocations: 4.334 MB / 0.6624 GB, free: 4.062 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009408/1.848, allocations: 65.22 kB / 0.6625 GB, free: 3.996 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003339/1.851, allocations: 3.724 MB / 0.6661 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002302/1.854, allocations: 1.088 MB / 0.6672 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001583/1.855, allocations: 156 kB / 0.6673 GB, free: 15.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009281/1.856, allocations: 0.6503 MB / 0.668 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01166/1.868, allocations: 3.424 MB / 0.6713 GB, free: 12.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01724/1.885, allocations: 7.955 MB / 0.6791 GB, free: 2.621 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.315/2.2, allocations: 5.04 MB / 0.684 GB, free: 83.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001847/2.201, allocations: 46.19 kB / 0.6841 GB, free: 83.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=1052) (initialization): time 0.04646/2.247, allocations: 13.3 MB / 0.697 GB, free: 83.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001545/2.247, allocations: 71.28 kB / 0.6971 GB, free: 83.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02446/2.272, allocations: 6.538 MB / 0.7035 GB, free: 83.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01581/2.288, allocations: 2.864 MB / 0.7063 GB, free: 82.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01199/2.3, allocations: 1.919 MB / 0.7082 GB, free: 82.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01894/2.319, allocations: 12.83 MB / 0.7207 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01261/2.331, allocations: 0.814 MB / 0.7215 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002234/2.334, allocations: 490.1 kB / 0.722 GB, free: 74.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 48 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (986): * Single equations (assignments): 965 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008109/2.342, allocations: 2.503 MB / 0.7244 GB, free: 74.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001311/2.343, allocations: 448.5 kB / 0.7248 GB, free: 74.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02558/2.369, allocations: 7.022 MB / 0.7317 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02301/2.392, allocations: 6.293 MB / 0.7378 GB, free: 74.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-05/2.392, allocations: 6.719 kB / 0.7378 GB, free: 74.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.153e-05/2.392, allocations: 19.86 kB / 0.7379 GB, free: 74.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04949/2.441, allocations: 15.73 MB / 0.7532 GB, free: 68.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.443e-05/2.442, allocations: 11.5 kB / 0.7532 GB, free: 68.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005135/2.447, allocations: 0.5193 MB / 0.7537 GB, free: 68.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01523/2.462, allocations: 2.88 MB / 0.7565 GB, free: 68.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009843/2.463, allocations: 93.92 kB / 0.7566 GB, free: 68.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0218/2.485, allocations: 13.98 MB / 0.7703 GB, free: 59.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003404/2.488, allocations: 4.453 MB / 0.7746 GB, free: 54.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03195/2.52, allocations: 11.55 MB / 0.7859 GB, free: 46.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001661/2.522, allocations: 0.5051 MB / 0.7864 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001968/2.524, allocations: 78.55 kB / 0.7865 GB, free: 45.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006335/2.53, allocations: 355 kB / 0.7868 GB, free: 45.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001319/2.532, allocations: 214 kB / 0.787 GB, free: 45.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004103/2.532, allocations: 89.55 kB / 0.7871 GB, free: 45.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008459/2.541, allocations: 3.016 MB / 0.7901 GB, free: 42.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.72e-07/2.541, allocations: 3.312 kB / 0.7901 GB, free: 42.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01075/2.551, allocations: 1.598 MB / 0.7916 GB, free: 41.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 211 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03344/2.585, allocations: 13.58 MB / 0.8049 GB, free: 29.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02804/2.613, allocations: 9.942 MB / 0.8146 GB, free: 20.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/2.613, allocations: 0 / 0.8146 GB, free: 20.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01659/2.63, allocations: 4.954 MB / 0.8194 GB, free: 14.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004944/2.635, allocations: 0.5227 MB / 0.8199 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4743/3.109, allocations: 162.7 MB / 0.9789 GB, free: 31.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007175/3.116, allocations: 4.07 MB / 0.9828 GB, free: 30.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005614/3.122, allocations: 2.601 MB / 0.9854 GB, free: 30.6 MB / 0.4948 GB Notification: Performance of SimCode: time 2.535e-06/3.122, allocations: 3.969 kB / 0.9854 GB, free: 30.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.978/10.1, allocations: 356.5 MB / 1.334 GB, free: 99.11 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat