Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies.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.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.327/2.327, allocations: 235 MB / 248.1 MB, free: 14.61 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.278e-05/3.295e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4376/0.4377, allocations: 54.86 MB / 364.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1763/0.6141, allocations: 95.28 MB / 459.9 MB, free: 1.105 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/0.6144, allocations: 79.95 kB / 460 MB, free: 1.027 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.791/1.405, allocations: 102.4 MB / 0.5492 GB, free: 105.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.406, allocations: 1.344 kB / 0.5492 GB, free: 105.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004315/1.406, allocations: 87.25 kB / 0.5493 GB, free: 105.6 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1495 * Number of variables: 1495 Notification: Performance of Generate backend data structure: time 0.06667/1.473, allocations: 6.376 MB / 0.5555 GB, free: 103.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/1.473, allocations: 11.72 kB / 0.5555 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004769/1.478, allocations: 0.7887 MB / 0.5563 GB, free: 103.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1114/1.589, allocations: 7.363 MB / 0.5635 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1056/1.695, allocations: 18.23 MB / 0.5813 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004377/1.695, allocations: 320.3 kB / 0.5816 GB, free: 101.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002604/1.698, allocations: 436.5 kB / 0.582 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02926/1.727, allocations: 10.49 MB / 0.5923 GB, free: 95.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000425/1.728, allocations: 90.95 kB / 0.5924 GB, free: 95.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002134/1.73, allocations: 202.9 kB / 0.5926 GB, free: 95.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002663/1.732, allocations: 1.048 MB / 0.5936 GB, free: 95.46 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02558/1.758, allocations: 9.078 MB / 0.6024 GB, free: 87.51 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07869/1.837, allocations: 51.22 MB / 0.6525 GB, free: 34.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01357/1.85, allocations: 3.82 MB / 0.6562 GB, free: 30.94 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004167/1.855, allocations: 1.94 MB / 0.6581 GB, free: 28.97 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000254/1.855, allocations: 24.44 kB / 0.6581 GB, free: 28.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/1.855, allocations: 62.73 kB / 0.6582 GB, free: 28.88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=188): time 6.021e-06/1.855, allocations: 0 / 0.6582 GB, free: 28.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=216): time 0.07864/1.934, allocations: 19.24 MB / 0.677 GB, free: 9.305 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004664/1.938, allocations: 6.169 MB / 0.683 GB, free: 2.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01188/1.95, allocations: 4.451 MB / 0.6873 GB, free: 14.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007521/1.951, allocations: 61.38 kB / 0.6874 GB, free: 13.99 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004416/1.956, allocations: 3.337 MB / 0.6906 GB, free: 10.66 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002073/1.958, allocations: 0.912 MB / 0.6915 GB, free: 9.758 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/1.959, allocations: 140 kB / 0.6917 GB, free: 9.621 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007888/1.96, allocations: 0.6127 MB / 0.6923 GB, free: 9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008965/1.969, allocations: 3.017 MB / 0.6952 GB, free: 5.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01352/1.982, allocations: 7.316 MB / 0.7024 GB, free: 12.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/1.994, allocations: 4.594 MB / 0.7068 GB, free: 7.934 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001818/1.995, allocations: 44 kB / 0.7069 GB, free: 7.891 MB / 490.7 MB Notification: Performance of matching and sorting (n=946) (initialization): time 0.4206/2.415, allocations: 15.38 MB / 0.7219 GB, free: 113.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/2.416, allocations: 70.59 kB / 0.722 GB, free: 113.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0655/2.481, allocations: 8.92 MB / 0.7307 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0692/2.55, allocations: 6.726 MB / 0.7373 GB, free: 112.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01019/2.561, allocations: 1.687 MB / 0.7389 GB, free: 112.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03547/2.596, allocations: 15.7 MB / 0.7542 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01232/2.608, allocations: 0.786 MB / 0.755 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001845/2.61, allocations: 453.2 kB / 0.7554 GB, free: 105.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 694 * Number of states: 0 () * Number of discrete variables: 36 (body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],body1.frameTranslation.color[3],body1.frameTranslation.color[2],body1.frameTranslation.color[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 845 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002678/2.613, allocations: 0.6556 MB / 0.7561 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001373/2.614, allocations: 451.2 kB / 0.7565 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002404/2.617, allocations: 0.613 MB / 0.7571 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02727/2.644, allocations: 5.983 MB / 0.7629 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-05/2.644, allocations: 6.625 kB / 0.763 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.8e-05/2.644, allocations: 16 kB / 0.763 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03386/2.678, allocations: 10.42 MB / 0.7731 GB, free: 101.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.464e-05/2.678, allocations: 6.922 kB / 0.7732 GB, free: 101.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004345/2.683, allocations: 441.6 kB / 0.7736 GB, free: 101.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0236/2.706, allocations: 3.595 MB / 0.7771 GB, free: 100.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007462/2.707, allocations: 94.78 kB / 0.7772 GB, free: 100.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02037/2.728, allocations: 13.6 MB / 0.7905 GB, free: 91.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004271/2.732, allocations: 5.862 MB / 0.7962 GB, free: 85.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03479/2.767, allocations: 10.65 MB / 0.8066 GB, free: 80.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002013/2.769, allocations: 0.5237 MB / 0.8071 GB, free: 80.68 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001918/2.771, allocations: 77.09 kB / 0.8072 GB, free: 80.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006568/2.777, allocations: 344.6 kB / 0.8075 GB, free: 80.46 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001129/2.779, allocations: 176.1 kB / 0.8077 GB, free: 80.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003422/2.779, allocations: 73.38 kB / 0.8077 GB, free: 80.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008235/2.787, allocations: 3.149 MB / 0.8108 GB, free: 77.65 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.584e-06/2.787, allocations: 3.312 kB / 0.8108 GB, free: 77.65 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01029/2.797, allocations: 1.633 MB / 0.8124 GB, free: 76.03 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.body.frame_a.r_0[1],body3.body.frame_a.r_0[2],body3.body.frame_a.r_0[3],body3.body.w_a[1],body3.body.w_a[2],body3.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.body.frame_a.r_0[1],body2.body.frame_a.r_0[2],body2.body.frame_a.r_0[3],body2.body.w_a[1],body2.body.w_a[2],body2.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.body.frame_a.r_0[1],body1.body.frame_a.r_0[2],body1.body.frame_a.r_0[3],body1.body.w_a[1],body1.body.w_a[2],body1.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.03571/2.833, allocations: 11.97 MB / 0.8241 GB, free: 64.02 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0247/2.858, allocations: 9.16 MB / 0.833 GB, free: 54.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/2.858, allocations: 0 / 0.833 GB, free: 54.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01459/2.873, allocations: 4.644 MB / 0.8376 GB, free: 50.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006213/2.879, allocations: 0.6357 MB / 0.8382 GB, free: 49.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04214/2.921, allocations: 14.59 MB / 0.8524 GB, free: 35.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008507/2.93, allocations: 3.794 MB / 0.8561 GB, free: 31.39 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006007/2.936, allocations: 2.331 MB / 0.8584 GB, free: 29.06 MB / 490.7 MB Notification: Performance of SimCode: time 1.522e-06/2.936, allocations: 0 / 0.8584 GB, free: 29.06 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.955/9.89, allocations: 367.9 MB / 1.218 GB, free: 55.82 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat does not exist to compare? outputFormat=mat