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.00103/0.00103, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.007124/0.007124, allocations: 171.2 kB / 16.26 MB, free: 6.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.466/1.466, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1832/0.1832, allocations: 9.115 MB / 300.5 MB, free: 2.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003239, allocations: 12 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 52.44 MB / 416.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2724/0.3777, allocations: 30.62 MB / 446.8 MB, free: 24.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01769/0.3955, allocations: 7.029 MB / 453.8 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008759/0.4043, allocations: 113.2 kB / 453.9 MB, free: 21.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00236/0.4067, allocations: 0.5115 MB / 454.4 MB, free: 20.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006945/0.4136, allocations: 1.92 MB / 456.3 MB, free: 20.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009217/0.4146, allocations: 127.3 kB / 456.5 MB, free: 19.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008525/0.4231, allocations: 5.711 MB / 462.2 MB, free: 18.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003432/0.4266, allocations: 1.924 MB / 464.1 MB, free: 17.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.4294, allocations: 1.193 MB / 465.3 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003358/0.4328, allocations: 2.082 MB / 467.4 MB, free: 16.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008454/0.4336, allocations: 185.7 kB / 467.6 MB, free: 16.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002085/0.4357, allocations: 0.7877 MB / 468.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002208/0.4379, allocations: 1.822 MB / 470.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004693/0.4426, allocations: 2.371 MB / 472.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.4535, allocations: 6.922 MB / 479.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4535, allocations: 3.938 kB / 479.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4536, allocations: 4.969 kB / 479.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003418/0.4539, allocations: 0 / 479.5 MB, free: 11.44 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.02689/0.4808, allocations: 6.007 MB / 485.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/0.4809, allocations: 10.03 kB / 485.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01404/0.4949, allocations: 3.35 MB / 488.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007395/0.5024, allocations: 2.061 MB / 490.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000386/0.5028, allocations: 234.9 kB / 491.1 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002183/0.505, allocations: 305.6 kB / 491.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03058/0.5356, allocations: 13.45 MB / 0.4931 GB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001489/0.5358, allocations: 51.53 kB / 0.4931 GB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006219/0.5364, allocations: 151.8 kB / 0.4932 GB, free: 9.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005678/0.5421, allocations: 3.1 MB / 0.4963 GB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02949/0.5716, allocations: 11.94 MB / 0.5079 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07401/0.6457, allocations: 47.98 MB / 0.5548 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01245/0.6582, allocations: 3.782 MB / 0.5585 GB, free: 5.391 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00268/0.6609, allocations: 1.392 MB / 0.5598 GB, free: 3.988 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01598/0.6769, allocations: 9.225 MB / 0.5688 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.6769, allocations: 43.56 kB / 0.5689 GB, free: 9.965 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 6.552e-06/0.677, allocations: 4 kB / 0.5689 GB, free: 9.961 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.3319/1.009, allocations: 10.25 MB / 0.5789 GB, free: 102.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/1.009, allocations: 150.5 kB / 0.579 GB, free: 102.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/1.02, allocations: 5.144 MB / 0.5841 GB, free: 102.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004841/1.021, allocations: 49.95 kB / 0.5841 GB, free: 102.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00315/1.024, allocations: 3.933 MB / 0.588 GB, free: 100.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001398/1.025, allocations: 0.8344 MB / 0.5888 GB, free: 99.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001091/1.026, allocations: 0.6502 MB / 0.5894 GB, free: 99.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.682e-05/1.026, allocations: 304.1 kB / 0.5897 GB, free: 99.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004227/1.031, allocations: 2.242 MB / 0.5919 GB, free: 99.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007399/1.038, allocations: 7.318 MB / 0.599 GB, free: 92.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/1.051, allocations: 10.39 MB / 0.6092 GB, free: 83.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003019/1.051, allocations: 54.5 kB / 0.6092 GB, free: 83.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.02172/1.073, allocations: 9.182 MB / 0.6182 GB, free: 80.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003499/1.073, allocations: 82.44 kB / 0.6183 GB, free: 80.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006183/1.074, allocations: 183.2 kB / 0.6184 GB, free: 80.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005632/1.074, allocations: 237.7 kB / 0.6187 GB, free: 80.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007443/1.082, allocations: 1.848 MB / 0.6205 GB, free: 80.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007397/1.082, allocations: 349.9 kB / 0.6208 GB, free: 80.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007834/1.09, allocations: 374.2 kB / 0.6212 GB, free: 80.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002366/1.093, allocations: 0.4939 MB / 0.6217 GB, free: 80.15 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.008722/1.101, allocations: 2.659 MB / 0.6242 GB, free: 78.85 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001362/1.103, allocations: 420.8 kB / 0.6246 GB, free: 78.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005261/1.108, allocations: 1.957 MB / 0.6266 GB, free: 77.87 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001762/1.108, allocations: 39.09 kB / 0.6266 GB, free: 77.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.753e-05/1.108, allocations: 1.219 kB / 0.6266 GB, free: 77.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.405e-05/1.108, allocations: 14.92 kB / 0.6266 GB, free: 77.87 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/1.124, allocations: 7.764 MB / 0.6342 GB, free: 74.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-05/1.124, allocations: 12.03 kB / 0.6342 GB, free: 74.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/1.125, allocations: 301.8 kB / 0.6345 GB, free: 74.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001435/1.125, allocations: 45.72 kB / 0.6345 GB, free: 74.72 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/1.125, allocations: 51.08 kB / 0.6346 GB, free: 74.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007184/1.126, allocations: 1.29 MB / 0.6358 GB, free: 73.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.351e-05/1.126, allocations: 23.33 kB / 0.6359 GB, free: 73.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004785/1.131, allocations: 4.386 MB / 0.6402 GB, free: 70.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/1.132, allocations: 0.6937 MB / 0.6408 GB, free: 70.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003964/1.133, allocations: 48.27 kB / 0.6409 GB, free: 70.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/1.134, allocations: 72.61 kB / 0.6409 GB, free: 69.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/1.134, allocations: 152.9 kB / 0.6411 GB, free: 69.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/1.134, allocations: 76.64 kB / 0.6412 GB, free: 69.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004572/1.139, allocations: 3.214 MB / 0.6443 GB, free: 67.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.139, allocations: 7.938 kB / 0.6443 GB, free: 67.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00707/1.146, allocations: 1.098 MB / 0.6454 GB, free: 66.02 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.0004847/1.147, allocations: 189.9 kB / 0.6456 GB, free: 65.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008007/1.155, allocations: 5.158 MB / 0.6506 GB, free: 61.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/1.155, allocations: 0 / 0.6506 GB, free: 61.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/1.156, allocations: 1.239 MB / 0.6518 GB, free: 60.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01141/1.168, allocations: 0.5446 MB / 0.6523 GB, free: 59.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/1.187, allocations: 12.99 MB / 0.665 GB, free: 47.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003791/1.191, allocations: 3.769 MB / 0.6687 GB, free: 43.53 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005713/1.197, allocations: 2.457 MB / 0.6711 GB, free: 41.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008302/1.198, allocations: 315.4 kB / 0.6714 GB, free: 40.76 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/1.198, allocations: 0 / 0.6714 GB, free: 40.76 MB / 446.1 MB Notification: Performance of Templates: time 0.06517/1.263, allocations: 35.47 MB / 0.7061 GB, free: 5.59 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)