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-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.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.001188/0.001188, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001224/0.001224, allocations: 195.4 kB / 16.14 MB, free: 6.703 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 / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1892/0.1892, allocations: 9.102 MB / 299.1 MB, free: 1.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 64.14 kB / 361.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1215, allocations: 51.45 MB / 412.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.2349/0.3565, allocations: 14.33 MB / 427 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007399/0.3639, allocations: 3.764 MB / 430.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.3666, allocations: 51.97 kB / 430.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000781/0.3674, allocations: 250.5 kB / 431.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002562/0.37, allocations: 1.066 MB / 432.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.3703, allocations: 66.89 kB / 432.2 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002229/0.3725, allocations: 2.89 MB / 435.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.3728, allocations: 176.7 kB / 435.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006874/0.3735, allocations: 0.579 MB / 435.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001051/0.3746, allocations: 1.074 MB / 436.9 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.3748, allocations: 99.75 kB / 437 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.376, allocations: 0.7113 MB / 437.8 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006872/0.3767, allocations: 0.9317 MB / 438.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008643/0.3776, allocations: 1.213 MB / 439.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003053/0.3806, allocations: 4.018 MB / 443.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3806, allocations: 3.516 kB / 443.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3806, allocations: 0 / 443.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.481e-05/0.3807, allocations: 0 / 443.9 MB, free: 31.06 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: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.009465/0.3902, allocations: 3.592 MB / 447.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.3903, allocations: 10.03 kB / 447.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005903/0.3962, allocations: 1.703 MB / 449.2 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.3983, allocations: 1.166 MB / 450.4 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.75e-05/0.3984, allocations: 113.1 kB / 450.5 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003114/0.3987, allocations: 145.9 kB / 450.6 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009992/0.4087, allocations: 7.051 MB / 457.7 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.428e-05/0.4088, allocations: 21.06 kB / 457.7 MB, free: 25.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002536/0.4091, allocations: 72.22 kB / 457.8 MB, free: 25.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002555/0.4116, allocations: 1.722 MB / 459.5 MB, free: 24.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01271/0.4243, allocations: 6.468 MB / 466 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03396/0.4583, allocations: 20.95 MB / 486.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004023/0.4624, allocations: 1.934 MB / 488.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.4635, allocations: 0.5983 MB / 489.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004802/0.4683, allocations: 3.343 MB / 492.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.4683, allocations: 43.11 kB / 492.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 4.329e-06/0.4684, allocations: 0 / 492.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003812/0.4722, allocations: 1.822 MB / 494.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/0.4722, allocations: 59.97 kB / 494.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003449/0.4757, allocations: 2.196 MB / 496.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.029e-05/0.4758, allocations: 37.7 kB / 497 MB, free: 15.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/0.4772, allocations: 1.809 MB / 498.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004262/0.4777, allocations: 371.3 kB / 499.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001091/0.4788, allocations: 0.6506 MB / 499.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.4789, allocations: 301.1 kB / 0.4884 GB, free: 12.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.4807, allocations: 1.002 MB / 0.4893 GB, free: 11.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003228/0.484, allocations: 2.909 MB / 0.4922 GB, free: 7.738 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005227/0.4892, allocations: 4.177 MB / 0.4963 GB, free: 2.621 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.249e-05/0.4893, allocations: 20 kB / 0.4963 GB, free: 2.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007375/0.4967, allocations: 3.832 MB / 0.5 GB, free: 14.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.269e-05/0.4968, allocations: 36 kB / 0.5 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/0.4969, allocations: 68.03 kB / 0.5001 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000121/0.497, allocations: 96 kB / 0.5002 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002188/0.4992, allocations: 0.7058 MB / 0.5009 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001344/0.4994, allocations: 143.4 kB / 0.501 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002586/0.502, allocations: 467 kB / 0.5015 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000319/0.5023, allocations: 196 kB / 0.5017 GB, free: 13.07 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.002459/0.5048, allocations: 1.39 MB / 0.503 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004077/0.5052, allocations: 173.8 kB / 0.5032 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002417/0.5076, allocations: 1.194 MB / 0.5044 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/0.5077, allocations: 19.98 kB / 0.5044 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.5078, allocations: 4 kB / 0.5044 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.5078, allocations: 7.078 kB / 0.5044 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008543/0.5163, allocations: 3.94 MB / 0.5082 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.5163, allocations: 0 / 0.5082 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006382/0.517, allocations: 135.8 kB / 0.5084 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.499e-05/0.517, allocations: 8 kB / 0.5084 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-05/0.5171, allocations: 16 kB / 0.5084 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.161e-05/0.5171, allocations: 15.86 kB / 0.5084 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.5171, allocations: 4 kB / 0.5084 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002932/0.5201, allocations: 1.953 MB / 0.5103 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005934/0.5207, allocations: 262.8 kB / 0.5106 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004035/0.5211, allocations: 19.98 kB / 0.5106 GB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008265/0.5219, allocations: 35.91 kB / 0.5106 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.5221, allocations: 44.5 kB / 0.5107 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.056e-05/0.5221, allocations: 36.36 kB / 0.5107 GB, free: 3.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003121/0.5253, allocations: 1.416 MB / 0.5121 GB, free: 2.254 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5253, allocations: 0 / 0.5121 GB, free: 2.254 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00335/0.5286, allocations: 0.7042 MB / 0.5128 GB, free: 1.547 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.000474/0.5291, allocations: 163 kB / 0.5129 GB, free: 1.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004065/0.5332, allocations: 2.236 MB / 0.5151 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5332, allocations: 0 / 0.5151 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008105/0.534, allocations: 0.5241 MB / 0.5156 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002014/0.5361, allocations: 301.2 kB / 0.5159 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.5476, allocations: 6.594 MB / 0.5223 GB, free: 7.703 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003022/0.5507, allocations: 2.282 MB / 0.5246 GB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003027/0.5537, allocations: 0.9884 MB / 0.5255 GB, free: 4.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004591/0.5542, allocations: 139.4 kB / 0.5257 GB, free: 4.266 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5542, allocations: 0 / 0.5257 GB, free: 4.266 MB / 398.1 MB Notification: Performance of Templates: time 0.03828/0.5925, allocations: 18.04 MB / 0.5433 GB, free: 2.328 MB / 414.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)