Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.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.SingleTrackWithEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine") translateModel(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008914/0.0008914, allocations: 89.89 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.008202/0.008202, allocations: 171.8 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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2051/0.2051, allocations: 9.115 MB / 300.5 MB, free: 2.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.000343, allocations: 8 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1258, allocations: 52.43 MB / 416.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.2522/0.378, allocations: 35.27 MB / 451.4 MB, free: 21.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01791/0.396, allocations: 7.731 MB / 459.2 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008675/0.4047, allocations: 130.9 kB / 459.3 MB, free: 17.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.4061, allocations: 365.7 kB / 459.6 MB, free: 17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004489/0.4106, allocations: 1.492 MB / 461.1 MB, free: 16.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00061/0.4113, allocations: 168.1 kB / 461.3 MB, free: 16.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004864/0.4161, allocations: 4.138 MB / 465.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001875/0.418, allocations: 0.9549 MB / 466.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001983/0.42, allocations: 0.8981 MB / 467.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002113/0.4221, allocations: 1.584 MB / 468.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003624/0.4225, allocations: 153 kB / 469 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.424, allocations: 0.7928 MB / 469.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.4251, allocations: 1.393 MB / 471.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.4264, allocations: 1.766 MB / 473 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005129/0.4316, allocations: 5.227 MB / 478.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.4316, allocations: 0 / 478.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4316, allocations: 1.094 kB / 478.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002022/0.4318, allocations: 0 / 478.2 MB, free: 10.01 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: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.02921/0.461, allocations: 6.163 MB / 484.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.4611, allocations: 9.625 kB / 484.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008781/0.4699, allocations: 1.878 MB / 486.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004859/0.4748, allocations: 1.702 MB / 488 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/0.475, allocations: 179.4 kB / 488.1 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001621/0.4767, allocations: 261.3 kB / 488.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02381/0.5005, allocations: 10.41 MB / 498.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001248/0.5007, allocations: 37.09 kB / 498.8 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004493/0.5011, allocations: 113.2 kB / 498.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00385/0.505, allocations: 2.157 MB / 0.4893 GB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02641/0.5314, allocations: 10.37 MB / 0.4995 GB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06676/0.5982, allocations: 33.54 MB / 0.5322 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02061/0.6189, allocations: 4.342 MB / 0.5365 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003912/0.6228, allocations: 1.69 MB / 0.5381 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01666/0.6395, allocations: 8.597 MB / 0.5465 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.216e-05/0.6396, allocations: 60.55 kB / 0.5466 GB, free: 1.793 MB / 414.1 MB Notification: Performance of pre-optimization done (n=237): time 7.965e-06/0.6397, allocations: 4 kB / 0.5466 GB, free: 1.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=277): time 0.03064/0.6703, allocations: 12.74 MB / 0.559 GB, free: 4.887 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004263/0.6746, allocations: 3.377 MB / 0.5623 GB, free: 1.352 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005978/0.6806, allocations: 3.035 MB / 0.5653 GB, free: 14.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004431/0.6811, allocations: 69.7 kB / 0.5653 GB, free: 14.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/0.6829, allocations: 2.404 MB / 0.5677 GB, free: 11.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001272/0.6842, allocations: 0.9981 MB / 0.5687 GB, free: 10.78 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008023/0.685, allocations: 458.2 kB / 0.5691 GB, free: 10.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.548e-05/0.6851, allocations: 301.2 kB / 0.5694 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003233/0.6884, allocations: 1.908 MB / 0.5713 GB, free: 8.113 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005964/0.6943, allocations: 4.669 MB / 0.5758 GB, free: 2.109 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2172/0.9116, allocations: 7.154 MB / 0.5828 GB, free: 118.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.357e-05/0.9117, allocations: 30 kB / 0.5828 GB, free: 118.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01222/0.9239, allocations: 7.046 MB / 0.5897 GB, free: 117.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.247e-05/0.924, allocations: 49.16 kB / 0.5898 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.754e-05/0.9241, allocations: 94.22 kB / 0.5899 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.9253, allocations: 0.5391 MB / 0.5904 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/0.9294, allocations: 1.233 MB / 0.5916 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007589/0.937, allocations: 6.792 MB / 0.5982 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004343/0.9414, allocations: 277.8 kB / 0.5985 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000733/0.9422, allocations: 311 kB / 0.5988 GB, free: 113.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 432 * Number of states: 0 () * Number of discrete variables: 15 (trail.color[3],trail.color[2],trail.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 655 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003571/0.9457, allocations: 1.859 MB / 0.6006 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/0.9464, allocations: 296.5 kB / 0.6009 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006196/0.9526, allocations: 3.834 MB / 0.6046 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000108/0.9527, allocations: 39.12 kB / 0.6047 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.9527, allocations: 6.406 kB / 0.6047 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.218e-05/0.9527, allocations: 17.69 kB / 0.6047 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.018/0.9708, allocations: 10.96 MB / 0.6154 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.9708, allocations: 6.312 kB / 0.6154 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.9725, allocations: 394.8 kB / 0.6158 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/0.974, allocations: 0.5498 MB / 0.6163 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001945/0.9742, allocations: 55.64 kB / 0.6164 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009747/0.984, allocations: 7.394 MB / 0.6236 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003435/0.9874, allocations: 3.132 MB / 0.6266 GB, free: 99.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/0.9978, allocations: 5.845 MB / 0.6323 GB, free: 97.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/0.9999, allocations: 0.6355 MB / 0.633 GB, free: 97.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005644/1.001, allocations: 50.73 kB / 0.633 GB, free: 97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/1.002, allocations: 130.9 kB / 0.6331 GB, free: 96.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004713/1.002, allocations: 169.5 kB / 0.6333 GB, free: 96.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/1.003, allocations: 81.61 kB / 0.6334 GB, free: 96.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00305/1.006, allocations: 1.955 MB / 0.6353 GB, free: 96.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.006, allocations: 0 / 0.6353 GB, free: 96.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006384/1.012, allocations: 0.9814 MB / 0.6362 GB, free: 96.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,idealWheelFront.phi_roll,revolute.phi,revolute.w,engineTorque.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 (208): * Single equations (assignments): 202 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (3,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007483/1.013, allocations: 195.4 kB / 0.6364 GB, free: 95.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009294/1.022, allocations: 5.047 MB / 0.6414 GB, free: 92.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.022, allocations: 0 / 0.6414 GB, free: 92.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003351/1.026, allocations: 2.136 MB / 0.6434 GB, free: 90.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004573/1.03, allocations: 448 kB / 0.6439 GB, free: 90.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/1.045, allocations: 10.96 MB / 0.6546 GB, free: 79.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002765/1.048, allocations: 3 MB / 0.6575 GB, free: 76.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003929/1.052, allocations: 1.613 MB / 0.6591 GB, free: 75.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007101/1.053, allocations: 239.4 kB / 0.6593 GB, free: 75.05 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/1.053, allocations: 4 kB / 0.6593 GB, free: 75.05 MB / 446.1 MB Notification: Performance of Templates: time 0.06426/1.117, allocations: 36.84 MB / 0.6953 GB, free: 38.44 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.makefile (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.sim & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)