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.001101/0.001101, allocations: 113.2 kB / 16.37 MB, free: 6.004 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.001175/0.001175, allocations: 196 kB / 17.31 MB, free: 5.613 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.319/1.319, 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.04344/0.04344, allocations: 9.121 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.89 kB / 363.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2313, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.009814/0.2412, allocations: 12.93 MB / 427.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006743/0.2479, allocations: 3.58 MB / 431.3 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002524/0.2505, allocations: 55.94 kB / 431.4 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00194/0.2525, allocations: 0.7496 MB / 432.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004771/0.2573, allocations: 2.034 MB / 434.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006181/0.258, allocations: 155.7 kB / 434.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004415/0.2624, allocations: 4.097 MB / 438.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002531/0.265, allocations: 1.986 MB / 440.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002478/0.2675, allocations: 1.408 MB / 441.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002642/0.2701, allocations: 2.016 MB / 443.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009023/0.271, allocations: 316 kB / 444.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.2729, allocations: 0.8855 MB / 445 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001872/0.2747, allocations: 1.901 MB / 446.9 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.2775, allocations: 2.457 MB / 449.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008443/0.2859, allocations: 7.628 MB / 457 MB, free: 14.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2859, allocations: 0 / 457 MB, free: 14.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.286, allocations: 0 / 457 MB, free: 14.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002265/0.2862, allocations: 4 kB / 457 MB, free: 14.51 MB / 334.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.02254/0.3087, allocations: 7.059 MB / 464.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3088, allocations: 12.03 kB / 464.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/0.32, allocations: 3.262 MB / 467.3 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006125/0.3261, allocations: 2.067 MB / 469.4 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003679/0.3266, allocations: 237.7 kB / 469.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001889/0.3285, allocations: 307.7 kB / 469.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02512/0.3536, allocations: 13.45 MB / 483.4 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001329/0.3538, allocations: 51.53 kB / 483.4 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005172/0.3543, allocations: 155.8 kB / 483.6 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004715/0.359, allocations: 3.088 MB / 486.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02474/0.3838, allocations: 11.94 MB / 498.6 MB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2901/0.6739, allocations: 47.79 MB / 0.5336 GB, free: 50.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01124/0.6851, allocations: 3.782 MB / 0.5373 GB, free: 48.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002482/0.6877, allocations: 1.388 MB / 0.5386 GB, free: 47.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01498/0.7027, allocations: 9.2 MB / 0.5476 GB, free: 41.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.7027, allocations: 64.08 kB / 0.5477 GB, free: 41.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=202): time 6.182e-06/0.7028, allocations: 0 / 0.5477 GB, free: 41.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=211): time 0.0214/0.7242, allocations: 10.25 MB / 0.5577 GB, free: 34.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/0.7243, allocations: 153.5 kB / 0.5578 GB, free: 34.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005951/0.7303, allocations: 5.15 MB / 0.5629 GB, free: 28.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002299/0.7305, allocations: 49.7 kB / 0.5629 GB, free: 28.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.7322, allocations: 3.93 MB / 0.5668 GB, free: 25.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006062/0.7329, allocations: 0.8249 MB / 0.5676 GB, free: 24.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001523/0.7344, allocations: 1.606 MB / 0.5691 GB, free: 22.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.559e-05/0.7344, allocations: 305.1 kB / 0.5694 GB, free: 22.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002657/0.7371, allocations: 2.252 MB / 0.5716 GB, free: 20.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004562/0.7417, allocations: 7.313 MB / 0.5788 GB, free: 10.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00916/0.7509, allocations: 10.39 MB / 0.5889 GB, free: 13.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001605/0.7511, allocations: 52 kB / 0.589 GB, free: 13.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01678/0.7678, allocations: 9.175 MB / 0.5979 GB, free: 4.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.7681, allocations: 84 kB / 0.598 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003786/0.7685, allocations: 180 kB / 0.5982 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000342/0.7689, allocations: 239.9 kB / 0.5984 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006156/0.775, allocations: 1.845 MB / 0.6002 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004392/0.7755, allocations: 358.6 kB / 0.6006 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006417/0.7819, allocations: 375.4 kB / 0.6009 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001512/0.7835, allocations: 0.4921 MB / 0.6014 GB, free: 0.5586 MB / 398.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.005718/0.7892, allocations: 2.647 MB / 0.604 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/0.7903, allocations: 418.5 kB / 0.6044 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005132/0.7954, allocations: 1.97 MB / 0.6063 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001426/0.7956, allocations: 35.98 kB / 0.6063 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-05/0.7956, allocations: 0 / 0.6063 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.21e-05/0.7957, allocations: 11.97 kB / 0.6063 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01867/0.8144, allocations: 7.751 MB / 0.6139 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.569e-05/0.8145, allocations: 16 kB / 0.6139 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.8158, allocations: 303.5 kB / 0.6142 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001487/0.8159, allocations: 36.84 kB / 0.6143 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000217/0.8162, allocations: 52.33 kB / 0.6143 GB, free: 3.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.8174, allocations: 1.402 MB / 0.6157 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-05/0.8174, allocations: 23.88 kB / 0.6157 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006425/0.8238, allocations: 4.383 MB / 0.62 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002521/0.8264, allocations: 0.6751 MB / 0.6206 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/0.8276, allocations: 49.94 kB / 0.6207 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/0.8297, allocations: 71.5 kB / 0.6208 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002943/0.83, allocations: 150.2 kB / 0.6209 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001799/0.8302, allocations: 79.98 kB / 0.621 GB, free: 11.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.007587/0.8378, allocations: 3.211 MB / 0.6241 GB, free: 8.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.8378, allocations: 0 / 0.6241 GB, free: 8.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007837/0.8457, allocations: 1.101 MB / 0.6252 GB, free: 7.637 MB / 430.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.0006587/0.8463, allocations: 195.4 kB / 0.6254 GB, free: 7.441 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009799/0.8562, allocations: 5.198 MB / 0.6304 GB, free: 2.293 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/0.8562, allocations: 0 / 0.6304 GB, free: 2.293 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/0.8584, allocations: 1.238 MB / 0.6317 GB, free: 1.051 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005071/0.8635, allocations: 0.5685 MB / 0.6322 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/0.8866, allocations: 10.41 MB / 0.6424 GB, free: 5.895 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007151/0.8938, allocations: 3.771 MB / 0.6461 GB, free: 2.098 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006988/0.9008, allocations: 2.448 MB / 0.6484 GB, free: 15.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/0.9019, allocations: 319.4 kB / 0.6487 GB, free: 15.33 MB / 462.1 MB Notification: Performance of SimCode: time 1.703e-06/0.902, allocations: 0 / 0.6487 GB, free: 15.33 MB / 462.1 MB Notification: Performance of Templates: time 0.06824/0.9702, allocations: 29.82 MB / 0.6779 GB, free: 1.707 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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)