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.0007843/0.0007844, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.00503/0.00503, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1739/0.1739, allocations: 9.114 MB / 300.5 MB, free: 2.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003885, allocations: 8 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1104, allocations: 52.42 MB / 416.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.2152/0.3256, allocations: 35.27 MB / 451.4 MB, free: 21.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0166/0.3423, allocations: 7.733 MB / 459.2 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007013/0.3493, allocations: 133.2 kB / 459.3 MB, free: 17.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.3504, allocations: 358.8 kB / 459.6 MB, free: 16.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003532/0.354, allocations: 1.509 MB / 461.1 MB, free: 16.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004664/0.3545, allocations: 149.6 kB / 461.3 MB, free: 16.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003405/0.3579, allocations: 4.141 MB / 465.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00116/0.3591, allocations: 0.9604 MB / 466.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.3602, allocations: 0.9021 MB / 467.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.3618, allocations: 1.58 MB / 468.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003228/0.3621, allocations: 155.6 kB / 469 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.3634, allocations: 0.7947 MB / 469.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009705/0.3644, allocations: 1.394 MB / 471.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.3656, allocations: 1.769 MB / 473 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00487/0.3705, allocations: 5.217 MB / 478.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3705, allocations: 0 / 478.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3705, allocations: 0 / 478.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001467/0.3707, allocations: 1.062 kB / 478.2 MB, free: 9.922 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.0274/0.3981, allocations: 6.166 MB / 484.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3982, allocations: 8.25 kB / 484.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008284/0.4065, allocations: 1.88 MB / 486.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005253/0.4118, allocations: 1.7 MB / 488 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002524/0.412, allocations: 183.4 kB / 488.1 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.4134, allocations: 250.8 kB / 488.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01967/0.4331, allocations: 10.42 MB / 498.8 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.4332, allocations: 32.59 kB / 498.8 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004196/0.4337, allocations: 113.7 kB / 498.9 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003846/0.4375, allocations: 2.156 MB / 0.4894 GB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0238/0.4613, allocations: 10.37 MB / 0.4995 GB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05795/0.5193, allocations: 33.53 MB / 0.5322 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/0.5375, allocations: 4.349 MB / 0.5365 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00295/0.5405, allocations: 1.682 MB / 0.5381 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01137/0.5519, allocations: 8.605 MB / 0.5465 GB, free: 1.855 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.165e-05/0.552, allocations: 60.55 kB / 0.5466 GB, free: 1.785 MB / 414.1 MB Notification: Performance of pre-optimization done (n=237): time 5.801e-06/0.5521, allocations: 0 / 0.5466 GB, free: 1.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=277): time 0.02974/0.5818, allocations: 12.75 MB / 0.559 GB, free: 4.879 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004127/0.586, allocations: 3.38 MB / 0.5623 GB, free: 1.344 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004992/0.591, allocations: 3.039 MB / 0.5653 GB, free: 14.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000341/0.5913, allocations: 69.7 kB / 0.5654 GB, free: 14.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.5931, allocations: 2.404 MB / 0.5677 GB, free: 11.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001075/0.5942, allocations: 0.9981 MB / 0.5687 GB, free: 10.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007671/0.5949, allocations: 458.2 kB / 0.5691 GB, free: 10.31 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.63e-05/0.595, allocations: 301.1 kB / 0.5694 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003914/0.599, allocations: 1.904 MB / 0.5713 GB, free: 8.105 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005967/0.605, allocations: 4.673 MB / 0.5758 GB, free: 2.098 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2212/0.8262, allocations: 7.149 MB / 0.5828 GB, free: 118.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.975e-05/0.8263, allocations: 26.12 kB / 0.5828 GB, free: 118.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01349/0.8398, allocations: 7.049 MB / 0.5897 GB, free: 117.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.608e-05/0.8399, allocations: 47.56 kB / 0.5898 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001789/0.8401, allocations: 99.06 kB / 0.5899 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.8415, allocations: 0.5448 MB / 0.5904 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004163/0.8456, allocations: 1.233 MB / 0.5916 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007359/0.853, allocations: 6.782 MB / 0.5982 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004078/0.8571, allocations: 277 kB / 0.5985 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008537/0.858, allocations: 311.1 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.003653/0.8617, allocations: 1.856 MB / 0.6006 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00062/0.8623, allocations: 295.7 kB / 0.6009 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006594/0.8689, allocations: 3.834 MB / 0.6046 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001188/0.869, allocations: 42.2 kB / 0.6047 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.989e-05/0.8691, allocations: 10.97 kB / 0.6047 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.205e-05/0.8691, allocations: 17.97 kB / 0.6047 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02236/0.8915, allocations: 10.96 MB / 0.6154 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.8916, allocations: 5.562 kB / 0.6154 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/0.8934, allocations: 388.5 kB / 0.6158 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.8949, allocations: 0.5513 MB / 0.6163 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003215/0.8952, allocations: 55.33 kB / 0.6164 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009953/0.9052, allocations: 7.394 MB / 0.6236 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003575/0.9088, allocations: 3.123 MB / 0.6266 GB, free: 99.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009708/0.9185, allocations: 5.849 MB / 0.6323 GB, free: 97.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001952/0.9205, allocations: 0.6363 MB / 0.633 GB, free: 96.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009269/0.9215, allocations: 49.61 kB / 0.633 GB, free: 96.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/0.9235, allocations: 129.5 kB / 0.6331 GB, free: 96.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005512/0.9241, allocations: 174.1 kB / 0.6333 GB, free: 96.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/0.9243, allocations: 80.17 kB / 0.6334 GB, free: 96.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003987/0.9283, allocations: 1.956 MB / 0.6353 GB, free: 96.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9283, allocations: 0 / 0.6353 GB, free: 96.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006088/0.9344, allocations: 0.9805 MB / 0.6362 GB, free: 96.03 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.0006956/0.9351, allocations: 195.7 kB / 0.6364 GB, free: 95.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009119/0.9443, allocations: 5.052 MB / 0.6414 GB, free: 92.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/0.9443, allocations: 0 / 0.6414 GB, free: 92.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003512/0.9479, allocations: 2.134 MB / 0.6435 GB, free: 90.37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005068/0.9529, allocations: 451.6 kB / 0.6439 GB, free: 90 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/0.9686, allocations: 10.95 MB / 0.6546 GB, free: 79.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00381/0.9725, allocations: 3.004 MB / 0.6575 GB, free: 76.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004466/0.977, allocations: 1.614 MB / 0.6591 GB, free: 75.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009217/0.9779, allocations: 235.4 kB / 0.6593 GB, free: 75 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.9779, allocations: 4 kB / 0.6593 GB, free: 75 MB / 446.1 MB Notification: Performance of Templates: time 0.06031/1.038, allocations: 36.84 MB / 0.6953 GB, free: 38.39 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)