Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.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.VehicleComponents.Examples.TestDryFrictionWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel") translateModel(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00632/0.00632, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.459/1.459, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2426/0.2426, allocations: 9.108 MB / 300.5 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003469, allocations: 8 kB / 363.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1339, allocations: 52.43 MB / 416.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.2934/0.4274, allocations: 22.77 MB / 438.9 MB, free: 29.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.4407, allocations: 5.487 MB / 444.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005657/0.4464, allocations: 84.22 kB / 444.5 MB, free: 27.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.4475, allocations: 311.3 kB / 444.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003872/0.4513, allocations: 1.318 MB / 446.1 MB, free: 27.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.4519, allocations: 137.5 kB / 446.2 MB, free: 27.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003713/0.4556, allocations: 3.487 MB / 449.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001011/0.4566, allocations: 0.7808 MB / 450.5 MB, free: 25.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008868/0.4575, allocations: 0.7513 MB / 451.3 MB, free: 25.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.459, allocations: 1.31 MB / 452.6 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002366/0.4593, allocations: 127.2 kB / 452.7 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.4608, allocations: 0.82 MB / 453.5 MB, free: 24.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007962/0.4616, allocations: 1.139 MB / 454.7 MB, free: 24.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.4626, allocations: 1.495 MB / 456.2 MB, free: 23.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003818/0.4665, allocations: 4.565 MB / 460.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4665, allocations: 3.219 kB / 460.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4665, allocations: 0 / 460.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.238e-05/0.4666, allocations: 0 / 460.7 MB, free: 21.8 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: 1162 * Number of variables: 1162 Notification: Performance of Generate backend data structure: time 0.01554/0.4821, allocations: 4.381 MB / 465.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.4822, allocations: 9.828 kB / 465.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007244/0.4894, allocations: 1.812 MB / 466.9 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/0.4924, allocations: 1.411 MB / 468.3 MB, free: 18.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.4925, allocations: 142.2 kB / 468.5 MB, free: 18.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004659/0.493, allocations: 198.1 kB / 468.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0165/0.5095, allocations: 8.458 MB / 477.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.344e-05/0.5096, allocations: 26.38 kB / 477.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003117/0.5099, allocations: 93.67 kB / 477.2 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003552/0.5135, allocations: 1.885 MB / 479.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01841/0.5319, allocations: 8.139 MB / 487.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04439/0.5764, allocations: 25.95 MB / 0.5012 GB, free: 1.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01086/0.5873, allocations: 2.864 MB / 0.504 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.5892, allocations: 1.076 MB / 0.505 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008848/0.5981, allocations: 5.015 MB / 0.5099 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.5982, allocations: 43.88 kB / 0.51 GB, free: 8.133 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 5.841e-06/0.5982, allocations: 4 kB / 0.51 GB, free: 8.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.01929/0.6175, allocations: 7.948 MB / 0.5177 GB, free: 48 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/0.6176, allocations: 68.72 kB / 0.5178 GB, free: 15.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00507/0.6227, allocations: 2.597 MB / 0.5203 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.6229, allocations: 49.7 kB / 0.5204 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001804/0.6247, allocations: 2.055 MB / 0.5224 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000726/0.6254, allocations: 0.6282 MB / 0.523 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005748/0.626, allocations: 342.6 kB / 0.5233 GB, free: 10.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.6261, allocations: 309.1 kB / 0.5236 GB, free: 9.914 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002394/0.6285, allocations: 1.37 MB / 0.525 GB, free: 8.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004029/0.6326, allocations: 3.536 MB / 0.5284 GB, free: 3.938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007051/0.6396, allocations: 5.304 MB / 0.5336 GB, free: 13.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.9e-05/0.6397, allocations: 20 kB / 0.5336 GB, free: 13.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.009867/0.6496, allocations: 5.1 MB / 0.5386 GB, free: 8.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.052e-05/0.6497, allocations: 38.56 kB / 0.5386 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/0.6499, allocations: 80 kB / 0.5387 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008474/0.6507, allocations: 318.5 kB / 0.539 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003024/0.6537, allocations: 0.889 MB / 0.5399 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/0.6581, allocations: 3.04 MB / 0.5429 GB, free: 3.953 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003202/0.6613, allocations: 191.9 kB / 0.543 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006281/0.6619, allocations: 240 kB / 0.5433 GB, free: 3.531 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (490): * Single equations (assignments): 484 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003339/0.6653, allocations: 1.579 MB / 0.5448 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005648/0.6658, allocations: 229 kB / 0.545 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004679/0.6705, allocations: 2.347 MB / 0.5473 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/0.6707, allocations: 27.98 kB / 0.5473 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.6707, allocations: 0 / 0.5473 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.6707, allocations: 11.97 kB / 0.5474 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.6839, allocations: 6.241 MB / 0.5535 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.684, allocations: 4 kB / 0.5535 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.685, allocations: 247.7 kB / 0.5537 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000684/0.6857, allocations: 217.8 kB / 0.5539 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.6858, allocations: 35.94 kB / 0.5539 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003383/0.6892, allocations: 2.602 MB / 0.5565 GB, free: 5.699 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.6893, allocations: 8.062 kB / 0.5565 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005873/0.6951, allocations: 3.586 MB / 0.56 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008881/0.696, allocations: 322 kB / 0.5603 GB, free: 1.711 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005564/0.6966, allocations: 24 kB / 0.5603 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.6978, allocations: 75.86 kB / 0.5604 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.6981, allocations: 93.41 kB / 0.5605 GB, free: 1.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.6982, allocations: 55.97 kB / 0.5605 GB, free: 1.465 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003931/0.7021, allocations: 1.683 MB / 0.5622 GB, free: 15.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.375e-06/0.7021, allocations: 3.938 kB / 0.5622 GB, free: 15.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004377/0.7065, allocations: 0.7069 MB / 0.5629 GB, free: 15.05 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (prismatic.s,prismatic.v,revolute.phi,revolute.w,engineTorque.phi,inertia.w) * 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 (138): * Single equations (assignments): 132 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005669/0.7071, allocations: 182.9 kB / 0.563 GB, free: 14.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006623/0.7137, allocations: 3.453 MB / 0.5664 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.7138, allocations: 4 kB / 0.5664 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.7158, allocations: 1.242 MB / 0.5676 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003528/0.7193, allocations: 364.3 kB / 0.568 GB, free: 9.762 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.7333, allocations: 8.501 MB / 0.5763 GB, free: 1.195 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2328/0.9661, allocations: 2.592 MB / 0.5788 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003159/0.9693, allocations: 1.228 MB / 0.58 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004676/0.9698, allocations: 183.1 kB / 0.5802 GB, free: 106.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.9698, allocations: 0 / 0.5802 GB, free: 106.2 MB / 446.1 MB Notification: Performance of Templates: time 0.05505/1.025, allocations: 25.88 MB / 0.6055 GB, free: 102.2 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.makefile (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.sim & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)