Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.664/1.664, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003507, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09563/0.09601, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3767/0.4728, allocations: 84.83 MB / 356.9 MB, free: 5.172 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000338/0.4732, allocations: 89.39 kB / 357 MB, free: 5.125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7163/1.19, allocations: 107.7 MB / 464.7 MB, free: 72.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.19, allocations: 4 kB / 464.7 MB, free: 72.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003976/1.19, allocations: 105.8 kB / 464.8 MB, free: 72.1 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: 1913 * Number of variables: 1913 Notification: Performance of Generate backend data structure: time 0.07331/1.263, allocations: 6.607 MB / 471.4 MB, free: 69.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/1.263, allocations: 10.03 kB / 471.4 MB, free: 69.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004869/1.268, allocations: 0.9826 MB / 472.4 MB, free: 69.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02772/1.296, allocations: 3.367 MB / 475.8 MB, free: 69.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02728/1.323, allocations: 7.503 MB / 483.3 MB, free: 68.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005982/1.324, allocations: 407 kB / 483.7 MB, free: 68.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003436/1.327, allocations: 0.5408 MB / 484.2 MB, free: 68.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.059/1.386, allocations: 16.58 MB / 0.4891 GB, free: 58.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003576/1.387, allocations: 75.28 kB / 0.4892 GB, free: 58.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002737/1.39, allocations: 264 kB / 0.4894 GB, free: 58.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004246/1.394, allocations: 1.487 MB / 0.4909 GB, free: 56.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05373/1.448, allocations: 14.48 MB / 0.505 GB, free: 42.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4794/1.927, allocations: 63.61 MB / 0.5671 GB, free: 40.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04405/1.971, allocations: 6.218 MB / 0.5732 GB, free: 39.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03253/2.004, allocations: 13.22 MB / 0.5861 GB, free: 36.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.427e-05/2.004, allocations: 59.84 kB / 0.5862 GB, free: 36.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=246): time 6.342e-06/2.004, allocations: 0 / 0.5862 GB, free: 36.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=278): time 0.1306/2.135, allocations: 26.88 MB / 0.6124 GB, free: 32.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003731/2.138, allocations: 4.607 MB / 0.6169 GB, free: 27.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01124/2.15, allocations: 4.329 MB / 0.6211 GB, free: 26.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008621/2.15, allocations: 60.86 kB / 0.6212 GB, free: 26.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003475/2.154, allocations: 3.731 MB / 0.6248 GB, free: 23.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002282/2.156, allocations: 1.088 MB / 0.6259 GB, free: 22.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/2.158, allocations: 158.2 kB / 0.626 GB, free: 22.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0006143/2.158, allocations: 0.6559 MB / 0.6267 GB, free: 22.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01026/2.168, allocations: 3.415 MB / 0.63 GB, free: 21.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/2.182, allocations: 7.949 MB / 0.6378 GB, free: 13.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01319/2.195, allocations: 5.029 MB / 0.6427 GB, free: 12.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001718/2.195, allocations: 44 kB / 0.6427 GB, free: 12.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=1053) (initialization): time 0.04216/2.237, allocations: 13.02 MB / 0.6554 GB, free: 1.926 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/2.238, allocations: 72 kB / 0.6555 GB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02366/2.261, allocations: 6.289 MB / 0.6617 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01412/2.275, allocations: 2.619 MB / 0.6642 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01328/2.289, allocations: 1.964 MB / 0.6661 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01785/2.307, allocations: 11.61 MB / 0.6775 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01285/2.319, allocations: 0.8097 MB / 0.6783 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002315/2.322, allocations: 490.8 kB / 0.6787 GB, free: 11.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 729 * 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 (996): * Single equations (assignments): 975 * 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 {1,1,1} * 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.008922/2.331, allocations: 2.51 MB / 0.6812 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00159/2.332, allocations: 450.2 kB / 0.6816 GB, free: 8.453 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02929/2.362, allocations: 7.025 MB / 0.6885 GB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02599/2.388, allocations: 6.289 MB / 0.6946 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.615e-05/2.388, allocations: 8 kB / 0.6946 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.165e-05/2.388, allocations: 15.95 kB / 0.6946 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05699/2.445, allocations: 15.73 MB / 0.71 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.747e-05/2.445, allocations: 4 kB / 0.71 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00541/2.45, allocations: 0.5187 MB / 0.7105 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01664/2.467, allocations: 2.889 MB / 0.7133 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009708/2.468, allocations: 87.94 kB / 0.7134 GB, free: 7.617 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2929/2.761, allocations: 13.97 MB / 0.727 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003604/2.765, allocations: 4.457 MB / 0.7314 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03553/2.8, allocations: 11.54 MB / 0.7427 GB, free: 120.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/2.802, allocations: 0.5115 MB / 0.7432 GB, free: 120.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002052/2.804, allocations: 70.19 kB / 0.7432 GB, free: 120.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006549/2.811, allocations: 355.1 kB / 0.7436 GB, free: 120.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001373/2.812, allocations: 223.8 kB / 0.7438 GB, free: 120.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004791/2.813, allocations: 92.05 kB / 0.7439 GB, free: 120.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009214/2.822, allocations: 3.017 MB / 0.7468 GB, free: 120.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.042e-06/2.822, allocations: 0 / 0.7468 GB, free: 120.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0115/2.833, allocations: 1.581 MB / 0.7484 GB, free: 120.4 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.0348/2.868, allocations: 13.58 MB / 0.7616 GB, free: 116.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02907/2.897, allocations: 9.556 MB / 0.771 GB, free: 113.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/2.897, allocations: 0 / 0.771 GB, free: 113.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01682/2.914, allocations: 4.951 MB / 0.7758 GB, free: 111.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005257/2.92, allocations: 0.5264 MB / 0.7763 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4273/3.347, allocations: 162.6 MB / 0.9351 GB, free: 93.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008794/3.356, allocations: 4.072 MB / 0.9391 GB, free: 92.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006376/3.362, allocations: 2.593 MB / 0.9416 GB, free: 92.72 MB / 426.7 MB Notification: Performance of SimCode: time 1.673e-06/3.362, allocations: 0 / 0.9416 GB, free: 92.72 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.392/9.754, allocations: 355.8 MB / 1.289 GB, free: 47.18 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat