Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.InitializationConversion.Bodies.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01764/0.01764, allocations: 106.9 kB / 15.06 MB, free: 5.551 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.0026/0.002601, allocations: 177.4 kB / 15.95 MB, free: 5.516 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.246/2.246, allocations: 194.6 MB / 211.3 MB, free: 11.05 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.3303/0.3303, allocations: 40.04 MB / 296.5 MB, free: 6.297 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006968/0.0006969, allocations: 8 kB / 361.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1446, allocations: 54.87 MB / 416 MB, free: 2.586 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.InitializationConversion.Bodies): time 0.3887/0.5333, allocations: 41.64 MB / 457.6 MB, free: 30.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0279/0.5612, allocations: 10.25 MB / 467.9 MB, free: 29.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01208/0.5734, allocations: 210.5 kB / 468.1 MB, free: 29.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008981/0.5824, allocations: 2.088 MB / 470.2 MB, free: 29.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02583/0.6084, allocations: 6.224 MB / 476.4 MB, free: 28.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004405/0.6128, allocations: 0.7837 MB / 477.2 MB, free: 28.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.05311/0.666, allocations: 18.13 MB / 495.3 MB, free: 26.88 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00915/0.6752, allocations: 3.528 MB / 498.9 MB, free: 26.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004645/0.6799, allocations: 1.367 MB / 0.4885 GB, free: 26.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005137/0.6851, allocations: 1.89 MB / 0.4903 GB, free: 26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001852/0.687, allocations: 161.3 kB / 0.4905 GB, free: 26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005273/0.6923, allocations: 1.248 MB / 0.4917 GB, free: 25.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004365/0.6968, allocations: 2.02 MB / 0.4937 GB, free: 24.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002702/0.6995, allocations: 0.9516 MB / 0.4946 GB, free: 24 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.7104, allocations: 6.48 MB / 0.5009 GB, free: 19.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.7104, allocations: 4 kB / 0.501 GB, free: 19.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.616e-06/0.7105, allocations: 0 / 0.501 GB, free: 19.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003537/0.7108, allocations: 0 / 0.501 GB, free: 19.8 MB / 378.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.02487/0.7357, allocations: 5.441 MB / 0.5063 GB, free: 15.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.7358, allocations: 12.03 kB / 0.5063 GB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002974/0.7388, allocations: 0.7073 MB / 0.507 GB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2782/1.017, allocations: 11.72 MB / 0.5184 GB, free: 2.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01878/1.036, allocations: 5.906 MB / 0.5242 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002981/1.036, allocations: 225.8 kB / 0.5244 GB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003826/1.04, allocations: 0.6491 MB / 0.525 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02883/1.069, allocations: 10.59 MB / 0.5354 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002603/1.069, allocations: 67.42 kB / 0.5354 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00079/1.07, allocations: 147.9 kB / 0.5356 GB, free: 460 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005309/1.075, allocations: 1.931 MB / 0.5375 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03186/1.107, allocations: 9.67 MB / 0.5469 GB, free: 4.836 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.1082/1.216, allocations: 44.27 MB / 0.5901 GB, free: 7.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0166/1.232, allocations: 4.054 MB / 0.5941 GB, free: 3.09 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003268/1.233, allocations: 28.36 kB / 0.5941 GB, free: 3.062 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.113e-05/1.233, allocations: 64.25 kB / 0.5942 GB, free: 2.992 MB / 458.7 MB Notification: Performance of pre-optimization done (n=190): time 6.833e-06/1.233, allocations: 0 / 0.5942 GB, free: 2.992 MB / 458.7 MB Notification: Performance of matching and sorting (n=218): time 0.1239/1.357, allocations: 23.4 MB / 0.617 GB, free: 10.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009372/1.366, allocations: 6.237 MB / 0.6231 GB, free: 4.082 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3934/1.759, allocations: 6.08 MB / 0.6291 GB, free: 148.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009059/1.76, allocations: 57.34 kB / 0.6291 GB, free: 148.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003769/1.764, allocations: 3.459 MB / 0.6325 GB, free: 147.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/1.766, allocations: 0.9147 MB / 0.6334 GB, free: 147 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001482/1.768, allocations: 141 kB / 0.6335 GB, free: 147 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007404/1.769, allocations: 0.6056 MB / 0.6341 GB, free: 146.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00906/1.778, allocations: 3.286 MB / 0.6373 GB, free: 146.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01188/1.79, allocations: 7.525 MB / 0.6447 GB, free: 139.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/1.801, allocations: 4.812 MB / 0.6494 GB, free: 137.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002106/1.801, allocations: 43.31 kB / 0.6494 GB, free: 137.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.09493/1.896, allocations: 17.07 MB / 0.6661 GB, free: 133.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001646/1.896, allocations: 69.84 kB / 0.6661 GB, free: 133.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07585/1.972, allocations: 10.37 MB / 0.6763 GB, free: 131.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07836/2.051, allocations: 7.98 MB / 0.6841 GB, free: 129.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01027/2.061, allocations: 1.705 MB / 0.6857 GB, free: 128.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0503/2.111, allocations: 21.36 MB / 0.7066 GB, free: 111.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01252/2.124, allocations: 0.7672 MB / 0.7073 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001977/2.126, allocations: 454 kB / 0.7078 GB, free: 110.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 683 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (863): * Single equations (assignments): 838 * 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.00699/2.133, allocations: 2.336 MB / 0.7101 GB, free: 107.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001545/2.135, allocations: 454.1 kB / 0.7105 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/2.137, allocations: 0.618 MB / 0.7111 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02757/2.164, allocations: 6.225 MB / 0.7172 GB, free: 100.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-05/2.165, allocations: 10.06 kB / 0.7172 GB, free: 100.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.775e-05/2.165, allocations: 11.97 kB / 0.7172 GB, free: 100.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03714/2.202, allocations: 10.68 MB / 0.7276 GB, free: 89.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.322e-05/2.202, allocations: 4 kB / 0.7276 GB, free: 89.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007089/2.209, allocations: 499.2 kB / 0.7281 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03674/2.246, allocations: 3.675 MB / 0.7317 GB, free: 85.43 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/2.247, allocations: 90.53 kB / 0.7318 GB, free: 85.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03336/2.28, allocations: 13.91 MB / 0.7454 GB, free: 70.64 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004681/2.285, allocations: 5.912 MB / 0.7511 GB, free: 64.17 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0358/2.321, allocations: 11.01 MB / 0.7619 GB, free: 52.99 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/2.323, allocations: 0.5733 MB / 0.7624 GB, free: 52.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001721/2.325, allocations: 71.97 kB / 0.7625 GB, free: 52.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006357/2.331, allocations: 346.8 kB / 0.7628 GB, free: 51.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001228/2.333, allocations: 191.3 kB / 0.763 GB, free: 51.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000324/2.333, allocations: 71.94 kB / 0.7631 GB, free: 51.73 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00953/2.342, allocations: 4.013 MB / 0.767 GB, free: 47.73 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.693e-06/2.342, allocations: 0 / 0.767 GB, free: 47.73 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01843/2.361, allocations: 1.749 MB / 0.7687 GB, free: 45.99 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 141 * 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 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,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.04975/2.411, allocations: 12.43 MB / 0.7809 GB, free: 33.42 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02572/2.437, allocations: 9.573 MB / 0.7902 GB, free: 23.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/2.437, allocations: 0 / 0.7902 GB, free: 23.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01434/2.451, allocations: 4.752 MB / 0.7948 GB, free: 18.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006425/2.457, allocations: 0.6436 MB / 0.7955 GB, free: 17.98 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5782/3.036, allocations: 163.1 MB / 0.9547 GB, free: 31.05 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009607/3.045, allocations: 3.78 MB / 0.9584 GB, free: 29.7 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01225/3.058, allocations: 2.291 MB / 0.9606 GB, free: 29.52 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005954/3.064, allocations: 2.301 MB / 0.9629 GB, free: 27.69 MB / 0.4949 GB Notification: Performance of SimCode: time 1.813e-06/3.064, allocations: 1.219 kB / 0.9629 GB, free: 27.69 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7086/3.772, allocations: 126.6 MB / 1.087 GB, free: 110.5 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002863/3.773, allocations: 224.1 kB / 1.087 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.892/10.66, allocations: 0 / 1.087 GB, free: 110.2 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat does not exist to compare? outputFormat=mat