Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.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.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 110.2 kB / 16.37 MB, free: 6.473 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.001105/0.001105, allocations: 194.2 kB / 17.31 MB, free: 5.824 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04325/0.04325, allocations: 9.118 MB / 300.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 55.91 kB / 363.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2186, allocations: 51.42 MB / 414.8 MB, free: 24.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.006267/0.2249, allocations: 6.854 MB / 421.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003966/0.2289, allocations: 2.368 MB / 424 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004629/0.2294, allocations: 27.94 kB / 424.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005699/0.2299, allocations: 282.2 kB / 424.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001594/0.2316, allocations: 1.128 MB / 425.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.2318, allocations: 91.77 kB / 425.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.2331, allocations: 2.036 MB / 427.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.2334, allocations: 183 kB / 427.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.234, allocations: 0.7042 MB / 428.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008446/0.2349, allocations: 1.063 MB / 429.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.2351, allocations: 184 kB / 429.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009029/0.236, allocations: 0.7489 MB / 430.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005471/0.2365, allocations: 1.021 MB / 431.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006426/0.2372, allocations: 1.278 MB / 432.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002371/0.2396, allocations: 4.333 MB / 437.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2396, allocations: 0 / 437.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2396, allocations: 0 / 437.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.517e-05/0.2396, allocations: 0 / 437.1 MB, free: 2.543 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.005917/0.2456, allocations: 3.597 MB / 440.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2456, allocations: 8.031 kB / 440.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005834/0.2515, allocations: 1.698 MB / 442.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002494/0.254, allocations: 1.158 MB / 443.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.2541, allocations: 115.1 kB / 443.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003878/0.2545, allocations: 148.2 kB / 443.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.2661, allocations: 7.054 MB / 450.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.231e-05/0.2662, allocations: 15.88 kB / 450.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/0.2665, allocations: 71.88 kB / 450.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003/0.2695, allocations: 1.726 MB / 452.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/0.2815, allocations: 6.466 MB / 459.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02878/0.3104, allocations: 20.89 MB / 480 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00398/0.3144, allocations: 1.937 MB / 482 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009202/0.3153, allocations: 0.5972 MB / 482.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004927/0.3203, allocations: 3.343 MB / 485.9 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.3203, allocations: 39.12 kB / 485.9 MB, free: 376 kB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.835e-06/0.3203, allocations: 0 / 485.9 MB, free: 376 kB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003791/0.3241, allocations: 1.811 MB / 487.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.3242, allocations: 59.97 kB / 487.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003092/0.3273, allocations: 2.188 MB / 490 MB, free: 12.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.134e-05/0.3274, allocations: 37.7 kB / 490 MB, free: 12.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/0.3286, allocations: 1.824 MB / 491.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003514/0.329, allocations: 375.2 kB / 492.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007924/0.3298, allocations: 0.6351 MB / 492.9 MB, free: 9.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3299, allocations: 305.1 kB / 493.2 MB, free: 9.082 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.3314, allocations: 1.002 MB / 494.2 MB, free: 8.078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002733/0.3341, allocations: 2.909 MB / 497.1 MB, free: 4.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004873/0.339, allocations: 4.19 MB / 0.4895 GB, free: 15.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.212e-05/0.3391, allocations: 20 kB / 0.4895 GB, free: 15.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006493/0.3456, allocations: 3.822 MB / 0.4933 GB, free: 11.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.888e-05/0.3457, allocations: 35.98 kB / 0.4933 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.327e-05/0.3458, allocations: 71.94 kB / 0.4934 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.457e-05/0.3459, allocations: 88 kB / 0.4935 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/0.3479, allocations: 0.7138 MB / 0.4942 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.595e-05/0.348, allocations: 131.7 kB / 0.4943 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/0.3503, allocations: 475.5 kB / 0.4947 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/0.3506, allocations: 196 kB / 0.4949 GB, free: 9.559 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (387): * Single equations (assignments): 383 * Array equations: 4 * 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.001956/0.3526, allocations: 1.398 MB / 0.4963 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.3528, allocations: 169.8 kB / 0.4964 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.3547, allocations: 1.201 MB / 0.4976 GB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-05/0.3548, allocations: 20.05 kB / 0.4976 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3548, allocations: 4 kB / 0.4976 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3548, allocations: 3.984 kB / 0.4976 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005785/0.3606, allocations: 3.939 MB / 0.5015 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3607, allocations: 4 kB / 0.5015 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005793/0.3612, allocations: 131.8 kB / 0.5016 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.007e-05/0.3613, allocations: 7.984 kB / 0.5016 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.138e-05/0.3613, allocations: 16.28 kB / 0.5016 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/0.3613, allocations: 11.94 kB / 0.5017 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3614, allocations: 4 kB / 0.5017 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002478/0.3638, allocations: 1.95 MB / 0.5036 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004767/0.3643, allocations: 274.6 kB / 0.5038 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/0.3645, allocations: 12 kB / 0.5038 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005378/0.3651, allocations: 39.91 kB / 0.5039 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.3651, allocations: 48.44 kB / 0.5039 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.71e-05/0.3652, allocations: 35.97 kB / 0.504 GB, free: 132 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2061/0.5713, allocations: 1.41 MB / 0.5053 GB, free: 87.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.12e-07/0.5714, allocations: 0.9688 kB / 0.5053 GB, free: 87.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00285/0.5742, allocations: 0.694 MB / 0.506 GB, free: 87.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.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 (69): * Single equations (assignments): 65 * Array equations: 4 * 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 Backend phase and start with SimCode phase: time 0.0004527/0.5747, allocations: 160.2 kB / 0.5062 GB, free: 87.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004209/0.5789, allocations: 2.253 MB / 0.5084 GB, free: 86.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.5789, allocations: 3.906 kB / 0.5084 GB, free: 86.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009392/0.5799, allocations: 0.5188 MB / 0.5089 GB, free: 86.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.5816, allocations: 321.3 kB / 0.5092 GB, free: 86.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008351/0.59, allocations: 5.269 MB / 0.5143 GB, free: 84.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001861/0.5919, allocations: 2.285 MB / 0.5166 GB, free: 83.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001977/0.5939, allocations: 0.9778 MB / 0.5175 GB, free: 82.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003276/0.5942, allocations: 130.5 kB / 0.5176 GB, free: 82.96 MB / 382.1 MB Notification: Performance of SimCode: time 1.994e-06/0.5942, allocations: 0 / 0.5176 GB, free: 82.96 MB / 382.1 MB Notification: Performance of Templates: time 0.03069/0.6249, allocations: 17.17 MB / 0.5344 GB, free: 68.28 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & ./PlanarMechanics_PlanarMechanics.Examples.CounterSpin -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)