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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001388/0.001388, allocations: 106.6 kB / 15.99 MB, free: 6.352 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.001164/0.001164, allocations: 185.2 kB / 16.9 MB, free: 6.188 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.324/1.324, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0415/0.0415, allocations: 9.121 MB / 299.8 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 63.91 kB / 362.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2252, allocations: 51.42 MB / 413.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.0216/0.2469, allocations: 31.56 MB / 445.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01498/0.2619, allocations: 7.021 MB / 452.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006356/0.2683, allocations: 115.8 kB / 452.2 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00216/0.2705, allocations: 0.6612 MB / 452.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005044/0.2756, allocations: 1.907 MB / 454.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005736/0.2762, allocations: 123.9 kB / 454.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00536/0.2815, allocations: 4.162 MB / 459.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003398/0.2849, allocations: 2.068 MB / 461.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.2877, allocations: 1.408 MB / 462.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003257/0.291, allocations: 2.226 MB / 464.8 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001144/0.2921, allocations: 319.9 kB / 465.1 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002414/0.2946, allocations: 0.8972 MB / 466 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002654/0.2972, allocations: 1.924 MB / 467.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004007/0.3013, allocations: 2.488 MB / 470.4 MB, free: 120 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007303/0.3086, allocations: 5.93 MB / 476.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3086, allocations: 0 / 476.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3086, allocations: 0 / 476.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002348/0.3089, allocations: 0 / 476.3 MB, free: 10.18 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.02293/0.3318, allocations: 7.066 MB / 483.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3319, allocations: 8.031 kB / 483.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.3432, allocations: 3.254 MB / 486.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00443/0.3477, allocations: 2.062 MB / 488.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002628/0.348, allocations: 233.7 kB / 488.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001314/0.3493, allocations: 311.7 kB / 489.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02533/0.3746, allocations: 13.45 MB / 0.4909 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001967/0.3749, allocations: 47.53 kB / 0.4909 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001249/0.3761, allocations: 159.8 kB / 0.4911 GB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005201/0.3814, allocations: 3.096 MB / 0.4941 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2303/0.6117, allocations: 11.93 MB / 0.5058 GB, free: 81.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05397/0.6657, allocations: 47.95 MB / 0.5526 GB, free: 45.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.6768, allocations: 3.778 MB / 0.5563 GB, free: 42.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002229/0.6791, allocations: 1.383 MB / 0.5576 GB, free: 41.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0128/0.6919, allocations: 9.227 MB / 0.5667 GB, free: 31.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.692, allocations: 47.5 kB / 0.5667 GB, free: 31.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=202): time 5.471e-06/0.692, allocations: 0 / 0.5667 GB, free: 31.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=211): time 0.01976/0.7118, allocations: 10.25 MB / 0.5767 GB, free: 20.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.7119, allocations: 145.8 kB / 0.5769 GB, free: 20.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007499/0.7194, allocations: 5.138 MB / 0.5819 GB, free: 15.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003187/0.7197, allocations: 53.7 kB / 0.5819 GB, free: 15.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00212/0.7218, allocations: 3.934 MB / 0.5858 GB, free: 11.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008787/0.7227, allocations: 0.8372 MB / 0.5866 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00254/0.7253, allocations: 1.606 MB / 0.5882 GB, free: 9.188 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.009e-05/0.7253, allocations: 301.1 kB / 0.5884 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003253/0.7286, allocations: 2.241 MB / 0.5906 GB, free: 6.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006013/0.7346, allocations: 7.323 MB / 0.5978 GB, free: 12.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/0.7464, allocations: 10.39 MB / 0.6079 GB, free: 15.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002328/0.7466, allocations: 55.94 kB / 0.608 GB, free: 15.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01764/0.7643, allocations: 9.181 MB / 0.6169 GB, free: 6.637 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002343/0.7646, allocations: 84 kB / 0.617 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003446/0.7649, allocations: 180.9 kB / 0.6172 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.7653, allocations: 236 kB / 0.6174 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00572/0.771, allocations: 1.849 MB / 0.6192 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003302/0.7714, allocations: 354.6 kB / 0.6196 GB, free: 3.949 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00561/0.777, allocations: 371.7 kB / 0.6199 GB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/0.7782, allocations: 0.496 MB / 0.6204 GB, free: 3.09 MB / 414.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.005279/0.7835, allocations: 2.659 MB / 0.623 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009488/0.7844, allocations: 418.5 kB / 0.6234 GB, free: 0 / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004036/0.7885, allocations: 1.962 MB / 0.6253 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001334/0.7886, allocations: 35.98 kB / 0.6253 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/0.7886, allocations: 7.875 kB / 0.6254 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-05/0.7887, allocations: 7.969 kB / 0.6254 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/0.8045, allocations: 7.765 MB / 0.6329 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.589e-05/0.8046, allocations: 12 kB / 0.633 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.8058, allocations: 303.4 kB / 0.6332 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001755/0.806, allocations: 40.84 kB / 0.6333 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001945/0.8062, allocations: 60.31 kB / 0.6333 GB, free: 5.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.8073, allocations: 1.386 MB / 0.6347 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.26e-05/0.8073, allocations: 19.94 kB / 0.6347 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005727/0.813, allocations: 4.383 MB / 0.639 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/0.8148, allocations: 0.6712 MB / 0.6397 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001284/0.8161, allocations: 51.97 kB / 0.6397 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/0.8184, allocations: 71.88 kB / 0.6398 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002817/0.8187, allocations: 152.2 kB / 0.6399 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/0.8188, allocations: 71.98 kB / 0.64 GB, free: 14.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006493/0.8253, allocations: 3.214 MB / 0.6431 GB, free: 11.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8254, allocations: 0 / 0.6431 GB, free: 11.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007274/0.8326, allocations: 1.111 MB / 0.6442 GB, free: 10.09 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.0006581/0.8333, allocations: 186.3 kB / 0.6444 GB, free: 9.898 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0107/0.844, allocations: 6.08 MB / 0.6503 GB, free: 3.879 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.539e-05/0.8441, allocations: 4 kB / 0.6503 GB, free: 3.875 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002005/0.8461, allocations: 1.202 MB / 0.6515 GB, free: 2.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004681/0.8508, allocations: 0.5625 MB / 0.6521 GB, free: 2.117 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/0.8755, allocations: 13.51 MB / 0.6652 GB, free: 4.395 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0067/0.8822, allocations: 3.783 MB / 0.6689 GB, free: 0.582 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/0.8837, allocations: 387.3 kB / 0.6693 GB, free: 208 kB / 462.1 MB Notification: Performance of SimCode: time 2.584e-06/0.8837, allocations: 0 / 0.6693 GB, free: 208 kB / 462.1 MB Notification: Performance of Templates: time 0.3051/1.189, allocations: 80.68 MB / 0.7481 GB, free: 110.7 MB / 478.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)