Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.749/1.749, allocations: 171.2 MB / 186.1 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005218/0.0005219, allocations: 8 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1201, allocations: 38.77 MB / 272.1 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4364/0.5566, allocations: 86.64 MB / 358.8 MB, free: 2.469 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.557, allocations: 98.17 kB / 358.9 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7166/1.274, allocations: 106 MB / 464.9 MB, free: 70.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.96e-06/1.274, allocations: 0 / 464.9 MB, free: 70.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005767/1.274, allocations: 106.8 kB / 465 MB, free: 70.34 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: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.03595/1.31, allocations: 5.737 MB / 470.7 MB, free: 67.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.79e-05/1.31, allocations: 6.844 kB / 470.8 MB, free: 67.98 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00622/1.317, allocations: 0.9348 MB / 471.7 MB, free: 67.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06639/1.383, allocations: 6.885 MB / 478.6 MB, free: 67.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02712/1.41, allocations: 6.831 MB / 485.4 MB, free: 66.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006144/1.411, allocations: 408.8 kB / 485.8 MB, free: 66.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003529/1.414, allocations: 0.5345 MB / 486.3 MB, free: 66.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03997/1.454, allocations: 12.41 MB / 498.7 MB, free: 59.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00053/1.455, allocations: 75.28 kB / 498.8 MB, free: 59.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003273/1.458, allocations: 257.3 kB / 499.1 MB, free: 59.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00262/1.461, allocations: 1.124 MB / 0.4885 GB, free: 58.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03159/1.493, allocations: 9.972 MB / 0.4982 GB, free: 48.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08991/1.583, allocations: 56.49 MB / 0.5534 GB, free: 6.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01876/1.601, allocations: 4.154 MB / 0.5574 GB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3121/1.914, allocations: 9.487 MB / 0.5667 GB, free: 78.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.713e-05/1.914, allocations: 51.66 kB / 0.5668 GB, free: 78.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 6.823e-06/1.914, allocations: 7.297 kB / 0.5668 GB, free: 78.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.09474/2.009, allocations: 19.33 MB / 0.5856 GB, free: 75.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/2.009, allocations: 199.7 kB / 0.5858 GB, free: 74.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01175/2.02, allocations: 4.242 MB / 0.59 GB, free: 74.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005257/2.021, allocations: 57.58 kB / 0.59 GB, free: 74.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0038/2.025, allocations: 3.763 MB / 0.5937 GB, free: 72.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001419/2.026, allocations: 0.8276 MB / 0.5945 GB, free: 71.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009973/2.027, allocations: 133.2 kB / 0.5946 GB, free: 71.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0008454/2.028, allocations: 0.5803 MB / 0.5952 GB, free: 71.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006639/2.035, allocations: 2.249 MB / 0.5974 GB, free: 70.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009249/2.044, allocations: 6.181 MB / 0.6034 GB, free: 64.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008936/2.053, allocations: 3.666 MB / 0.607 GB, free: 63.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001659/2.053, allocations: 38.47 kB / 0.6071 GB, free: 63.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02599/2.079, allocations: 8.93 MB / 0.6158 GB, free: 60.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001594/2.08, allocations: 65.81 kB / 0.6158 GB, free: 60.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002652/2.08, allocations: 138.4 kB / 0.616 GB, free: 60.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004556/2.085, allocations: 0.9416 MB / 0.6169 GB, free: 59.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009242/2.094, allocations: 1.509 MB / 0.6184 GB, free: 59.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0146/2.108, allocations: 7.596 MB / 0.6258 GB, free: 54.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007721/2.116, allocations: 363.5 kB / 0.6261 GB, free: 54.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001654/2.118, allocations: 401 kB / 0.6265 GB, free: 54.72 MB / 362.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.007951/2.126, allocations: 2.572 MB / 0.629 GB, free: 53.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/2.127, allocations: 430.4 kB / 0.6294 GB, free: 52.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01194/2.139, allocations: 3.59 MB / 0.6329 GB, free: 49.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.489e-05/2.139, allocations: 24.52 kB / 0.633 GB, free: 49.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.216e-05/2.139, allocations: 8 kB / 0.633 GB, free: 49.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.665e-05/2.139, allocations: 10.12 kB / 0.633 GB, free: 49.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02783/2.167, allocations: 9.259 MB / 0.642 GB, free: 42.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/2.167, allocations: 8.031 kB / 0.642 GB, free: 42.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003265/2.171, allocations: 340.9 kB / 0.6424 GB, free: 41.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003814/2.174, allocations: 0.6919 MB / 0.643 GB, free: 41.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004912/2.175, allocations: 36 kB / 0.6431 GB, free: 41.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/2.187, allocations: 6.748 MB / 0.6497 GB, free: 35.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/2.187, allocations: 4 kB / 0.6497 GB, free: 35.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01522/2.202, allocations: 6.326 MB / 0.6558 GB, free: 29.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00291/2.205, allocations: 0.7372 MB / 0.6566 GB, free: 28.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009727/2.206, allocations: 43.61 kB / 0.6566 GB, free: 28.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002817/2.209, allocations: 106.7 kB / 0.6567 GB, free: 28.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004838/2.21, allocations: 131.3 kB / 0.6568 GB, free: 28.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/2.21, allocations: 55.95 kB / 0.6569 GB, free: 28.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007951/2.218, allocations: 2.997 MB / 0.6598 GB, free: 26.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.663e-06/2.218, allocations: 0 / 0.6598 GB, free: 26.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008463/2.226, allocations: 1.189 MB / 0.661 GB, free: 24.96 MB / 362.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.01577/2.242, allocations: 7.195 MB / 0.668 GB, free: 18.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01788/2.26, allocations: 5.726 MB / 0.6736 GB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/2.26, allocations: 0 / 0.6736 GB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007976/2.268, allocations: 1.987 MB / 0.6755 GB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006834/2.275, allocations: 0.5378 MB / 0.6761 GB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3977/2.673, allocations: 137.8 MB / 0.8107 GB, free: 26.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009193/2.682, allocations: 4.108 MB / 0.8147 GB, free: 25.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009053/2.691, allocations: 2.098 MB / 0.8167 GB, free: 25.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00576/2.697, allocations: 2.466 MB / 0.8191 GB, free: 25.34 MB / 426.7 MB Notification: Performance of SimCode: time 1.263e-06/2.697, allocations: 4 kB / 0.8191 GB, free: 25.34 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4832/3.18, allocations: 92.12 MB / 0.9091 GB, free: 118.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/3.18, allocations: 229.5 kB / 0.9093 GB, free: 118.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.189/9.369, allocations: 1.969 kB / 0.9093 GB, free: 118.4 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat