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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.005056/0.005056, allocations: 169.6 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 239 MB, free: 1.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008879/0.0008878, allocations: 98.12 kB / 290.2 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04257/0.04257, allocations: 8.949 MB / 350.3 MB, free: 2.047 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 6.719 kB / 413.1 MB, free: 88.63 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1148, allocations: 52.4 MB / 465.5 MB, free: 41.69 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4026/0.5175, allocations: 94.11 MB / 0.5465 GB, free: 16.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.5178, allocations: 102.8 kB / 0.5466 GB, free: 16.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2428/0.7606, allocations: 99.52 MB / 0.6438 GB, free: 5.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7607, allocations: 0 / 0.6438 GB, free: 5.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002248/0.7609, allocations: 95.98 kB / 0.6439 GB, free: 5.887 MB / 410.7 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.03465/0.7956, allocations: 5.345 MB / 0.6491 GB, free: 480 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.238e-05/0.7957, allocations: 8.031 kB / 0.6491 GB, free: 472 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01789/0.8136, allocations: 3.612 MB / 0.6527 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01171/0.8253, allocations: 2.642 MB / 0.6552 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006371/0.8261, allocations: 365.3 kB / 0.6556 GB, free: 9.781 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004282/0.8303, allocations: 475.7 kB / 0.656 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03729/0.8676, allocations: 13.55 MB / 0.6693 GB, free: 10.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002714/0.868, allocations: 71.34 kB / 0.6693 GB, free: 10.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001472/0.8695, allocations: 231.8 kB / 0.6696 GB, free: 10.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002489/0.872, allocations: 1.531 MB / 0.6711 GB, free: 8.754 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0314/0.9034, allocations: 11.98 MB / 0.6828 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3938/1.297, allocations: 55.71 MB / 0.7372 GB, free: 54.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01337/1.311, allocations: 3.85 MB / 0.7409 GB, free: 53.6 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01454/1.325, allocations: 7.623 MB / 0.7484 GB, free: 49.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/1.325, allocations: 51.03 kB / 0.7484 GB, free: 49.16 MB / 458.7 MB Notification: Performance of pre-optimization done (n=208): time 7.174e-06/1.325, allocations: 0 / 0.7484 GB, free: 49.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=226): time 0.02288/1.348, allocations: 11.47 MB / 0.7596 GB, free: 45.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/1.348, allocations: 159.8 kB / 0.7598 GB, free: 45.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005911/1.354, allocations: 4.565 MB / 0.7642 GB, free: 44.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002383/1.355, allocations: 55.97 kB / 0.7643 GB, free: 44.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002174/1.357, allocations: 3.91 MB / 0.7681 GB, free: 42.44 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007918/1.358, allocations: 0.8796 MB / 0.769 GB, free: 41.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002739/1.358, allocations: 157.7 kB / 0.7691 GB, free: 41.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003786/1.358, allocations: 0.6456 MB / 0.7697 GB, free: 41.63 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00338/1.362, allocations: 2.233 MB / 0.7719 GB, free: 41.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006411/1.368, allocations: 7.258 MB / 0.779 GB, free: 35.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006026/1.374, allocations: 4.022 MB / 0.7829 GB, free: 35.03 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001503/1.374, allocations: 54.31 kB / 0.783 GB, free: 35.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=1053) (initialization): time 0.01698/1.391, allocations: 9.162 MB / 0.7919 GB, free: 33.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002353/1.392, allocations: 87.09 kB / 0.792 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003393/1.392, allocations: 184.9 kB / 0.7922 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/1.392, allocations: 261 kB / 0.7924 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005977/1.398, allocations: 1.867 MB / 0.7943 GB, free: 32.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003003/1.399, allocations: 351 kB / 0.7946 GB, free: 32.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006622/1.405, allocations: 384.1 kB / 0.795 GB, free: 32.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001428/1.407, allocations: 0.4964 MB / 0.7955 GB, free: 32.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * 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 (1003): * Single equations (assignments): 996 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00589/1.413, allocations: 2.655 MB / 0.798 GB, free: 31.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/1.414, allocations: 420.6 kB / 0.7984 GB, free: 31.17 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004242/1.418, allocations: 2.054 MB / 0.8005 GB, free: 30.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000121/1.418, allocations: 44.39 kB / 0.8005 GB, free: 30.35 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/1.418, allocations: 3.953 kB / 0.8005 GB, free: 30.35 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/1.418, allocations: 13.7 kB / 0.8005 GB, free: 30.35 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01824/1.436, allocations: 8.345 MB / 0.8087 GB, free: 26.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/1.436, allocations: 17.5 kB / 0.8087 GB, free: 26.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/1.438, allocations: 329.7 kB / 0.809 GB, free: 26.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/1.438, allocations: 52.36 kB / 0.809 GB, free: 26.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/1.438, allocations: 66.86 kB / 0.8091 GB, free: 26.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008136/1.439, allocations: 1.303 MB / 0.8104 GB, free: 25.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-05/1.439, allocations: 25.25 kB / 0.8104 GB, free: 25.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006053/1.445, allocations: 7.02 MB / 0.8173 GB, free: 20.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/1.447, allocations: 0.5164 MB / 0.8178 GB, free: 19.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004567/1.447, allocations: 50.2 kB / 0.8178 GB, free: 19.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/1.449, allocations: 81.62 kB / 0.8179 GB, free: 19.67 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/1.449, allocations: 175 kB / 0.8181 GB, free: 19.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/1.449, allocations: 80.3 kB / 0.8181 GB, free: 19.61 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005171/1.454, allocations: 3.174 MB / 0.8212 GB, free: 18.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.454, allocations: 0 / 0.8212 GB, free: 18.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006968/1.461, allocations: 1.137 MB / 0.8223 GB, free: 17.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 74 * 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 (177): * Single equations (assignments): 169 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004702/1.462, allocations: 214.6 kB / 0.8225 GB, free: 17.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007728/1.469, allocations: 5.18 MB / 0.8276 GB, free: 12.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/1.469, allocations: 4 kB / 0.8276 GB, free: 12.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/1.471, allocations: 1.288 MB / 0.8289 GB, free: 11.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003467/1.475, allocations: 0.514 MB / 0.8294 GB, free: 10.96 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02191/1.497, allocations: 12.68 MB / 0.8418 GB, free: 15.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004989/1.502, allocations: 3.882 MB / 0.8455 GB, free: 12.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00644/1.508, allocations: 2.447 MB / 0.8479 GB, free: 10.98 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008634/1.509, allocations: 320.1 kB / 0.8482 GB, free: 10.68 MB / 474.7 MB Notification: Performance of SimCode: time 1.372e-06/1.509, allocations: 3.75 kB / 0.8482 GB, free: 10.68 MB / 474.7 MB Notification: Performance of Templates: time 0.3692/1.878, allocations: 35.43 MB / 0.8828 GB, free: 94.02 MB / 474.7 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)