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.001295/0.001295, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.001022/0.001022, allocations: 188.7 kB / 17.34 MB, free: 5.633 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04424/0.04424, allocations: 9.116 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 59.91 kB / 415.3 MB, free: 21.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09481, allocations: 51.45 MB / 466.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01434/0.1092, allocations: 12.92 MB / 479.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00786/0.1171, allocations: 3.563 MB / 483.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001973/0.1192, allocations: 59.88 kB / 483.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.1216, allocations: 0.7574 MB / 484.1 MB, free: 428 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00532/0.1269, allocations: 2.038 MB / 486.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007891/0.1277, allocations: 143.8 kB / 486.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005989/0.1337, allocations: 4.098 MB / 490.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003693/0.1375, allocations: 1.99 MB / 492.3 MB, free: 8.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002915/0.1404, allocations: 1.408 MB / 493.7 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003259/0.1437, allocations: 2.012 MB / 495.8 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001295/0.145, allocations: 316 kB / 496.1 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002609/0.1477, allocations: 0.8933 MB / 497 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002603/0.1503, allocations: 1.901 MB / 498.9 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003992/0.1543, allocations: 2.465 MB / 0.4896 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009358/0.1637, allocations: 7.643 MB / 0.497 GB, free: 7.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1637, allocations: 0 / 0.497 GB, free: 7.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1638, allocations: 0 / 0.497 GB, free: 7.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002464/0.164, allocations: 4 kB / 0.497 GB, free: 7.402 MB / 382.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.02487/0.1889, allocations: 7.051 MB / 0.5039 GB, free: 284 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1889, allocations: 12.03 kB / 0.5039 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2221/0.411, allocations: 3.252 MB / 0.5071 GB, free: 41.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005437/0.4165, allocations: 2.073 MB / 0.5091 GB, free: 40.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002727/0.4168, allocations: 229.5 kB / 0.5094 GB, free: 40.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001521/0.4183, allocations: 311.9 kB / 0.5097 GB, free: 40.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02161/0.44, allocations: 13.46 MB / 0.5228 GB, free: 33.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.4401, allocations: 55.09 kB / 0.5228 GB, free: 33.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004763/0.4406, allocations: 155.3 kB / 0.523 GB, free: 33.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003953/0.4445, allocations: 3.089 MB / 0.526 GB, free: 32.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01985/0.4644, allocations: 11.93 MB / 0.5377 GB, free: 20.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05585/0.5203, allocations: 47.8 MB / 0.5843 GB, free: 3.555 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01212/0.5325, allocations: 3.786 MB / 0.588 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/0.535, allocations: 1.375 MB / 0.5894 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01408/0.5491, allocations: 9.202 MB / 0.5984 GB, free: 4.172 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/0.5492, allocations: 59.5 kB / 0.5984 GB, free: 4.105 MB / 430.1 MB Notification: Performance of pre-optimization done (n=202): time 5.591e-06/0.5492, allocations: 0 / 0.5984 GB, free: 4.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=211): time 0.01982/0.569, allocations: 10.24 MB / 0.6084 GB, free: 9.727 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.5691, allocations: 149.8 kB / 0.6086 GB, free: 9.547 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006874/0.576, allocations: 5.142 MB / 0.6136 GB, free: 4.402 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002688/0.5763, allocations: 61.61 kB / 0.6137 GB, free: 4.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002561/0.5789, allocations: 3.928 MB / 0.6175 GB, free: 364 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009467/0.5799, allocations: 0.8295 MB / 0.6183 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002049/0.5819, allocations: 1.598 MB / 0.6199 GB, free: 13.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.582, allocations: 305.1 kB / 0.6202 GB, free: 13.61 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003554/0.5856, allocations: 2.245 MB / 0.6223 GB, free: 11.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006658/0.5923, allocations: 7.32 MB / 0.6295 GB, free: 1.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/0.6041, allocations: 10.4 MB / 0.6396 GB, free: 4.578 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001549/0.6043, allocations: 52 kB / 0.6397 GB, free: 4.527 MB / 478.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01637/0.6206, allocations: 9.186 MB / 0.6487 GB, free: 11.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.6208, allocations: 89.88 kB / 0.6488 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002144/0.621, allocations: 184 kB / 0.6489 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002155/0.6212, allocations: 236 kB / 0.6492 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005444/0.6267, allocations: 1.84 MB / 0.6509 GB, free: 9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002458/0.627, allocations: 350.7 kB / 0.6513 GB, free: 8.656 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004868/0.6318, allocations: 371.6 kB / 0.6516 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007186/0.6326, allocations: 0.5038 MB / 0.6521 GB, free: 7.789 MB / 494.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.003777/0.6364, allocations: 2.659 MB / 0.6547 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006811/0.637, allocations: 418.5 kB / 0.6551 GB, free: 4.703 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003308/0.6404, allocations: 1.962 MB / 0.657 GB, free: 2.727 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001266/0.6405, allocations: 35.98 kB / 0.6571 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.6405, allocations: 0 / 0.6571 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-05/0.6406, allocations: 11.91 kB / 0.6571 GB, free: 2.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/0.6545, allocations: 7.755 MB / 0.6647 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.303e-05/0.6546, allocations: 16.03 kB / 0.6647 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.6558, allocations: 299.5 kB / 0.665 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001542/0.6559, allocations: 40.84 kB / 0.665 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.6561, allocations: 51.98 kB / 0.6651 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.6571, allocations: 1.398 MB / 0.6664 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.428e-05/0.6571, allocations: 19.92 kB / 0.6664 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005639/0.6628, allocations: 4.386 MB / 0.6707 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001839/0.6646, allocations: 0.6712 MB / 0.6714 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006147/0.6653, allocations: 47.94 kB / 0.6714 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.6667, allocations: 79.98 kB / 0.6715 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.667, allocations: 144.1 kB / 0.6716 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.6671, allocations: 75.98 kB / 0.6717 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005211/0.6723, allocations: 3.214 MB / 0.6748 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.61e-07/0.6724, allocations: 4 kB / 0.6748 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006053/0.6784, allocations: 1.103 MB / 0.6759 GB, free: 14.8 MB / 0.5137 GB 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.0005776/0.679, allocations: 180.7 kB / 0.6761 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00823/0.6873, allocations: 5.217 MB / 0.6812 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-05/0.6873, allocations: 4 kB / 0.6812 GB, free: 9.441 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001842/0.6892, allocations: 1.2 MB / 0.6824 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00337/0.6926, allocations: 0.5672 MB / 0.6829 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01827/0.7109, allocations: 10.99 MB / 0.6937 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004556/0.7155, allocations: 3.779 MB / 0.6973 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/0.7167, allocations: 383.3 kB / 0.6977 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of SimCode: time 9.42e-07/0.7167, allocations: 0 / 0.6977 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of Templates: time 0.3252/1.042, allocations: 81.41 MB / 0.7772 GB, free: 124.3 MB / 0.5294 GB 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)