Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000919/0.0009189, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001267/0.001267, allocations: 172.9 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1659/0.1659, allocations: 9.112 MB / 300.5 MB, free: 2.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003171, allocations: 4 kB / 363.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1003, allocations: 52.43 MB / 416.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.197/0.2973, allocations: 30.63 MB / 446.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01416/0.3115, allocations: 7.031 MB / 453.8 MB, free: 21.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006099/0.3177, allocations: 118.3 kB / 453.9 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.3192, allocations: 0.5067 MB / 454.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004553/0.3238, allocations: 1.927 MB / 456.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000575/0.3244, allocations: 121.7 kB / 456.5 MB, free: 19.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005063/0.3295, allocations: 5.706 MB / 462.2 MB, free: 18.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002163/0.3317, allocations: 1.933 MB / 464.1 MB, free: 17.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.3335, allocations: 1.194 MB / 465.3 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002536/0.336, allocations: 2.073 MB / 467.4 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006244/0.3367, allocations: 186.7 kB / 467.6 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001618/0.3383, allocations: 0.793 MB / 468.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001431/0.3397, allocations: 1.82 MB / 470.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002061/0.3418, allocations: 2.376 MB / 472.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008304/0.3501, allocations: 6.928 MB / 479.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3502, allocations: 1.375 kB / 479.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3502, allocations: 0 / 479.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00028/0.3505, allocations: 4 kB / 479.5 MB, free: 11.38 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: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.02782/0.3783, allocations: 6.007 MB / 485.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.3784, allocations: 9.844 kB / 485.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01376/0.3921, allocations: 3.342 MB / 488.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005577/0.3978, allocations: 2.063 MB / 490.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004221/0.3982, allocations: 233.5 kB / 491.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001954/0.4002, allocations: 312.8 kB / 491.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0275/0.4277, allocations: 13.45 MB / 0.4931 GB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002894/0.4281, allocations: 55.45 kB / 0.4931 GB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002179/0.4302, allocations: 159.8 kB / 0.4933 GB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006076/0.4363, allocations: 3.08 MB / 0.4963 GB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02585/0.4622, allocations: 11.94 MB / 0.5079 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0667/0.529, allocations: 47.98 MB / 0.5548 GB, free: 9.469 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/0.5417, allocations: 3.787 MB / 0.5585 GB, free: 5.426 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002749/0.5444, allocations: 1.395 MB / 0.5598 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01671/0.5612, allocations: 9.213 MB / 0.5688 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.5613, allocations: 47.56 kB / 0.5689 GB, free: 10 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 7.774e-06/0.5613, allocations: 0 / 0.5689 GB, free: 10 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.2262/0.7875, allocations: 10.25 MB / 0.5789 GB, free: 124.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.7876, allocations: 146.1 kB / 0.579 GB, free: 124.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009885/0.7975, allocations: 5.145 MB / 0.5841 GB, free: 124 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004137/0.798, allocations: 56.59 kB / 0.5841 GB, free: 123.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003766/0.8018, allocations: 3.932 MB / 0.588 GB, free: 122.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001584/0.8034, allocations: 0.8317 MB / 0.5888 GB, free: 121.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002093/0.8055, allocations: 0.6485 MB / 0.5894 GB, free: 121.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.854e-05/0.8056, allocations: 302.3 kB / 0.5897 GB, free: 121.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004714/0.8103, allocations: 2.245 MB / 0.5919 GB, free: 120.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007546/0.8179, allocations: 7.317 MB / 0.599 GB, free: 113 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.8282, allocations: 10.39 MB / 0.6092 GB, free: 103.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002065/0.8284, allocations: 52.64 kB / 0.6092 GB, free: 103.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01805/0.8465, allocations: 9.18 MB / 0.6182 GB, free: 99.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004021/0.847, allocations: 81.97 kB / 0.6183 GB, free: 99.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006691/0.8476, allocations: 185.5 kB / 0.6184 GB, free: 99.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006823/0.8483, allocations: 237 kB / 0.6187 GB, free: 99.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006843/0.8552, allocations: 1.846 MB / 0.6205 GB, free: 99.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000628/0.8559, allocations: 355.2 kB / 0.6208 GB, free: 99.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006615/0.8625, allocations: 371.3 kB / 0.6212 GB, free: 99.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/0.8643, allocations: 0.4939 MB / 0.6216 GB, free: 99.48 MB / 446.1 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.007228/0.8715, allocations: 2.657 MB / 0.6242 GB, free: 98.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001532/0.8731, allocations: 427.4 kB / 0.6246 GB, free: 97.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005318/0.8784, allocations: 1.96 MB / 0.6266 GB, free: 97.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001442/0.8786, allocations: 39.97 kB / 0.6266 GB, free: 97.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.3e-05/0.8786, allocations: 3.844 kB / 0.6266 GB, free: 97.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.512e-05/0.8787, allocations: 6.938 kB / 0.6266 GB, free: 97.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01701/0.8957, allocations: 7.764 MB / 0.6342 GB, free: 94.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/0.8958, allocations: 16.45 kB / 0.6342 GB, free: 94.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.8969, allocations: 300.9 kB / 0.6345 GB, free: 94.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001505/0.8971, allocations: 44.77 kB / 0.6345 GB, free: 94.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/0.8973, allocations: 48.31 kB / 0.6346 GB, free: 94.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000702/0.898, allocations: 1.298 MB / 0.6358 GB, free: 92.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.898, allocations: 27 kB / 0.6359 GB, free: 92.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005151/0.9032, allocations: 4.379 MB / 0.6402 GB, free: 90.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001698/0.9049, allocations: 0.6979 MB / 0.6408 GB, free: 89.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009797/0.9059, allocations: 52.28 kB / 0.6409 GB, free: 89.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/0.9079, allocations: 72.36 kB / 0.641 GB, free: 89.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/0.9081, allocations: 141.5 kB / 0.6411 GB, free: 89.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.9083, allocations: 80.95 kB / 0.6412 GB, free: 89.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005962/0.9143, allocations: 3.216 MB / 0.6443 GB, free: 87.99 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9143, allocations: 0 / 0.6443 GB, free: 87.99 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006848/0.9211, allocations: 1.094 MB / 0.6454 GB, free: 86.9 MB / 446.1 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.0005358/0.9217, allocations: 198.8 kB / 0.6456 GB, free: 86.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007835/0.9295, allocations: 5.159 MB / 0.6506 GB, free: 82.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/0.9296, allocations: 0 / 0.6506 GB, free: 82.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.9313, allocations: 1.236 MB / 0.6518 GB, free: 81.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01179/0.9431, allocations: 0.5418 MB / 0.6523 GB, free: 80.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.9603, allocations: 12.99 MB / 0.665 GB, free: 68.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004155/0.9645, allocations: 3.77 MB / 0.6687 GB, free: 65.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005554/0.97, allocations: 2.46 MB / 0.6711 GB, free: 63.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007739/0.9708, allocations: 319.4 kB / 0.6714 GB, free: 62.87 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.9708, allocations: 0 / 0.6714 GB, free: 62.87 MB / 446.1 MB Notification: Performance of Templates: time 0.05846/1.029, allocations: 35.46 MB / 0.706 GB, free: 27.66 MB / 446.1 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)