Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009818/0.009818, allocations: 174.7 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.048/2.048, allocations: 194.5 MB / 210.3 MB, free: 7.805 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003262/0.003262, allocations: 104.7 kB / 255.6 MB, free: 10.44 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2522/0.2522, allocations: 40.01 MB / 340.8 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006597/0.0006599, allocations: 11.12 kB / 406.3 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1039, allocations: 54.87 MB / 461.1 MB, free: 3.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5084/0.6124, allocations: 104.1 MB / 0.552 GB, free: 21.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.6127, allocations: 79.3 kB / 0.5521 GB, free: 21.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7563/1.369, allocations: 163.4 MB / 0.7116 GB, free: 9.652 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.369, allocations: 4 kB / 0.7116 GB, free: 9.648 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005321/1.37, allocations: 159.9 kB / 0.7118 GB, free: 9.492 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.03377/1.403, allocations: 7.983 MB / 0.7196 GB, free: 1.422 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/1.403, allocations: 8.031 kB / 0.7196 GB, free: 1.414 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3529/1.756, allocations: 1.552 MB / 0.7211 GB, free: 77.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07654/1.833, allocations: 10.05 MB / 0.7309 GB, free: 76.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03196/1.865, allocations: 8.444 MB / 0.7391 GB, free: 76.36 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008615/1.866, allocations: 0.6174 MB / 0.7397 GB, free: 76.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005031/1.871, allocations: 0.8282 MB / 0.7405 GB, free: 76.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06209/1.933, allocations: 20.53 MB / 0.7606 GB, free: 72.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008585/1.934, allocations: 96.67 kB / 0.7607 GB, free: 72.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00553/1.94, allocations: 396.1 kB / 0.7611 GB, free: 72.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004649/1.944, allocations: 2.097 MB / 0.7631 GB, free: 72.33 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05226/1.997, allocations: 18.07 MB / 0.7808 GB, free: 72.25 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1487/2.145, allocations: 85.07 MB / 0.8638 GB, free: 32.36 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02793/2.173, allocations: 8.05 MB / 0.8717 GB, free: 25.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006057/2.174, allocations: 62.02 kB / 0.8718 GB, free: 25.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.202e-05/2.174, allocations: 76.72 kB / 0.8718 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=450): time 1.004e-05/2.174, allocations: 2.688 kB / 0.8718 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=501): time 0.1858/2.36, allocations: 44.14 MB / 0.9149 GB, free: 3.219 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001967/2.36, allocations: 223 kB / 0.9152 GB, free: 2.957 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3851/2.745, allocations: 5.789 MB / 0.9208 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001211/2.747, allocations: 92.89 kB / 0.9209 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.006166/2.753, allocations: 5.686 MB / 0.9264 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003911/2.757, allocations: 1.817 MB / 0.9282 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003573/2.76, allocations: 221.5 kB / 0.9284 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.002006/2.763, allocations: 0.7999 MB / 0.9292 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01541/2.778, allocations: 4.908 MB / 0.934 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0201/2.798, allocations: 11.05 MB / 0.9448 GB, free: 92.56 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01755/2.816, allocations: 7.343 MB / 0.952 GB, free: 92.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000408/2.816, allocations: 60.78 kB / 0.952 GB, free: 92.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.0507/2.867, allocations: 17.16 MB / 0.9688 GB, free: 91.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002506/2.867, allocations: 94.81 kB / 0.9689 GB, free: 91.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004301/2.868, allocations: 218.4 kB / 0.9691 GB, free: 91.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00801/2.876, allocations: 1.716 MB / 0.9708 GB, free: 91.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0173/2.893, allocations: 2.6 MB / 0.9733 GB, free: 91.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02615/2.919, allocations: 14.37 MB / 0.9873 GB, free: 85.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01279/2.932, allocations: 0.6693 MB / 0.988 GB, free: 85.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002965/2.935, allocations: 0.6363 MB / 0.9886 GB, free: 85.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1363): * Single equations (assignments): 1350 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01261/2.948, allocations: 4.189 MB / 0.9927 GB, free: 84.13 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002572/2.95, allocations: 0.6193 MB / 0.9933 GB, free: 83.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02967/2.98, allocations: 9.714 MB / 1.003 GB, free: 80.15 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000195/2.98, allocations: 101.9 kB / 1.003 GB, free: 80.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.863e-05/2.98, allocations: 9.938 kB / 1.003 GB, free: 80.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001062/2.981, allocations: 21.44 kB / 1.003 GB, free: 80.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06543/3.046, allocations: 21.71 MB / 1.024 GB, free: 72.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.868e-05/3.046, allocations: 10.88 kB / 1.024 GB, free: 72.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007485/3.054, allocations: 0.7932 MB / 1.025 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006836/3.06, allocations: 1.363 MB / 1.026 GB, free: 71.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00116/3.062, allocations: 86.17 kB / 1.026 GB, free: 71.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02248/3.084, allocations: 13.25 MB / 1.039 GB, free: 63.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/3.084, allocations: 26.56 kB / 1.039 GB, free: 63.16 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03876/3.123, allocations: 17.3 MB / 1.056 GB, free: 47.66 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005506/3.129, allocations: 1.384 MB / 1.058 GB, free: 46.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00247/3.131, allocations: 92.67 kB / 1.058 GB, free: 46.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006816/3.138, allocations: 316.5 kB / 1.058 GB, free: 46.08 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001789/3.14, allocations: 294.2 kB / 1.058 GB, free: 45.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009027/3.141, allocations: 131.9 kB / 1.058 GB, free: 45.77 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01065/3.151, allocations: 3.99 MB / 1.062 GB, free: 42.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.61e-07/3.151, allocations: 0 / 1.062 GB, free: 42.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01324/3.165, allocations: 2.037 MB / 1.064 GB, free: 40.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03886/3.204, allocations: 20.06 MB / 1.084 GB, free: 21.99 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0272/3.231, allocations: 12.17 MB / 1.096 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/3.231, allocations: 4 kB / 1.096 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01156/3.243, allocations: 4.936 MB / 1.1 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006208/3.249, allocations: 0.7371 MB / 1.101 GB, free: 6.125 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5975/3.846, allocations: 222.7 MB / 1.319 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01831/3.865, allocations: 6.284 MB / 1.325 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.01907/3.884, allocations: 4.117 MB / 1.329 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01138/3.895, allocations: 4.071 MB / 1.333 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of SimCode: time 1.343e-06/3.895, allocations: 0 / 1.333 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7058/4.601, allocations: 148.5 MB / 1.478 GB, free: 191.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000263/4.601, allocations: 193.7 kB / 1.478 GB, free: 191.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.237/12.84, allocations: 8 kB / 1.478 GB, free: 191.6 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat