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.Rotational3DEffects.GearConstraint.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.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.92/1.92, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003625, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.104, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4292/0.5333, allocations: 92.85 MB / 401.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/0.5337, allocations: 93.17 kB / 401.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4272/0.9609, allocations: 106.3 MB / 0.4959 GB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.831e-06/0.961, allocations: 4 kB / 0.4959 GB, free: 11.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004258/0.9614, allocations: 104 kB / 0.496 GB, free: 11.88 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: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.02537/0.9868, allocations: 5.728 MB / 0.5016 GB, free: 6.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.9869, allocations: 11.97 kB / 0.5016 GB, free: 6.059 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005962/0.9928, allocations: 0.931 MB / 0.5025 GB, free: 5.113 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05388/1.047, allocations: 6.931 MB / 0.5093 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02597/1.073, allocations: 6.835 MB / 0.5159 GB, free: 7.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005411/1.073, allocations: 406.7 kB / 0.5163 GB, free: 6.871 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00285/1.076, allocations: 0.5465 MB / 0.5169 GB, free: 6.324 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.338/1.414, allocations: 12.77 MB / 0.5293 GB, free: 73.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005302/1.415, allocations: 72.47 kB / 0.5294 GB, free: 73.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002739/1.418, allocations: 256.1 kB / 0.5297 GB, free: 73.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002857/1.421, allocations: 1.131 MB / 0.5308 GB, free: 73.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03352/1.454, allocations: 10.48 MB / 0.541 GB, free: 73.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08261/1.537, allocations: 57.08 MB / 0.5967 GB, free: 38.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01808/1.555, allocations: 4.42 MB / 0.6011 GB, free: 37.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02398/1.579, allocations: 9.968 MB / 0.6108 GB, free: 32.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.703e-05/1.579, allocations: 62.3 kB / 0.6108 GB, free: 32.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 6.142e-06/1.579, allocations: 0 / 0.6108 GB, free: 32.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.08305/1.662, allocations: 18.95 MB / 0.6294 GB, free: 24.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.899e-05/1.662, allocations: 199.1 kB / 0.6295 GB, free: 24.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009864/1.672, allocations: 4.226 MB / 0.6337 GB, free: 23.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000556/1.673, allocations: 53.58 kB / 0.6337 GB, free: 23.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003868/1.677, allocations: 3.625 MB / 0.6373 GB, free: 20.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001588/1.678, allocations: 0.8345 MB / 0.6381 GB, free: 19.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/1.679, allocations: 130.1 kB / 0.6382 GB, free: 19.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007225/1.68, allocations: 0.5921 MB / 0.6388 GB, free: 19.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006412/1.687, allocations: 2.259 MB / 0.641 GB, free: 18.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009072/1.696, allocations: 6.187 MB / 0.647 GB, free: 12.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008843/1.705, allocations: 3.674 MB / 0.6506 GB, free: 9.879 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001498/1.705, allocations: 44 kB / 0.6507 GB, free: 9.836 MB / 410.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02517/1.73, allocations: 8.771 MB / 0.6592 GB, free: 2.164 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/1.73, allocations: 64 kB / 0.6593 GB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000202/1.73, allocations: 140 kB / 0.6594 GB, free: 1.965 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004468/1.735, allocations: 0.9314 MB / 0.6603 GB, free: 1.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009908/1.745, allocations: 1.544 MB / 0.6618 GB, free: 0 / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01583/1.761, allocations: 7.62 MB / 0.6693 GB, free: 8.957 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00766/1.768, allocations: 354.7 kB / 0.6696 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/1.77, allocations: 405 kB / 0.67 GB, free: 8.258 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (795): * Single equations (assignments): 790 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008329/1.779, allocations: 2.556 MB / 0.6725 GB, free: 6.008 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.78, allocations: 426.5 kB / 0.6729 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/1.793, allocations: 3.606 MB / 0.6764 GB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.121e-05/1.793, allocations: 28 kB / 0.6764 GB, free: 2.578 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.673e-05/1.793, allocations: 8 kB / 0.6765 GB, free: 2.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.514e-05/1.793, allocations: 14.86 kB / 0.6765 GB, free: 2.566 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3209/2.114, allocations: 9.386 MB / 0.6856 GB, free: 84.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-05/2.114, allocations: 2.188 kB / 0.6856 GB, free: 84.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003415/2.118, allocations: 345.9 kB / 0.686 GB, free: 84.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003898/2.122, allocations: 0.6917 MB / 0.6866 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004572/2.122, allocations: 35.94 kB / 0.6867 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/2.136, allocations: 6.74 MB / 0.6933 GB, free: 82.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/2.136, allocations: 1.25 kB / 0.6933 GB, free: 82.15 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01658/2.153, allocations: 6.372 MB / 0.6995 GB, free: 81.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00282/2.156, allocations: 0.7365 MB / 0.7002 GB, free: 81.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00133/2.157, allocations: 34.62 kB / 0.7002 GB, free: 81.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003533/2.161, allocations: 117.5 kB / 0.7003 GB, free: 81.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007892/2.162, allocations: 135.5 kB / 0.7005 GB, free: 81.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/2.162, allocations: 50.66 kB / 0.7005 GB, free: 81.42 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008274/2.17, allocations: 2.996 MB / 0.7035 GB, free: 81.24 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.52e-07/2.17, allocations: 0 / 0.7035 GB, free: 81.24 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008939/2.179, allocations: 1.185 MB / 0.7046 GB, free: 81.24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * 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 (169): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01751/2.197, allocations: 7.238 MB / 0.7117 GB, free: 79.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01476/2.211, allocations: 5.758 MB / 0.7173 GB, free: 79.63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/2.212, allocations: 0 / 0.7173 GB, free: 79.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00558/2.217, allocations: 1.999 MB / 0.7193 GB, free: 79.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004655/2.222, allocations: 0.5304 MB / 0.7198 GB, free: 79.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1401/2.362, allocations: 138.5 MB / 0.8551 GB, free: 21.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01017/2.372, allocations: 4.097 MB / 0.8591 GB, free: 19.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006306/2.379, allocations: 2.508 MB / 0.8615 GB, free: 17.96 MB / 490.7 MB Notification: Performance of SimCode: time 9.12e-07/2.379, allocations: 3.969 kB / 0.8615 GB, free: 17.96 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.394/7.773, allocations: 144.6 MB / 1.003 GB, free: 90.26 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat