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/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.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.0009115/0.0009115, allocations: 99 kB / 15.05 MB, free: 1.105 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.0009378/0.0009379, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 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: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1954/0.1954, allocations: 9.087 MB / 300.1 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003618, allocations: 11.98 kB / 363 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1159, allocations: 52.43 MB / 415.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.2508/0.3668, allocations: 20.01 MB / 435.4 MB, free: 33.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.3805, allocations: 5.456 MB / 440.9 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005025/0.3856, allocations: 84.41 kB / 441 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003545/0.3892, allocations: 0.9548 MB / 441.9 MB, free: 29.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01036/0.3996, allocations: 3.006 MB / 444.9 MB, free: 28.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001434/0.4011, allocations: 137.9 kB / 445.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003021/0.4041, allocations: 1.423 MB / 446.5 MB, free: 27.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001686/0.4058, allocations: 0.7683 MB / 447.3 MB, free: 27.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.4074, allocations: 0.6779 MB / 447.9 MB, free: 26.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.4092, allocations: 0.9776 MB / 448.9 MB, free: 26.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005049/0.4097, allocations: 133 kB / 449 MB, free: 26.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00145/0.4111, allocations: 0.6979 MB / 449.7 MB, free: 26.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008764/0.412, allocations: 1.026 MB / 450.8 MB, free: 25.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007047/0.4127, allocations: 0.6421 MB / 451.4 MB, free: 25.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005371/0.4181, allocations: 3.711 MB / 455.1 MB, free: 24.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4182, allocations: 0 / 455.1 MB, free: 24.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.11e-06/0.4182, allocations: 0 / 455.1 MB, free: 24.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002657/0.4185, allocations: 3.375 kB / 455.1 MB, free: 24.65 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.01801/0.4365, allocations: 4.503 MB / 459.6 MB, free: 22.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4365, allocations: 9.062 kB / 459.6 MB, free: 22.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008414/0.445, allocations: 2.186 MB / 461.8 MB, free: 22.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00502/0.45, allocations: 1.395 MB / 463.2 MB, free: 21.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.4502, allocations: 146.6 kB / 463.4 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007123/0.4509, allocations: 191 kB / 463.5 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0187/0.4696, allocations: 8.477 MB / 472 MB, free: 17.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.326e-05/0.4698, allocations: 28.03 kB / 472.1 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00034/0.4701, allocations: 89.41 kB / 472.1 MB, free: 17.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003586/0.4737, allocations: 1.881 MB / 474 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02377/0.4975, allocations: 8.149 MB / 482.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04509/0.5426, allocations: 25.74 MB / 0.496 GB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/0.5539, allocations: 2.854 MB / 0.4988 GB, free: 3.543 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002379/0.5564, allocations: 1.735 MB / 0.5005 GB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.682e-05/0.5565, allocations: 47.88 kB / 0.5005 GB, free: 1.477 MB / 366.1 MB Notification: Performance of pre-optimization done (n=179): time 1.004e-05/0.5565, allocations: 0 / 0.5005 GB, free: 1.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=197): time 0.03452/0.591, allocations: 10.1 MB / 0.5104 GB, free: 7.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.5911, allocations: 69.41 kB / 0.5105 GB, free: 7.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005888/0.597, allocations: 2.52 MB / 0.5129 GB, free: 4.555 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000392/0.5974, allocations: 49.7 kB / 0.513 GB, free: 4.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001968/0.5994, allocations: 1.993 MB / 0.5149 GB, free: 2.477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001183/0.6006, allocations: 0.7129 MB / 0.5156 GB, free: 1.754 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004679/0.6011, allocations: 80 kB / 0.5157 GB, free: 1.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000506/0.6016, allocations: 483 kB / 0.5161 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003149/0.6048, allocations: 1.386 MB / 0.5175 GB, free: 15.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005963/0.6108, allocations: 3.533 MB / 0.5209 GB, free: 11.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004442/0.6152, allocations: 2.231 MB / 0.5231 GB, free: 8.961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.333e-05/0.6154, allocations: 24 kB / 0.5232 GB, free: 8.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=537) (initialization): time 0.01247/0.6278, allocations: 5.133 MB / 0.5282 GB, free: 3.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.628, allocations: 44.03 kB / 0.5282 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/0.6282, allocations: 72 kB / 0.5283 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.6294, allocations: 334.4 kB / 0.5286 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003684/0.6331, allocations: 0.9085 MB / 0.5295 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004291/0.6374, allocations: 3.087 MB / 0.5325 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00346/0.6409, allocations: 207.9 kB / 0.5327 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008046/0.6417, allocations: 236 kB / 0.5329 GB, free: 14.78 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 (496): * Single equations (assignments): 490 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00392/0.6456, allocations: 1.574 MB / 0.5345 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006622/0.6463, allocations: 229 kB / 0.5347 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005526/0.6518, allocations: 2.76 MB / 0.5374 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001225/0.652, allocations: 35.97 kB / 0.5374 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/0.652, allocations: 4 kB / 0.5374 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.652, allocations: 8.031 kB / 0.5374 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01768/0.6697, allocations: 6.93 MB / 0.5442 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/0.6698, allocations: 4 kB / 0.5442 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/0.671, allocations: 287.6 kB / 0.5445 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007471/0.6718, allocations: 235.3 kB / 0.5447 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.672, allocations: 36 kB / 0.5447 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003424/0.6754, allocations: 2.654 MB / 0.5473 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/0.6755, allocations: 8.062 kB / 0.5473 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006807/0.6823, allocations: 4.453 MB / 0.5517 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.6834, allocations: 322.1 kB / 0.552 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000668/0.6841, allocations: 39.94 kB / 0.552 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/0.6855, allocations: 71.92 kB / 0.5521 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.6857, allocations: 121.1 kB / 0.5522 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.6859, allocations: 60.17 kB / 0.5523 GB, free: 10.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003452/0.6893, allocations: 1.639 MB / 0.5539 GB, free: 8.633 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6894, allocations: 3.938 kB / 0.5539 GB, free: 8.629 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004801/0.6942, allocations: 0.7188 MB / 0.5546 GB, free: 7.91 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (159): * Single equations (assignments): 153 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009553/0.6952, allocations: 186.8 kB / 0.5547 GB, free: 7.719 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008418/0.7036, allocations: 3.556 MB / 0.5582 GB, free: 4.145 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/0.7036, allocations: 4 kB / 0.5582 GB, free: 4.141 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002625/0.7063, allocations: 1.342 MB / 0.5595 GB, free: 2.766 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.709, allocations: 354 kB / 0.5599 GB, free: 2.426 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/0.7253, allocations: 8.375 MB / 0.568 GB, free: 9.941 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004606/0.7299, allocations: 2.675 MB / 0.5707 GB, free: 7.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004053/0.734, allocations: 1.287 MB / 0.5719 GB, free: 5.938 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008605/0.7349, allocations: 191.4 kB / 0.5721 GB, free: 5.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7349, allocations: 0 / 0.5721 GB, free: 5.75 MB / 446.1 MB Notification: Performance of Templates: time 0.2742/1.009, allocations: 25.71 MB / 0.5972 GB, free: 117.6 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)