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.001387/0.001387, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001499/0.001499, allocations: 193.4 kB / 16.25 MB, free: 6.621 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.39/1.39, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1671/0.1671, allocations: 9.11 MB / 299.2 MB, free: 1.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 67.91 kB / 361.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1414, allocations: 51.43 MB / 412.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.2243/0.3658, allocations: 14.33 MB / 427.2 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006778/0.3726, allocations: 3.733 MB / 430.9 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002325/0.375, allocations: 52.75 kB / 431 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006431/0.3756, allocations: 241.6 kB / 431.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002275/0.378, allocations: 1.062 MB / 432.3 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002183/0.3782, allocations: 69.91 kB / 432.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001579/0.3798, allocations: 2.049 MB / 434.4 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.3801, allocations: 178.5 kB / 434.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005723/0.3807, allocations: 0.7019 MB / 435.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009434/0.3816, allocations: 1.153 MB / 436.4 MB, free: 33.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002216/0.3819, allocations: 189.3 kB / 436.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.3829, allocations: 0.7634 MB / 437.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006941/0.3836, allocations: 1.022 MB / 438.4 MB, free: 33.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007746/0.3844, allocations: 1.298 MB / 439.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002984/0.3874, allocations: 4.15 MB / 443.9 MB, free: 30.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3874, allocations: 0 / 443.9 MB, free: 30.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3874, allocations: 2.625 kB / 443.9 MB, free: 30.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-05/0.3874, allocations: 0 / 443.9 MB, free: 30.56 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.00657/0.394, allocations: 3.604 MB / 447.5 MB, free: 28.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3941, allocations: 12.47 kB / 447.5 MB, free: 28.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005986/0.4001, allocations: 1.693 MB / 449.2 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.402, allocations: 1.164 MB / 450.3 MB, free: 27.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.232e-05/0.4021, allocations: 120.6 kB / 450.5 MB, free: 27.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/0.4024, allocations: 143.8 kB / 450.6 MB, free: 27.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00919/0.4116, allocations: 7.052 MB / 457.6 MB, free: 24.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-05/0.4117, allocations: 16.88 kB / 457.7 MB, free: 24.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002527/0.412, allocations: 74.55 kB / 457.7 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002833/0.4148, allocations: 1.723 MB / 459.5 MB, free: 24.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0132/0.428, allocations: 6.466 MB / 465.9 MB, free: 21.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02651/0.4546, allocations: 20.97 MB / 486.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003666/0.4583, allocations: 1.927 MB / 488.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007698/0.4591, allocations: 0.5979 MB / 489.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003883/0.4629, allocations: 3.346 MB / 492.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.463, allocations: 39.12 kB / 492.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 3.286e-06/0.463, allocations: 0 / 492.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003424/0.4664, allocations: 1.811 MB / 494.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.4665, allocations: 63.97 kB / 494.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/0.469, allocations: 2.196 MB / 496.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.492e-05/0.469, allocations: 41.61 kB / 496.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00118/0.4702, allocations: 1.813 MB / 498.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002935/0.4705, allocations: 371.2 kB / 499.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008514/0.4714, allocations: 0.6428 MB / 499.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.4715, allocations: 305.1 kB / 0.4883 GB, free: 12.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.473, allocations: 1.006 MB / 0.4893 GB, free: 11.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002996/0.476, allocations: 2.901 MB / 0.4921 GB, free: 7.656 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004745/0.4808, allocations: 4.19 MB / 0.4962 GB, free: 2.527 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-05/0.4808, allocations: 20 kB / 0.4962 GB, free: 2.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006371/0.4872, allocations: 3.819 MB / 0.5 GB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.104e-05/0.4873, allocations: 36 kB / 0.5 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.125e-05/0.4874, allocations: 68.31 kB / 0.5001 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001657/0.4875, allocations: 92 kB / 0.5002 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/0.4897, allocations: 0.7124 MB / 0.5009 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002441/0.49, allocations: 136 kB / 0.501 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/0.4925, allocations: 474.9 kB / 0.5014 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002594/0.4927, allocations: 196 kB / 0.5016 GB, free: 12.99 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.002337/0.4951, allocations: 1.394 MB / 0.503 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002683/0.4953, allocations: 169.8 kB / 0.5031 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/0.4975, allocations: 1.197 MB / 0.5043 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.94e-05/0.4976, allocations: 19.98 kB / 0.5043 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.4977, allocations: 4 kB / 0.5043 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4977, allocations: 7.922 kB / 0.5043 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006921/0.5046, allocations: 3.936 MB / 0.5082 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5046, allocations: 288 / 0.5082 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005974/0.5052, allocations: 139.8 kB / 0.5083 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.467e-05/0.5052, allocations: 9.078 kB / 0.5083 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.466e-05/0.5053, allocations: 16.06 kB / 0.5083 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.245e-05/0.5053, allocations: 19.86 kB / 0.5084 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5053, allocations: 4 kB / 0.5084 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/0.5082, allocations: 1.945 MB / 0.5103 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004579/0.5086, allocations: 270.8 kB / 0.5105 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.5089, allocations: 16 kB / 0.5105 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005817/0.5094, allocations: 39.89 kB / 0.5106 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.5096, allocations: 44.5 kB / 0.5106 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.286e-05/0.5096, allocations: 27.98 kB / 0.5106 GB, free: 3.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002077/0.5117, allocations: 1.424 MB / 0.512 GB, free: 2.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5117, allocations: 0 / 0.512 GB, free: 2.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002544/0.5143, allocations: 0.7042 MB / 0.5127 GB, free: 1.453 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.0003384/0.5146, allocations: 143.1 kB / 0.5129 GB, free: 1.301 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004505/0.5191, allocations: 2.774 MB / 0.5156 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5191, allocations: 0.75 kB / 0.5156 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008009/0.52, allocations: 0.5268 MB / 0.5161 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.5216, allocations: 328.3 kB / 0.5164 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009721/0.5313, allocations: 6.597 MB / 0.5228 GB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002241/0.5336, allocations: 2.281 MB / 0.5251 GB, free: 4.758 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002394/0.536, allocations: 0.9767 MB / 0.526 GB, free: 3.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.5363, allocations: 131.4 kB / 0.5261 GB, free: 3.652 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5363, allocations: 8 kB / 0.5262 GB, free: 3.645 MB / 398.1 MB Notification: Performance of Templates: time 0.0343/0.5706, allocations: 18.61 MB / 0.5443 GB, free: 1.148 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)