Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 114.5 kB / 17.73 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09232, allocations: 46.63 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.1948/0.2872, allocations: 14.23 MB / 388.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009639/0.2969, allocations: 4.637 MB / 393.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00361/0.3006, allocations: 95.47 kB / 393.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008256/0.3089, allocations: 4.224 MB / 397.8 MB, free: 192 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008876/0.3178, allocations: 2.322 MB / 400.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003131/0.321, allocations: 0.9312 MB / 401.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009648/0.3306, allocations: 5.89 MB / 407 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007065/0.3377, allocations: 5.308 MB / 412.3 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004578/0.3424, allocations: 2.209 MB / 414.5 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00481/0.3472, allocations: 2.942 MB / 417.4 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001189/0.3484, allocations: 500 kB / 417.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002986/0.3514, allocations: 1.366 MB / 419.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002696/0.3541, allocations: 2.658 MB / 422 MB, free: 432 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004082/0.3582, allocations: 3.069 MB / 425 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01197/0.3702, allocations: 9.751 MB / 434.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.3703, allocations: 0 / 434.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.3703, allocations: 0 / 434.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003328/0.3706, allocations: 3.938 kB / 434.8 MB, free: 3.547 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01515/0.3858, allocations: 6.711 MB / 441.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3858, allocations: 8.031 kB / 441.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001458/0.3873, allocations: 0.8843 MB / 442.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0382/0.4255, allocations: 6.133 MB / 448.5 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.4359, allocations: 4.834 MB / 453.3 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002352/0.4362, allocations: 312.7 kB / 453.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001292/0.4375, allocations: 447.7 kB / 454.1 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02073/0.4582, allocations: 12.11 MB / 466.2 MB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001524/0.4584, allocations: 59.52 kB / 466.3 MB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005137/0.459, allocations: 195.8 kB / 466.4 MB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003593/0.4626, allocations: 2.203 MB / 468.6 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01905/0.4816, allocations: 10.29 MB / 478.9 MB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05814/0.5398, allocations: 46.87 MB / 0.5135 GB, free: 6.145 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01089/0.5508, allocations: 4.489 MB / 0.5179 GB, free: 1.508 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003218/0.554, allocations: 2.514 MB / 0.5203 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01624/0.5703, allocations: 10.05 MB / 0.5301 GB, free: 4.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.5703, allocations: 51.88 kB / 0.5302 GB, free: 4.711 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 5.33e-06/0.5704, allocations: 0 / 0.5302 GB, free: 4.711 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.04976/0.6201, allocations: 19.82 MB / 0.5495 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.6203, allocations: 205.2 kB / 0.5497 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1871/0.8074, allocations: 4.845 MB / 0.5545 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004991/0.808, allocations: 56.58 kB / 0.5545 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002471/0.8104, allocations: 3.908 MB / 0.5583 GB, free: 147.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.8116, allocations: 0.8664 MB / 0.5592 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001869/0.8134, allocations: 1.323 MB / 0.5605 GB, free: 146.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.709e-05/0.8135, allocations: 301.8 kB / 0.5608 GB, free: 145.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/0.8171, allocations: 2.358 MB / 0.5631 GB, free: 145.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005152/0.8222, allocations: 6.313 MB / 0.5692 GB, free: 139.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009639/0.8319, allocations: 9.408 MB / 0.5784 GB, free: 131.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001627/0.8321, allocations: 40.09 kB / 0.5785 GB, free: 131.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.01527/0.8474, allocations: 9.277 MB / 0.5875 GB, free: 127.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.538e-05/0.8475, allocations: 70.56 kB / 0.5876 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001132/0.8476, allocations: 136 kB / 0.5877 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002598/0.8502, allocations: 1.073 MB / 0.5888 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004099/0.8543, allocations: 1.508 MB / 0.5902 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008297/0.8626, allocations: 8.859 MB / 0.5989 GB, free: 121.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005256/0.8679, allocations: 365.8 kB / 0.5992 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/0.869, allocations: 399.2 kB / 0.5996 GB, free: 120.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (794): * Single equations (assignments): 789 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00437/0.8734, allocations: 2.564 MB / 0.6021 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.8744, allocations: 461 kB / 0.6026 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006034/0.8804, allocations: 3.89 MB / 0.6064 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.402e-05/0.8805, allocations: 24 kB / 0.6064 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.8805, allocations: 4 kB / 0.6064 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/0.8805, allocations: 15.95 kB / 0.6064 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01522/0.8957, allocations: 9.711 MB / 0.6159 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/0.8958, allocations: 4 kB / 0.6159 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.8973, allocations: 347.5 kB / 0.6162 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002352/0.8997, allocations: 0.8477 MB / 0.617 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001658/0.8999, allocations: 40 kB / 0.6171 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007171/0.9071, allocations: 7.93 MB / 0.6248 GB, free: 95.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.9071, allocations: 0 / 0.6248 GB, free: 95.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0082/0.9153, allocations: 6.672 MB / 0.6313 GB, free: 88.84 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/0.9174, allocations: 0.7713 MB / 0.6321 GB, free: 88.05 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006194/0.918, allocations: 35.98 kB / 0.6321 GB, free: 88.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.9196, allocations: 111.8 kB / 0.6322 GB, free: 87.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003332/0.9199, allocations: 137.8 kB / 0.6324 GB, free: 87.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.92, allocations: 56 kB / 0.6324 GB, free: 87.72 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003855/0.9239, allocations: 3.071 MB / 0.6354 GB, free: 84.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9239, allocations: 0 / 0.6354 GB, free: 84.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005605/0.9295, allocations: 1.203 MB / 0.6366 GB, free: 83.46 MB / 478.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008486/0.938, allocations: 7.343 MB / 0.6438 GB, free: 76.07 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008016/0.9461, allocations: 5.953 MB / 0.6496 GB, free: 70.12 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.9461, allocations: 0 / 0.6496 GB, free: 70.12 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002559/0.9487, allocations: 2.08 MB / 0.6516 GB, free: 68.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003255/0.952, allocations: 0.5882 MB / 0.6522 GB, free: 67.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06398/1.016, allocations: 54.04 MB / 0.705 GB, free: 7.164 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003649/1.02, allocations: 4.002 MB / 0.7089 GB, free: 3.137 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004002/1.024, allocations: 2.092 MB / 0.7109 GB, free: 1.039 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002948/1.027, allocations: 2.468 MB / 0.7133 GB, free: 14.59 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/1.027, allocations: 0 / 0.7133 GB, free: 14.59 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.33/1.357, allocations: 86.52 MB / 0.7978 GB, free: 132.9 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.93/21.29, allocations: 23.69 kB / 0.7978 GB, free: 132.9 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches