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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002011/0.002012, allocations: 181 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 221.4 MB / 229.3 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 92.83 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04336/0.04336, allocations: 8.843 MB / 339.7 MB, free: 5.703 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.999e-06/5.019e-06, allocations: 0 / 398.1 MB, free: 67.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06725/0.06727, allocations: 52.39 MB / 450.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2361/0.3034, allocations: 93.66 MB / 0.5314 GB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.3037, allocations: 95.38 kB / 0.5315 GB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2569/0.5607, allocations: 96.87 MB / 0.6261 GB, free: 5.508 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001765/0.5609, allocations: 88 kB / 0.6262 GB, free: 5.422 MB / 442.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.02773/0.5886, allocations: 5.244 MB / 0.6313 GB, free: 112 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.5887, allocations: 8.031 kB / 0.6313 GB, free: 104 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01687/0.6055, allocations: 2.957 MB / 0.6342 GB, free: 13.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006479/0.612, allocations: 2.642 MB / 0.6368 GB, free: 10.44 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.6123, allocations: 163.9 kB / 0.637 GB, free: 10.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001682/0.614, allocations: 275.9 kB / 0.6372 GB, free: 10.01 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01436/0.6283, allocations: 8.584 MB / 0.6456 GB, free: 1.414 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1339/0.7622, allocations: 12.63 MB / 0.6579 GB, free: 155.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.7624, allocations: 65.94 kB / 0.658 GB, free: 155.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006918/0.7631, allocations: 32.09 kB / 0.658 GB, free: 155.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001681/0.7648, allocations: 1.61 MB / 0.6596 GB, free: 155.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05/0.8148, allocations: 55.01 MB / 0.7133 GB, free: 121 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002816/0.8177, allocations: 2.267 MB / 0.7155 GB, free: 119.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.8193, allocations: 1.21 MB / 0.7167 GB, free: 119.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01016/0.8295, allocations: 7.271 MB / 0.7238 GB, free: 114.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.8295, allocations: 64.92 kB / 0.7239 GB, free: 114.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=196): time 4.709e-06/0.8296, allocations: 0 / 0.7239 GB, free: 114.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.0129/0.8425, allocations: 8.551 MB / 0.7322 GB, free: 110.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.8425, allocations: 143.3 kB / 0.7324 GB, free: 110.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004645/0.8472, allocations: 3.933 MB / 0.7362 GB, free: 108.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.8474, allocations: 25.7 kB / 0.7362 GB, free: 108.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/0.8488, allocations: 3.939 MB / 0.7401 GB, free: 105.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004985/0.8493, allocations: 0.7941 MB / 0.7409 GB, free: 105.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.8496, allocations: 0 / 0.7409 GB, free: 105.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003449/0.8499, allocations: 0.6648 MB / 0.7415 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002736/0.8527, allocations: 2.194 MB / 0.7436 GB, free: 104 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004207/0.8569, allocations: 7.48 MB / 0.7509 GB, free: 96 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005133/0.8621, allocations: 4.151 MB / 0.755 GB, free: 94.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.014e-05/0.8622, allocations: 51.88 kB / 0.7551 GB, free: 94.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=1098) (initialization): time 0.01242/0.8746, allocations: 8.379 MB / 0.7632 GB, free: 88.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.8746, allocations: 8 kB / 0.7632 GB, free: 88.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001393/0.8748, allocations: 188 kB / 0.7634 GB, free: 88.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000215/0.875, allocations: 280 kB / 0.7637 GB, free: 88.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005779/0.8808, allocations: 1.932 MB / 0.7656 GB, free: 86.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001719/0.881, allocations: 378.5 kB / 0.7659 GB, free: 86.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005205/0.8862, allocations: 213.5 kB / 0.7661 GB, free: 86.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008209/0.887, allocations: 0.5227 MB / 0.7666 GB, free: 85.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1048): * Single equations (assignments): 1041 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008981/0.8879, allocations: 0.5555 MB / 0.7672 GB, free: 84.98 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005659/0.8885, allocations: 371.1 kB / 0.7675 GB, free: 84.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/0.8914, allocations: 1.785 MB / 0.7693 GB, free: 83.08 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001553/0.8916, allocations: 20 kB / 0.7693 GB, free: 83.06 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.8916, allocations: 4 kB / 0.7693 GB, free: 83.06 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.8916, allocations: 11.83 kB / 0.7693 GB, free: 83.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.9017, allocations: 6.145 MB / 0.7753 GB, free: 77.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.9018, allocations: 12 kB / 0.7753 GB, free: 77.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.903, allocations: 291.2 kB / 0.7756 GB, free: 77.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.9032, allocations: 38.59 kB / 0.7756 GB, free: 77.55 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.9033, allocations: 27.89 kB / 0.7757 GB, free: 77.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006767/0.904, allocations: 1.243 MB / 0.7769 GB, free: 76.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.904, allocations: 15.94 kB / 0.7769 GB, free: 76.19 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004362/0.9084, allocations: 5.361 MB / 0.7821 GB, free: 70.54 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.9091, allocations: 446 kB / 0.7826 GB, free: 70.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005038/0.9096, allocations: 19.94 kB / 0.7826 GB, free: 70.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/0.911, allocations: 31.5 kB / 0.7826 GB, free: 70.06 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.9112, allocations: 113.4 kB / 0.7827 GB, free: 69.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.9113, allocations: 78.61 kB / 0.7828 GB, free: 69.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.003211/0.9146, allocations: 2.576 MB / 0.7853 GB, free: 67.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005653/0.9202, allocations: 0.955 MB / 0.7862 GB, free: 66.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 2 (constantSpeed.phi,gearB.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 148 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003625/0.9206, allocations: 172.2 kB / 0.7864 GB, free: 66.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006233/0.9268, allocations: 4.976 MB / 0.7913 GB, free: 62.04 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.9269, allocations: 12 kB / 0.7913 GB, free: 62.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.9285, allocations: 1.16 MB / 0.7924 GB, free: 60.95 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.9301, allocations: 364.6 kB / 0.7928 GB, free: 60.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.9441, allocations: 8.553 MB / 0.8011 GB, free: 52.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005573/0.9497, allocations: 4.249 MB / 0.8053 GB, free: 49.45 MB / 458.7 MB Notification: Performance of SimCode: time 8.11e-07/0.9498, allocations: 0 / 0.8053 GB, free: 49.45 MB / 458.7 MB Notification: Performance of Templates: time 0.06781/1.018, allocations: 35.56 MB / 0.84 GB, free: 15.95 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)