Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.615/2.615, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004818/0.0004817, allocations: 23.98 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3666, allocations: 54.86 MB / 369.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2057/0.5723, allocations: 97.99 MB / 467.3 MB, free: 8.609 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.5727, allocations: 83.95 kB / 467.4 MB, free: 8.527 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6715/1.244, allocations: 90.57 MB / 0.5449 GB, free: 26.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.948e-06/1.244, allocations: 0 / 0.5449 GB, free: 26.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001847/1.245, allocations: 87.92 kB / 0.545 GB, free: 26.18 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.02275/1.267, allocations: 4.394 MB / 0.5493 GB, free: 21.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/1.267, allocations: 12.03 kB / 0.5493 GB, free: 21.7 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00423/1.272, allocations: 0.853 MB / 0.5501 GB, free: 20.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02673/1.298, allocations: 3.554 MB / 0.5536 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.316, allocations: 4.698 MB / 0.5582 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000457/1.317, allocations: 332.6 kB / 0.5585 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002963/1.32, allocations: 439.7 kB / 0.5589 GB, free: 11.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03248/1.352, allocations: 11.04 MB / 0.5697 GB, free: 252 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002847/1.352, allocations: 31.66 kB / 0.5697 GB, free: 220 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00263/1.355, allocations: 195.9 kB / 0.5699 GB, free: 24 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00313/1.358, allocations: 1.228 MB / 0.5711 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03339/1.392, allocations: 10.67 MB / 0.5815 GB, free: 4.105 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08646/1.478, allocations: 37.33 MB / 0.618 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01373/1.492, allocations: 4.393 MB / 0.6223 GB, free: 9.273 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001943/1.494, allocations: 1.319 MB / 0.6236 GB, free: 7.734 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.311e-05/1.494, allocations: 56.44 kB / 0.6236 GB, free: 7.672 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 7.214e-06/1.494, allocations: 4 kB / 0.6236 GB, free: 7.668 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.07239/1.566, allocations: 14.29 MB / 0.6376 GB, free: 9.211 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/1.567, allocations: 77.41 kB / 0.6377 GB, free: 9.121 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006189/1.573, allocations: 2.502 MB / 0.6401 GB, free: 6.609 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005805/1.573, allocations: 65.7 kB / 0.6402 GB, free: 6.539 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003111/1.577, allocations: 2.925 MB / 0.643 GB, free: 3.574 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001735/1.578, allocations: 0.9751 MB / 0.644 GB, free: 2.586 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007105/1.579, allocations: 108 kB / 0.6441 GB, free: 2.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005728/1.58, allocations: 0.5666 MB / 0.6446 GB, free: 1.902 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3284/1.908, allocations: 2.325 MB / 0.6469 GB, free: 119.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009358/1.918, allocations: 5.467 MB / 0.6522 GB, free: 115.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008421/1.926, allocations: 3.584 MB / 0.6557 GB, free: 115.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/1.926, allocations: 29.78 kB / 0.6558 GB, free: 115.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02524/1.951, allocations: 8.473 MB / 0.664 GB, free: 115.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/1.952, allocations: 49.25 kB / 0.6641 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000175/1.952, allocations: 110.7 kB / 0.6642 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006466/1.958, allocations: 1.051 MB / 0.6652 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00818/1.967, allocations: 1.331 MB / 0.6665 GB, free: 115.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/1.971, allocations: 2.5 MB / 0.669 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005846/1.977, allocations: 317.8 kB / 0.6693 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/1.978, allocations: 332.6 kB / 0.6696 GB, free: 113.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (719): * Single equations (assignments): 710 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006314/1.984, allocations: 2.262 MB / 0.6718 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006703/1.985, allocations: 284.1 kB / 0.6721 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01618/2.001, allocations: 5.059 MB / 0.677 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001344/2.001, allocations: 56.31 kB / 0.6771 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.941e-05/2.001, allocations: 3.719 kB / 0.6771 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.868e-05/2.002, allocations: 10.88 kB / 0.6771 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03431/2.036, allocations: 11.6 MB / 0.6884 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.292e-05/2.036, allocations: 7.094 kB / 0.6884 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00374/2.04, allocations: 428.6 kB / 0.6888 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006026/2.046, allocations: 0.9146 MB / 0.6897 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006149/2.046, allocations: 65.2 kB / 0.6898 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003579/2.05, allocations: 2.306 MB / 0.692 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/2.05, allocations: 11.72 kB / 0.692 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01985/2.07, allocations: 8.147 MB / 0.7 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008553/2.071, allocations: 332.5 kB / 0.7003 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001111/2.072, allocations: 48.89 kB / 0.7004 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002873/2.075, allocations: 141.9 kB / 0.7005 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007603/2.076, allocations: 162.9 kB / 0.7006 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002967/2.076, allocations: 77.89 kB / 0.7007 GB, free: 104.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004011/2.08, allocations: 1.713 MB / 0.7024 GB, free: 103.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.31e-07/2.08, allocations: 0 / 0.7024 GB, free: 103.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006864/2.087, allocations: 1.005 MB / 0.7034 GB, free: 103.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_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 (216): * Single equations (assignments): 207 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02073/2.108, allocations: 10.76 MB / 0.7139 GB, free: 94.19 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0159/2.124, allocations: 6.143 MB / 0.7199 GB, free: 88.83 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/2.124, allocations: 0 / 0.7199 GB, free: 88.83 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007538/2.131, allocations: 2.599 MB / 0.7224 GB, free: 86.56 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/2.135, allocations: 384.3 kB / 0.7228 GB, free: 86.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1006/2.235, allocations: 108.4 MB / 0.8287 GB, free: 10.08 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008205/2.244, allocations: 3.608 MB / 0.8322 GB, free: 7.309 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005844/2.25, allocations: 2.025 MB / 0.8342 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of SimCode: time 1.322e-06/2.25, allocations: 0 / 0.8342 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.906/7.156, allocations: 139.4 MB / 0.9703 GB, free: 56.66 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat