Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 177.5 kB / 15.43 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 225.7 MB / 241.9 MB, free: 208 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007455/0.0007456, allocations: 84.16 kB / 293.1 MB, free: 12.89 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04012/0.04012, allocations: 9.093 MB / 353.3 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003061/0.0003061, allocations: 7.75 kB / 416.4 MB, free: 88.18 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/0.09072, allocations: 52.39 MB / 468.8 MB, free: 40.36 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01955/0.1103, allocations: 28.64 MB / 497.4 MB, free: 11.63 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01488/0.1253, allocations: 8.708 MB / 0.4943 GB, free: 2.477 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00645/0.1318, allocations: 119.8 kB / 0.4944 GB, free: 2.359 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001861/0.1337, allocations: 0.5092 MB / 0.4949 GB, free: 1.848 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005811/0.1395, allocations: 1.931 MB / 0.4967 GB, free: 15.91 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.1406, allocations: 131.8 kB / 0.4969 GB, free: 15.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007987/0.1486, allocations: 5.695 MB / 0.5024 GB, free: 10.07 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004095/0.1528, allocations: 1.928 MB / 0.5043 GB, free: 8.078 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003023/0.1558, allocations: 1.311 MB / 0.5056 GB, free: 6.762 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003054/0.1589, allocations: 2.074 MB / 0.5076 GB, free: 4.68 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007826/0.1597, allocations: 184 kB / 0.5078 GB, free: 4.5 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00192/0.1616, allocations: 0.7878 MB / 0.5086 GB, free: 3.711 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001848/0.1635, allocations: 1.791 MB / 0.5103 GB, free: 1.914 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003196/0.1667, allocations: 2.381 MB / 0.5126 GB, free: 15.51 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007266/0.174, allocations: 6.928 MB / 0.5194 GB, free: 8.562 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.174, allocations: 0 / 0.5194 GB, free: 8.562 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.174, allocations: 0 / 0.5194 GB, free: 8.562 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002286/0.1743, allocations: 0 / 0.5194 GB, free: 8.562 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.019/0.1933, allocations: 6.01 MB / 0.5253 GB, free: 2.477 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.1933, allocations: 8.031 kB / 0.5253 GB, free: 2.469 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2114/0.4047, allocations: 3.341 MB / 0.5285 GB, free: 62.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003848/0.4086, allocations: 2.057 MB / 0.5306 GB, free: 62.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.4088, allocations: 232.6 kB / 0.5308 GB, free: 62.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008719/0.4097, allocations: 307.7 kB / 0.5311 GB, free: 62.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0226/0.4323, allocations: 13.43 MB / 0.5442 GB, free: 58.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00013/0.4325, allocations: 55.14 kB / 0.5442 GB, free: 58.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004945/0.433, allocations: 153.5 kB / 0.5444 GB, free: 58.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004801/0.4378, allocations: 3.087 MB / 0.5474 GB, free: 57.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0204/0.4582, allocations: 11.89 MB / 0.559 GB, free: 48.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04719/0.5054, allocations: 47.99 MB / 0.6059 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.5163, allocations: 3.766 MB / 0.6096 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00259/0.5189, allocations: 1.379 MB / 0.6109 GB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01368/0.5326, allocations: 9.213 MB / 0.6199 GB, free: 204 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.5327, allocations: 55.5 kB / 0.62 GB, free: 140 kB / 378.7 MB Notification: Performance of pre-optimization done (n=202): time 4.989e-06/0.5327, allocations: 0 / 0.62 GB, free: 140 kB / 378.7 MB Notification: Performance of matching and sorting (n=211): time 0.01839/0.5511, allocations: 10.22 MB / 0.6299 GB, free: 5.781 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.901e-05/0.5512, allocations: 157.8 kB / 0.6301 GB, free: 5.594 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0072/0.5584, allocations: 5.103 MB / 0.6351 GB, free: 500 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002759/0.5587, allocations: 45.7 kB / 0.6351 GB, free: 448 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002752/0.5615, allocations: 3.94 MB / 0.639 GB, free: 12.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008192/0.5623, allocations: 0.8297 MB / 0.6398 GB, free: 11.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.5626, allocations: 156 kB / 0.6399 GB, free: 11.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004018/0.563, allocations: 0.6448 MB / 0.6405 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003261/0.5663, allocations: 2.221 MB / 0.6427 GB, free: 8.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006211/0.5725, allocations: 7.292 MB / 0.6498 GB, free: 14.74 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.5833, allocations: 10.35 MB / 0.6599 GB, free: 1.863 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001518/0.5835, allocations: 52 kB / 0.66 GB, free: 1.812 MB / 426.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01773/0.6012, allocations: 9.131 MB / 0.6689 GB, free: 8.672 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.6014, allocations: 80 kB / 0.669 GB, free: 8.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002044/0.6016, allocations: 184 kB / 0.6692 GB, free: 8.414 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000205/0.6018, allocations: 240 kB / 0.6694 GB, free: 8.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005051/0.6069, allocations: 1.836 MB / 0.6712 GB, free: 6.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002277/0.6071, allocations: 347 kB / 0.6715 GB, free: 6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004339/0.6115, allocations: 383.6 kB / 0.6719 GB, free: 5.625 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006271/0.6121, allocations: 0.496 MB / 0.6724 GB, free: 5.129 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (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],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005009/0.6171, allocations: 2.659 MB / 0.675 GB, free: 2.453 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008228/0.6179, allocations: 418.5 kB / 0.6754 GB, free: 2.039 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/0.6214, allocations: 1.951 MB / 0.6773 GB, free: 80 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001142/0.6215, allocations: 35.98 kB / 0.6773 GB, free: 44 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.6216, allocations: 4 kB / 0.6773 GB, free: 40 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.429e-05/0.6216, allocations: 11.91 kB / 0.6773 GB, free: 28 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/0.6346, allocations: 7.754 MB / 0.6849 GB, free: 8.035 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.139e-05/0.6347, allocations: 16.03 kB / 0.6849 GB, free: 8.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.6358, allocations: 299.5 kB / 0.6852 GB, free: 7.727 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.6359, allocations: 40.69 kB / 0.6852 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.636, allocations: 59.95 kB / 0.6853 GB, free: 7.629 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.6371, allocations: 1.303 MB / 0.6866 GB, free: 6.191 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/0.6371, allocations: 15.94 kB / 0.6866 GB, free: 6.176 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006083/0.6432, allocations: 4.365 MB / 0.6908 GB, free: 1.609 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002323/0.6456, allocations: 0.6907 MB / 0.6915 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004521/0.646, allocations: 44 kB / 0.6915 GB, free: 0.8516 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/0.6473, allocations: 75.92 kB / 0.6916 GB, free: 0.7773 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002947/0.6476, allocations: 152.2 kB / 0.6918 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.6478, allocations: 75.97 kB / 0.6918 GB, free: 0.5547 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.2154/0.8632, allocations: 3.171 MB / 0.6949 GB, free: 135.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8632, allocations: 0 / 0.6949 GB, free: 135.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006035/0.8693, allocations: 1.11 MB / 0.696 GB, free: 135.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.phi) * 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 (163): * Single equations (assignments): 155 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003645/0.8696, allocations: 187.2 kB / 0.6962 GB, free: 135.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008307/0.878, allocations: 5.126 MB / 0.7012 GB, free: 135.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/0.878, allocations: 3.969 kB / 0.7012 GB, free: 135.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.8799, allocations: 1.23 MB / 0.7024 GB, free: 135.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01052/0.8904, allocations: 0.5322 MB / 0.7029 GB, free: 135 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02118/0.9116, allocations: 12.99 MB / 0.7156 GB, free: 128.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007213/0.9189, allocations: 3.779 MB / 0.7193 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007278/0.9262, allocations: 2.457 MB / 0.7217 GB, free: 127.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009314/0.9271, allocations: 310.8 kB / 0.722 GB, free: 127.1 MB / 458.7 MB Notification: Performance of SimCode: time 9.22e-07/0.9272, allocations: 0 / 0.722 GB, free: 127.1 MB / 458.7 MB Notification: Performance of Templates: time 0.07661/1.004, allocations: 35.49 MB / 0.7566 GB, free: 99.22 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)