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.001562/0.001562, allocations: 103.4 kB / 16.27 MB, free: 5.965 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.001703/0.001703, allocations: 191 kB / 17.2 MB, free: 5.59 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04742/0.04742, allocations: 9.107 MB / 300.2 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.91 kB / 362.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1815, allocations: 51.42 MB / 414 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.005492/0.187, allocations: 6.852 MB / 420.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003005/0.1901, allocations: 2.353 MB / 423.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003316/0.1904, allocations: 27.94 kB / 423.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004899/0.1909, allocations: 294.2 kB / 423.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.1925, allocations: 1.132 MB / 424.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.1927, allocations: 83.83 kB / 424.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.1939, allocations: 2.04 MB / 426.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.1942, allocations: 175 kB / 427 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000446/0.1946, allocations: 0.7042 MB / 427.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007839/0.1954, allocations: 1.059 MB / 428.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001956/0.1956, allocations: 188 kB / 428.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008108/0.1964, allocations: 0.7528 MB / 429.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000502/0.197, allocations: 1.009 MB / 430.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006508/0.1976, allocations: 1.293 MB / 432 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002221/0.1998, allocations: 4.14 MB / 436.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1999, allocations: 0 / 436.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1999, allocations: 0 / 436.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.55e-05/0.1999, allocations: 0 / 436.1 MB, free: 2.844 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.008102/0.208, allocations: 3.59 MB / 439.7 MB, free: 15.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.2081, allocations: 8.031 kB / 439.7 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007362/0.2154, allocations: 1.701 MB / 441.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.2178, allocations: 1.161 MB / 442.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.2179, allocations: 111.1 kB / 442.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006456/0.2186, allocations: 148.2 kB / 442.8 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.2297, allocations: 7.062 MB / 449.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.558e-05/0.2298, allocations: 15.88 kB / 449.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004292/0.2302, allocations: 67.89 kB / 450 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003025/0.2333, allocations: 1.722 MB / 451.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01233/0.2456, allocations: 6.466 MB / 458.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02972/0.2754, allocations: 20.96 MB / 479.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004401/0.2798, allocations: 1.934 MB / 481.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.2809, allocations: 0.5933 MB / 481.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004763/0.2856, allocations: 3.343 MB / 485 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.2857, allocations: 43.06 kB / 485 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 3.186e-06/0.2857, allocations: 0 / 485 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.004301/0.29, allocations: 1.823 MB / 486.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.2901, allocations: 59.97 kB / 486.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003624/0.2937, allocations: 2.184 MB / 489.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.2939, allocations: 37.7 kB / 489.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.2952, allocations: 1.813 MB / 491 MB, free: 10.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004665/0.2956, allocations: 379.2 kB / 491.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/0.2968, allocations: 0.6351 MB / 492 MB, free: 9.621 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2969, allocations: 309.1 kB / 492.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002166/0.2991, allocations: 1.006 MB / 493.3 MB, free: 8.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003004/0.3021, allocations: 2.909 MB / 496.2 MB, free: 4.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004911/0.307, allocations: 4.18 MB / 0.4886 GB, free: 15.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.332e-05/0.3071, allocations: 20 kB / 0.4886 GB, free: 15.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.00704/0.3141, allocations: 3.83 MB / 0.4924 GB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.049e-05/0.3142, allocations: 32 kB / 0.4924 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.3143, allocations: 71.94 kB / 0.4925 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001027/0.3145, allocations: 92.06 kB / 0.4926 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002296/0.3168, allocations: 0.7136 MB / 0.4933 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001204/0.3169, allocations: 139.4 kB / 0.4934 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/0.3194, allocations: 463 kB / 0.4938 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003766/0.3198, allocations: 200 kB / 0.494 GB, free: 9.789 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.002097/0.3219, allocations: 1.387 MB / 0.4954 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003341/0.3222, allocations: 173.8 kB / 0.4956 GB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.3245, allocations: 1.204 MB / 0.4967 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000116/0.3246, allocations: 19.98 kB / 0.4968 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.3246, allocations: 0 / 0.4968 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.3246, allocations: 7.984 kB / 0.4968 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007584/0.3322, allocations: 3.944 MB / 0.5006 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.3323, allocations: 0 / 0.5006 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006347/0.3329, allocations: 127.9 kB / 0.5007 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.3329, allocations: 4 kB / 0.5007 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.658e-05/0.333, allocations: 23.98 kB / 0.5008 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.916e-05/0.333, allocations: 11.88 kB / 0.5008 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.333, allocations: 4 kB / 0.5008 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.3358, allocations: 1.953 MB / 0.5027 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005092/0.3363, allocations: 266.6 kB / 0.5029 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.3366, allocations: 19.98 kB / 0.503 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006968/0.3373, allocations: 39.89 kB / 0.503 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.857e-05/0.3374, allocations: 48.5 kB / 0.503 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.669e-05/0.3375, allocations: 31.94 kB / 0.5031 GB, free: 372 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1615/0.4989, allocations: 1.412 MB / 0.5045 GB, free: 87.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.499, allocations: 0 / 0.5045 GB, free: 87.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002722/0.5017, allocations: 0.6969 MB / 0.5051 GB, free: 87.75 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.0003162/0.502, allocations: 160.3 kB / 0.5053 GB, free: 87.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004208/0.5063, allocations: 2.768 MB / 0.508 GB, free: 86.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/0.5063, allocations: 0 / 0.508 GB, free: 86.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008593/0.5072, allocations: 0.5273 MB / 0.5085 GB, free: 86.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.5088, allocations: 318.3 kB / 0.5088 GB, free: 86.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008368/0.5172, allocations: 5.672 MB / 0.5143 GB, free: 83.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001789/0.519, allocations: 2.287 MB / 0.5166 GB, free: 82.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005109/0.5195, allocations: 169.6 kB / 0.5167 GB, free: 82.81 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5195, allocations: 0 / 0.5167 GB, free: 82.81 MB / 382.1 MB Notification: Performance of Templates: time 0.03798/0.5575, allocations: 33.69 MB / 0.5496 GB, free: 52.02 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)