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.007445/0.007445, allocations: 100.8 kB / 15.73 MB, free: 6.051 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.00131/0.001311, allocations: 182.6 kB / 16.67 MB, free: 5.977 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.479/1.479, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2018/0.2018, allocations: 9.117 MB / 299.6 MB, free: 1.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 60.09 kB / 414.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3226, allocations: 51.44 MB / 466.1 MB, free: 18.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.009316/0.332, allocations: 6.847 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006817/0.3389, allocations: 2.352 MB / 475.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002202/0.3411, allocations: 24.38 kB / 475.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009091/0.3421, allocations: 296.8 kB / 475.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003907/0.346, allocations: 1.157 MB / 476.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.3464, allocations: 79.22 kB / 476.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003149/0.3495, allocations: 2.041 MB / 478.9 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004176/0.35, allocations: 195.5 kB / 479.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.3515, allocations: 0.7031 MB / 479.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001524/0.353, allocations: 1.058 MB / 480.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004379/0.3535, allocations: 187.3 kB / 481 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001669/0.3552, allocations: 0.7541 MB / 481.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009453/0.3561, allocations: 1.012 MB / 482.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.3572, allocations: 1.285 MB / 484.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004972/0.3621, allocations: 4.342 MB / 488.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.3622, allocations: 0 / 488.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.3622, allocations: 3.938 kB / 488.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001125/0.3623, allocations: 0 / 488.4 MB, free: 3.758 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.008778/0.3711, allocations: 3.585 MB / 492 MB, free: 1.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3711, allocations: 14.06 kB / 492 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006222/0.3774, allocations: 1.7 MB / 493.7 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.3802, allocations: 1.165 MB / 494.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.3803, allocations: 111.1 kB / 495 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003835/0.3807, allocations: 152 kB / 495.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.3917, allocations: 7.054 MB / 0.4904 GB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.952e-05/0.3918, allocations: 15.88 kB / 0.4904 GB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/0.392, allocations: 75.88 kB / 0.4905 GB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002731/0.3948, allocations: 1.722 MB / 0.4922 GB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01267/0.4075, allocations: 6.462 MB / 0.4985 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0331/0.4406, allocations: 20.89 MB / 0.5189 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004146/0.4448, allocations: 1.936 MB / 0.5208 GB, free: 7.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009348/0.4458, allocations: 0.6011 MB / 0.5214 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005254/0.4511, allocations: 3.34 MB / 0.5246 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.4511, allocations: 39.12 kB / 0.5247 GB, free: 3.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 5.08e-06/0.4511, allocations: 0 / 0.5247 GB, free: 3.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.00401/0.4551, allocations: 1.818 MB / 0.5264 GB, free: 1.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.4552, allocations: 55.97 kB / 0.5265 GB, free: 1.762 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003176/0.4584, allocations: 2.196 MB / 0.5286 GB, free: 15.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.602e-05/0.4585, allocations: 37.7 kB / 0.5287 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.4597, allocations: 1.813 MB / 0.5304 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003449/0.4601, allocations: 375.2 kB / 0.5308 GB, free: 13.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008506/0.4609, allocations: 0.639 MB / 0.5314 GB, free: 12.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.461, allocations: 301.1 kB / 0.5317 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.4626, allocations: 1.006 MB / 0.5327 GB, free: 11.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002969/0.4656, allocations: 2.913 MB / 0.5355 GB, free: 7.496 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005523/0.4711, allocations: 4.193 MB / 0.5396 GB, free: 2.367 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-05/0.4712, allocations: 20 kB / 0.5396 GB, free: 2.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007045/0.4783, allocations: 3.827 MB / 0.5434 GB, free: 14.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.106e-05/0.4784, allocations: 32 kB / 0.5434 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.431e-05/0.4785, allocations: 71.94 kB / 0.5435 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.928e-05/0.4785, allocations: 88 kB / 0.5436 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002102/0.4807, allocations: 0.7096 MB / 0.5443 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001215/0.4808, allocations: 132 kB / 0.5444 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/0.4836, allocations: 475 kB / 0.5448 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003057/0.4839, allocations: 192 kB / 0.545 GB, free: 12.83 MB / 430.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.002938/0.4869, allocations: 1.395 MB / 0.5464 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000389/0.4873, allocations: 173.8 kB / 0.5466 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.4897, allocations: 1.197 MB / 0.5477 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001075/0.4898, allocations: 23.97 kB / 0.5477 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.4898, allocations: 0 / 0.5477 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.4898, allocations: 3.984 kB / 0.5477 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007716/0.4976, allocations: 3.931 MB / 0.5516 GB, free: 6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.4976, allocations: 4 kB / 0.5516 GB, free: 5.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006022/0.4982, allocations: 139.8 kB / 0.5517 GB, free: 5.859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.4982, allocations: 4 kB / 0.5517 GB, free: 5.855 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-05/0.4983, allocations: 20.33 kB / 0.5517 GB, free: 5.836 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.897e-06/0.4983, allocations: 7.938 kB / 0.5518 GB, free: 5.828 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.64e-05/0.4983, allocations: 11.92 kB / 0.5518 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002678/0.501, allocations: 1.95 MB / 0.5537 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006339/0.5017, allocations: 274.6 kB / 0.5539 GB, free: 3.535 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.5019, allocations: 16 kB / 0.5539 GB, free: 3.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/0.5025, allocations: 39.91 kB / 0.554 GB, free: 3.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/0.5026, allocations: 44.5 kB / 0.554 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.945e-05/0.5026, allocations: 31.98 kB / 0.5541 GB, free: 3.406 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002207/0.5049, allocations: 1.412 MB / 0.5554 GB, free: 2.004 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5049, allocations: 384 / 0.5554 GB, free: 2.004 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002958/0.5078, allocations: 0.7003 MB / 0.5561 GB, free: 1.301 MB / 430.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.0003797/0.5082, allocations: 163 kB / 0.5563 GB, free: 1.129 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003855/0.5121, allocations: 2.251 MB / 0.5585 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5121, allocations: 1.438 kB / 0.5585 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007495/0.5129, allocations: 0.5271 MB / 0.559 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.5145, allocations: 327.2 kB / 0.5593 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009037/0.5235, allocations: 5.251 MB / 0.5644 GB, free: 8.734 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002243/0.5258, allocations: 2.281 MB / 0.5667 GB, free: 6.422 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002261/0.5281, allocations: 0.9694 MB / 0.5676 GB, free: 5.449 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.5284, allocations: 135.4 kB / 0.5677 GB, free: 5.316 MB / 446.1 MB Notification: Performance of SimCode: time 2.134e-06/0.5284, allocations: 4 kB / 0.5677 GB, free: 5.312 MB / 446.1 MB Notification: Performance of Templates: time 0.03697/0.5654, allocations: 18.32 MB / 0.5856 GB, free: 3.074 MB / 462.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)