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.005869/0.005869, allocations: 101 kB / 15.73 MB, free: 6.039 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.001198/0.001198, allocations: 198.5 kB / 16.68 MB, free: 5.973 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1976/0.1976, allocations: 9.114 MB / 299.7 MB, free: 1.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 59.89 kB / 414.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2651, allocations: 51.43 MB / 466.1 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01231/0.2775, allocations: 12.92 MB / 479 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008934/0.2865, allocations: 3.572 MB / 482.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003375/0.2899, allocations: 62 kB / 482.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.2917, allocations: 0.7551 MB / 483.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005456/0.2972, allocations: 2.035 MB / 485.4 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005973/0.2978, allocations: 146.9 kB / 485.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00587/0.3037, allocations: 4.115 MB / 489.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002785/0.3065, allocations: 1.975 MB / 491.7 MB, free: 436 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002939/0.3094, allocations: 1.406 MB / 493.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003337/0.3128, allocations: 2.022 MB / 495.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008285/0.3136, allocations: 319 kB / 495.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002142/0.3158, allocations: 0.8759 MB / 496.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.3175, allocations: 1.912 MB / 498.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002377/0.3198, allocations: 2.457 MB / 0.4889 GB, free: 9.484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008119/0.328, allocations: 7.645 MB / 0.4964 GB, free: 1.812 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.328, allocations: 0 / 0.4964 GB, free: 1.812 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.328, allocations: 4 kB / 0.4964 GB, free: 1.809 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002314/0.3283, allocations: 0 / 0.4964 GB, free: 1.809 MB / 366.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.02489/0.3532, allocations: 7.055 MB / 0.5033 GB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.3532, allocations: 12.03 kB / 0.5033 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.3653, allocations: 3.262 MB / 0.5065 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004827/0.3701, allocations: 2.074 MB / 0.5085 GB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.3703, allocations: 233.7 kB / 0.5087 GB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008398/0.3712, allocations: 307.7 kB / 0.509 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02138/0.3926, allocations: 13.45 MB / 0.5222 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.3927, allocations: 51.47 kB / 0.5222 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004948/0.3932, allocations: 159.8 kB / 0.5224 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004903/0.3981, allocations: 3.092 MB / 0.5254 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02462/0.4228, allocations: 11.94 MB / 0.537 GB, free: 7.148 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06521/0.488, allocations: 47.8 MB / 0.5837 GB, free: 6.07 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01222/0.5003, allocations: 3.783 MB / 0.5874 GB, free: 2.043 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002761/0.5031, allocations: 1.387 MB / 0.5888 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3105/0.8136, allocations: 9.192 MB / 0.5977 GB, free: 105.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.8137, allocations: 50.61 kB / 0.5978 GB, free: 105 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 5.61e-06/0.8137, allocations: 2.062 kB / 0.5978 GB, free: 105 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.02266/0.8364, allocations: 10.25 MB / 0.6078 GB, free: 100 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.8365, allocations: 150.1 kB / 0.6079 GB, free: 99.87 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007843/0.8443, allocations: 5.147 MB / 0.613 GB, free: 97.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002576/0.8446, allocations: 47.89 kB / 0.613 GB, free: 97.93 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002011/0.8466, allocations: 3.933 MB / 0.6168 GB, free: 94.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008532/0.8475, allocations: 0.8331 MB / 0.6177 GB, free: 94.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001819/0.8493, allocations: 1.599 MB / 0.6192 GB, free: 93.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.753e-05/0.8493, allocations: 301.1 kB / 0.6195 GB, free: 93.22 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003216/0.8526, allocations: 2.246 MB / 0.6217 GB, free: 92.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00515/0.8577, allocations: 7.319 MB / 0.6289 GB, free: 84.86 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008234/0.866, allocations: 10.4 MB / 0.639 GB, free: 75.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001703/0.8662, allocations: 51.97 kB / 0.6391 GB, free: 75.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01341/0.8796, allocations: 9.19 MB / 0.648 GB, free: 69.14 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.662e-05/0.8797, allocations: 80 kB / 0.6481 GB, free: 69.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001537/0.8799, allocations: 180 kB / 0.6483 GB, free: 68.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.88, allocations: 240 kB / 0.6485 GB, free: 68.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004999/0.885, allocations: 1.84 MB / 0.6503 GB, free: 66.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002232/0.8853, allocations: 354.6 kB / 0.6506 GB, free: 66.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006898/0.8922, allocations: 375.9 kB / 0.651 GB, free: 66.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/0.8937, allocations: 0.5015 MB / 0.6515 GB, free: 65.6 MB / 462.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.005326/0.899, allocations: 2.645 MB / 0.6541 GB, free: 62.94 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/0.9002, allocations: 422.5 kB / 0.6545 GB, free: 62.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003126/0.9033, allocations: 1.975 MB / 0.6564 GB, free: 60.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/0.9034, allocations: 31.98 kB / 0.6564 GB, free: 60.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.9035, allocations: 4 kB / 0.6564 GB, free: 60.51 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.9035, allocations: 7.969 kB / 0.6564 GB, free: 60.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.9138, allocations: 7.74 MB / 0.664 GB, free: 52.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/0.9139, allocations: 19.94 kB / 0.664 GB, free: 52.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.9149, allocations: 307.4 kB / 0.6643 GB, free: 52.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001295/0.915, allocations: 36.84 kB / 0.6644 GB, free: 52.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.179e-05/0.9151, allocations: 51.81 kB / 0.6644 GB, free: 52.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006871/0.9158, allocations: 1.391 MB / 0.6658 GB, free: 50.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/0.9159, allocations: 24.09 kB / 0.6658 GB, free: 50.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004206/0.9201, allocations: 4.376 MB / 0.6701 GB, free: 46.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/0.9215, allocations: 0.6792 MB / 0.6707 GB, free: 45.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000462/0.9219, allocations: 55.81 kB / 0.6708 GB, free: 45.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.9233, allocations: 71.88 kB / 0.6708 GB, free: 45.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.9235, allocations: 144.2 kB / 0.671 GB, free: 45.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.9236, allocations: 79.92 kB / 0.6711 GB, free: 44.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003864/0.9275, allocations: 3.214 MB / 0.6742 GB, free: 41.78 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9275, allocations: 0 / 0.6742 GB, free: 41.78 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005915/0.9334, allocations: 1.105 MB / 0.6753 GB, free: 40.68 MB / 462.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.00035/0.9338, allocations: 190.8 kB / 0.6755 GB, free: 40.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006336/0.9401, allocations: 5.209 MB / 0.6805 GB, free: 35.33 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.906e-06/0.9401, allocations: 4 kB / 0.6805 GB, free: 35.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001423/0.9416, allocations: 1.233 MB / 0.6818 GB, free: 34.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/0.9447, allocations: 0.5594 MB / 0.6823 GB, free: 33.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.9586, allocations: 10.43 MB / 0.6925 GB, free: 22.92 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003162/0.9618, allocations: 3.763 MB / 0.6962 GB, free: 19.13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004718/0.9665, allocations: 2.452 MB / 0.6985 GB, free: 16.67 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.9672, allocations: 311.4 kB / 0.6988 GB, free: 16.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.9672, allocations: 0 / 0.6988 GB, free: 16.36 MB / 462.1 MB Notification: Performance of Templates: time 0.0616/1.029, allocations: 32.68 MB / 0.7308 GB, free: 15.94 MB / 494.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)