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.005783/0.005783, allocations: 102.5 kB / 15.73 MB, free: 5.492 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.001277/0.001277, allocations: 190.2 kB / 16.67 MB, free: 5.422 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.376/1.376, allocations: 222.9 MB / 240.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.06347/0.06347, allocations: 9.125 MB / 299.7 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.89 kB / 414.6 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 51.44 MB / 466.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.0101/0.1227, allocations: 8.581 MB / 474.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005102/0.1279, allocations: 2.717 MB / 477.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007808/0.1287, allocations: 39.88 kB / 477.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007578/0.1295, allocations: 357.6 kB / 477.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002708/0.1323, allocations: 1.447 MB / 479.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004407/0.1327, allocations: 171.7 kB / 479.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002857/0.1356, allocations: 2.522 MB / 481.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.1368, allocations: 0.8773 MB / 482.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.1379, allocations: 0.8988 MB / 483.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001695/0.1396, allocations: 1.323 MB / 485 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004148/0.14, allocations: 228 kB / 485.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/0.1418, allocations: 0.8894 MB / 486.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001104/0.1429, allocations: 1.208 MB / 487.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001446/0.1443, allocations: 1.569 MB / 488.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005653/0.15, allocations: 5.045 MB / 493.9 MB, free: 5.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.15, allocations: 0 / 493.9 MB, free: 5.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1501, allocations: 4 kB / 493.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.864e-05/0.1501, allocations: 0 / 493.9 MB, free: 5.668 MB / 366.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.01563/0.1658, allocations: 5.02 MB / 499 MB, free: 0.582 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1658, allocations: 12.03 kB / 499 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006451/0.1723, allocations: 1.771 MB / 0.489 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003476/0.1758, allocations: 1.421 MB / 0.4904 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.1759, allocations: 144 kB / 0.4905 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006082/0.1766, allocations: 203.9 kB / 0.4907 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0148/0.1914, allocations: 8.444 MB / 0.499 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.522e-05/0.1915, allocations: 19.81 kB / 0.499 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003425/0.1919, allocations: 95.84 kB / 0.4991 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003172/0.195, allocations: 1.887 MB / 0.5009 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2815/0.4766, allocations: 8.118 MB / 0.5089 GB, free: 38.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03695/0.5136, allocations: 25.85 MB / 0.5341 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009156/0.5228, allocations: 2.842 MB / 0.5369 GB, free: 19.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.5244, allocations: 1.08 MB / 0.5379 GB, free: 19.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006035/0.5305, allocations: 5.028 MB / 0.5428 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.5306, allocations: 43.88 kB / 0.5429 GB, free: 14.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.556e-06/0.5306, allocations: 0 / 0.5429 GB, free: 14.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.014/0.5446, allocations: 7.942 MB / 0.5506 GB, free: 6.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.5447, allocations: 68.72 kB / 0.5507 GB, free: 6.219 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003067/0.5477, allocations: 2.597 MB / 0.5532 GB, free: 3.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.074e-05/0.5479, allocations: 49.7 kB / 0.5533 GB, free: 3.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007914/0.5487, allocations: 2.054 MB / 0.5553 GB, free: 1.477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003337/0.549, allocations: 0.6385 MB / 0.5559 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008404/0.5498, allocations: 0.8016 MB / 0.5567 GB, free: 36 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.55, allocations: 301.1 kB / 0.557 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/0.5524, allocations: 1.374 MB / 0.5583 GB, free: 14.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003909/0.5563, allocations: 3.533 MB / 0.5618 GB, free: 9.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006803/0.5632, allocations: 5.302 MB / 0.567 GB, free: 3.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.379e-05/0.5633, allocations: 20 kB / 0.567 GB, free: 3.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.009712/0.573, allocations: 5.107 MB / 0.572 GB, free: 14.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.085e-05/0.5731, allocations: 41.5 kB / 0.572 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.5732, allocations: 80.78 kB / 0.5721 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007822/0.574, allocations: 321.3 kB / 0.5724 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002921/0.5769, allocations: 0.8929 MB / 0.5733 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004039/0.581, allocations: 3.279 MB / 0.5765 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/0.5842, allocations: 191.8 kB / 0.5766 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005077/0.5848, allocations: 245.9 kB / 0.5769 GB, free: 9.117 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.00312/0.5879, allocations: 1.581 MB / 0.5784 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005165/0.5884, allocations: 225.1 kB / 0.5786 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004399/0.5928, allocations: 2.347 MB / 0.5809 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001133/0.593, allocations: 31.92 kB / 0.581 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.593, allocations: 0 / 0.581 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.593, allocations: 7.969 kB / 0.581 GB, free: 4.898 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.6047, allocations: 6.219 MB / 0.587 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.6047, allocations: 4.344 kB / 0.587 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.6057, allocations: 251.7 kB / 0.5873 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006284/0.6064, allocations: 204.8 kB / 0.5875 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.6065, allocations: 35.98 kB / 0.5875 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003613/0.6101, allocations: 2.858 MB / 0.5903 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.6101, allocations: 4 kB / 0.5903 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006014/0.6162, allocations: 3.591 MB / 0.5938 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009541/0.6172, allocations: 298.2 kB / 0.5941 GB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.6174, allocations: 31.94 kB / 0.5941 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008328/0.6183, allocations: 72.09 kB / 0.5942 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.6185, allocations: 101.1 kB / 0.5943 GB, free: 6.941 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.6186, allocations: 53.94 kB / 0.5943 GB, free: 6.891 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002524/0.6211, allocations: 1.679 MB / 0.596 GB, free: 5.195 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6212, allocations: 0 / 0.596 GB, free: 5.195 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003193/0.6244, allocations: 0.7044 MB / 0.5967 GB, free: 4.496 MB / 430.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.0003897/0.6248, allocations: 184.1 kB / 0.5968 GB, free: 4.316 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005565/0.6303, allocations: 3.477 MB / 0.6002 GB, free: 0.832 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.6303, allocations: 4 kB / 0.6002 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.6321, allocations: 1.239 MB / 0.6015 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.6344, allocations: 392.3 kB / 0.6018 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/0.6482, allocations: 6.784 MB / 0.6085 GB, free: 8.359 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002817/0.6511, allocations: 2.598 MB / 0.611 GB, free: 5.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002912/0.654, allocations: 1.216 MB / 0.6122 GB, free: 4.508 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004453/0.6545, allocations: 183.3 kB / 0.6124 GB, free: 4.328 MB / 446.1 MB Notification: Performance of SimCode: time 8.81e-07/0.6545, allocations: 0 / 0.6124 GB, free: 4.328 MB / 446.1 MB Notification: Performance of Templates: time 0.05305/0.7076, allocations: 26.75 MB / 0.6385 GB, free: 9.707 MB / 478.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)