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.001242/0.001242, allocations: 103 kB / 16.36 MB, free: 5.879 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.00116/0.00116, allocations: 196 kB / 17.3 MB, free: 5.52 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0798/0.0798, allocations: 9.126 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 59.91 kB / 363.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1976, allocations: 51.42 MB / 414.8 MB, free: 24.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.005561/0.2032, allocations: 6.853 MB / 421.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00356/0.2067, allocations: 2.357 MB / 424 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004798/0.2072, allocations: 27.94 kB / 424 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005139/0.2078, allocations: 286.2 kB / 424.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001776/0.2096, allocations: 1.136 MB / 425.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.2098, allocations: 87.78 kB / 425.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00148/0.2113, allocations: 2.034 MB / 427.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.2116, allocations: 187 kB / 427.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006072/0.2122, allocations: 0.7042 MB / 428.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009322/0.2131, allocations: 1.067 MB / 429.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002296/0.2134, allocations: 188 kB / 429.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009052/0.2143, allocations: 0.745 MB / 430.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000567/0.2149, allocations: 1.017 MB / 431.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007081/0.2156, allocations: 1.289 MB / 432.8 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002826/0.2184, allocations: 4.317 MB / 437.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2184, allocations: 0 / 437.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2184, allocations: 4 kB / 437.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.267e-05/0.2185, allocations: 0 / 437.1 MB, free: 2.484 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.006397/0.2249, allocations: 3.601 MB / 440.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.225, allocations: 8.031 kB / 440.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006069/0.231, allocations: 1.705 MB / 442.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002631/0.2337, allocations: 1.158 MB / 443.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.2338, allocations: 111 kB / 443.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005141/0.2344, allocations: 148.2 kB / 443.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01604/0.2504, allocations: 7.058 MB / 450.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.442e-05/0.2505, allocations: 15.88 kB / 450.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003665/0.2509, allocations: 71.88 kB / 450.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004875/0.2558, allocations: 1.726 MB / 452.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02161/0.2775, allocations: 6.466 MB / 459.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04883/0.3263, allocations: 20.88 MB / 480 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004017/0.3304, allocations: 1.939 MB / 482 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000948/0.3314, allocations: 0.5972 MB / 482.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0049/0.3363, allocations: 3.342 MB / 485.9 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.3363, allocations: 39.12 kB / 485.9 MB, free: 316 kB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.775e-06/0.3364, allocations: 0 / 485.9 MB, free: 316 kB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.004215/0.3406, allocations: 1.819 MB / 487.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.3406, allocations: 63.95 kB / 487.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00394/0.3446, allocations: 2.184 MB / 490 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.129e-05/0.3447, allocations: 37.7 kB / 490 MB, free: 12.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/0.3462, allocations: 1.817 MB / 491.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003944/0.3466, allocations: 375.2 kB / 492.2 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.3476, allocations: 0.6429 MB / 492.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3477, allocations: 305.1 kB / 493.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.3495, allocations: 1.006 MB / 494.2 MB, free: 8.008 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00299/0.3525, allocations: 2.905 MB / 497.1 MB, free: 4.156 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004676/0.3572, allocations: 4.182 MB / 0.4895 GB, free: 15.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.521e-05/0.3572, allocations: 20 kB / 0.4895 GB, free: 15.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006268/0.3635, allocations: 3.828 MB / 0.4933 GB, free: 11.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.139e-05/0.3636, allocations: 36.94 kB / 0.4933 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.079e-05/0.3637, allocations: 67.94 kB / 0.4934 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.333e-05/0.3638, allocations: 92 kB / 0.4935 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002099/0.3659, allocations: 0.7177 MB / 0.4942 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.793e-05/0.366, allocations: 135.5 kB / 0.4943 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/0.3682, allocations: 459.1 kB / 0.4947 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002646/0.3684, allocations: 192 kB / 0.4949 GB, free: 9.504 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.001781/0.3702, allocations: 1.398 MB / 0.4963 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.3705, allocations: 169.8 kB / 0.4964 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/0.3725, allocations: 1.201 MB / 0.4976 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-05/0.3726, allocations: 19.98 kB / 0.4976 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.3726, allocations: 7.984 kB / 0.4976 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.3726, allocations: 3.938 kB / 0.4976 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006959/0.3796, allocations: 3.939 MB / 0.5015 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3796, allocations: 4.281 kB / 0.5015 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006045/0.3802, allocations: 139.9 kB / 0.5016 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.3803, allocations: 4 kB / 0.5016 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.823e-05/0.3803, allocations: 19.98 kB / 0.5016 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.028e-05/0.3803, allocations: 11.94 kB / 0.5017 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.3804, allocations: 0 / 0.5017 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002693/0.3831, allocations: 1.954 MB / 0.5036 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004841/0.3836, allocations: 270.6 kB / 0.5038 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/0.3838, allocations: 16 kB / 0.5038 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005995/0.3844, allocations: 43.88 kB / 0.5039 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.294e-05/0.3845, allocations: 40.45 kB / 0.5039 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.28e-05/0.3846, allocations: 35.98 kB / 0.5039 GB, free: 68 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1743/0.5588, allocations: 1.415 MB / 0.5053 GB, free: 87.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5589, allocations: 0 / 0.5053 GB, free: 87.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002456/0.5613, allocations: 0.695 MB / 0.506 GB, free: 87.64 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.0003135/0.5617, allocations: 154.5 kB / 0.5062 GB, free: 87.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003274/0.5649, allocations: 2.252 MB / 0.5084 GB, free: 86.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.565, allocations: 0 / 0.5084 GB, free: 86.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007759/0.5658, allocations: 0.5262 MB / 0.5089 GB, free: 86.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.5673, allocations: 315.6 kB / 0.5092 GB, free: 86.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009726/0.5771, allocations: 5.271 MB / 0.5143 GB, free: 84.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002277/0.5794, allocations: 2.283 MB / 0.5165 GB, free: 83.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002142/0.5816, allocations: 0.972 MB / 0.5175 GB, free: 82.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003337/0.5819, allocations: 139.3 kB / 0.5176 GB, free: 82.94 MB / 382.1 MB Notification: Performance of SimCode: time 1.332e-06/0.5819, allocations: 0 / 0.5176 GB, free: 82.94 MB / 382.1 MB Notification: Performance of Templates: time 0.02766/0.6096, allocations: 17.18 MB / 0.5344 GB, free: 68.15 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 gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)