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.001589/0.001589, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001388/0.001389, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001937/0.001937, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1034, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2188/0.3222, allocations: 14.23 MB / 388.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.3339, allocations: 4.648 MB / 393.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004123/0.3382, allocations: 93.28 kB / 393.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008409/0.3466, allocations: 4.218 MB / 397.8 MB, free: 208 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008503/0.3552, allocations: 2.327 MB / 400.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003157/0.3584, allocations: 0.9272 MB / 401.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.3693, allocations: 5.898 MB / 407 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008475/0.3778, allocations: 5.309 MB / 412.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00541/0.3833, allocations: 2.21 MB / 414.5 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005719/0.389, allocations: 2.938 MB / 417.4 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001947/0.391, allocations: 500 kB / 417.9 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003717/0.3948, allocations: 1.373 MB / 419.3 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003327/0.3981, allocations: 2.658 MB / 422 MB, free: 460 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005823/0.404, allocations: 3.061 MB / 425 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.4173, allocations: 9.755 MB / 434.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.307e-06/0.4174, allocations: 0 / 434.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4174, allocations: 3.938 kB / 434.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003647/0.4177, allocations: 4 kB / 434.8 MB, free: 3.574 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.01793/0.4357, allocations: 6.704 MB / 441.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.4357, allocations: 12.03 kB / 441.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00265/0.4384, allocations: 0.8804 MB / 442.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03781/0.4762, allocations: 6.133 MB / 448.5 MB, free: 5.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/0.4873, allocations: 4.83 MB / 453.3 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003408/0.4877, allocations: 320.7 kB / 453.7 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002216/0.49, allocations: 451.6 kB / 454.1 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02541/0.5154, allocations: 12.11 MB / 466.2 MB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002882/0.5157, allocations: 51.58 kB / 466.3 MB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001724/0.5175, allocations: 195.8 kB / 466.4 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003898/0.5214, allocations: 2.206 MB / 468.7 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02184/0.5433, allocations: 10.29 MB / 478.9 MB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06129/0.6046, allocations: 46.87 MB / 0.5135 GB, free: 6.176 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/0.6158, allocations: 4.481 MB / 0.5179 GB, free: 1.547 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00339/0.6192, allocations: 2.518 MB / 0.5203 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01627/0.6355, allocations: 10.06 MB / 0.5301 GB, free: 4.797 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.6356, allocations: 51.88 kB / 0.5302 GB, free: 4.738 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 5.75e-06/0.6356, allocations: 0 / 0.5302 GB, free: 4.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.05422/0.6898, allocations: 19.82 MB / 0.5495 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.69, allocations: 201.2 kB / 0.5497 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1935/0.8835, allocations: 4.85 MB / 0.5545 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005738/0.8841, allocations: 58.11 kB / 0.5545 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003443/0.8875, allocations: 3.902 MB / 0.5583 GB, free: 147.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001261/0.8888, allocations: 0.8665 MB / 0.5592 GB, free: 146.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002625/0.8915, allocations: 1.322 MB / 0.5605 GB, free: 146.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.029e-05/0.8915, allocations: 302.2 kB / 0.5608 GB, free: 145.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00425/0.8958, allocations: 2.353 MB / 0.5631 GB, free: 145.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006769/0.9026, allocations: 6.318 MB / 0.5692 GB, free: 139 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/0.913, allocations: 9.404 MB / 0.5784 GB, free: 131.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002196/0.9133, allocations: 40.62 kB / 0.5785 GB, free: 131.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0178/0.9311, allocations: 9.276 MB / 0.5875 GB, free: 127.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.9312, allocations: 68.5 kB / 0.5876 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001757/0.9314, allocations: 137.7 kB / 0.5877 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002973/0.9344, allocations: 1.074 MB / 0.5888 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004614/0.9391, allocations: 1.514 MB / 0.5902 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008566/0.9476, allocations: 8.852 MB / 0.5989 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006338/0.954, allocations: 364.3 kB / 0.5992 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001668/0.9558, allocations: 403.6 kB / 0.5996 GB, free: 120.6 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.004658/0.9604, allocations: 2.565 MB / 0.6021 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009779/0.9614, allocations: 457 kB / 0.6026 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006203/0.9676, allocations: 3.888 MB / 0.6064 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.705e-05/0.9677, allocations: 24 kB / 0.6064 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.9677, allocations: 8 kB / 0.6064 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.737e-05/0.9678, allocations: 7.969 kB / 0.6064 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01647/0.9842, allocations: 9.72 MB / 0.6159 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/0.9843, allocations: 0 / 0.6159 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/0.986, allocations: 343.5 kB / 0.6162 GB, free: 104.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002488/0.9885, allocations: 0.8516 MB / 0.617 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003186/0.9888, allocations: 39.98 kB / 0.6171 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00758/0.9964, allocations: 7.931 MB / 0.6248 GB, free: 95.58 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.9965, allocations: 0 / 0.6248 GB, free: 95.58 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008844/1.005, allocations: 6.672 MB / 0.6313 GB, free: 88.88 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002003/1.007, allocations: 0.7713 MB / 0.6321 GB, free: 88.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000742/1.008, allocations: 36.81 kB / 0.6321 GB, free: 88.05 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/1.01, allocations: 107.9 kB / 0.6322 GB, free: 87.95 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003731/1.01, allocations: 137.7 kB / 0.6324 GB, free: 87.81 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/1.01, allocations: 67.19 kB / 0.6324 GB, free: 87.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00385/1.014, allocations: 3.063 MB / 0.6354 GB, free: 84.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.014, allocations: 0 / 0.6354 GB, free: 84.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005468/1.02, allocations: 1.203 MB / 0.6366 GB, free: 83.49 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.008706/1.028, allocations: 7.342 MB / 0.6438 GB, free: 76.11 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008413/1.037, allocations: 5.945 MB / 0.6496 GB, free: 70.17 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.037, allocations: 0 / 0.6496 GB, free: 70.17 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002765/1.04, allocations: 2.083 MB / 0.6516 GB, free: 68.06 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003398/1.043, allocations: 0.596 MB / 0.6522 GB, free: 67.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06998/1.113, allocations: 54.03 MB / 0.705 GB, free: 7.207 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003763/1.117, allocations: 4.003 MB / 0.7089 GB, free: 3.176 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004097/1.121, allocations: 2.09 MB / 0.7109 GB, free: 1.082 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002912/1.124, allocations: 2.462 MB / 0.7133 GB, free: 14.62 MB / 494.1 MB Notification: Performance of SimCode: time 6.82e-07/1.124, allocations: 0 / 0.7133 GB, free: 14.62 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3271/1.451, allocations: 86.52 MB / 0.7978 GB, free: 133 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.75/21.2, allocations: 15.84 kB / 0.7978 GB, free: 133 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