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/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.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.001119/0.001119, allocations: 110.5 kB / 16.37 MB, free: 6.016 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.001067/0.001067, allocations: 195.1 kB / 17.31 MB, free: 5.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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0466/0.0466, allocations: 9.112 MB / 300.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 59.91 kB / 363.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2242, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01036/0.2346, allocations: 10.1 MB / 424.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007753/0.2424, allocations: 2.895 MB / 427.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.2446, allocations: 43.88 kB / 427.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.2459, allocations: 425.1 kB / 428.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004896/0.2508, allocations: 1.595 MB / 429.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007621/0.2516, allocations: 187.7 kB / 430 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004534/0.2562, allocations: 2.967 MB / 433 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.2578, allocations: 1.062 MB / 434.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.2597, allocations: 1.07 MB / 435.1 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002337/0.262, allocations: 1.588 MB / 436.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005176/0.2626, allocations: 268 kB / 437 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.2646, allocations: 0.866 MB / 437.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001389/0.266, allocations: 1.476 MB / 439.3 MB, free: 236 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002669/0.2687, allocations: 1.856 MB / 441.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009074/0.2778, allocations: 5.761 MB / 446.9 MB, free: 8.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2778, allocations: 4 kB / 447 MB, free: 8.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2778, allocations: 0 / 447 MB, free: 8.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.897e-05/0.278, allocations: 0 / 447 MB, free: 8.582 MB / 318.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.04757/0.3255, allocations: 6.95 MB / 453.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.125e-05/0.3256, allocations: 11.97 kB / 453.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01443/0.3401, allocations: 1.84 MB / 455.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006756/0.3469, allocations: 1.698 MB / 457.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002732/0.3472, allocations: 180.9 kB / 457.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.3482, allocations: 255.8 kB / 457.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02308/0.3713, allocations: 10.4 MB / 468.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/0.3715, allocations: 35.7 kB / 468.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004138/0.3719, allocations: 115.8 kB / 468.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003443/0.3754, allocations: 2.15 MB / 470.6 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02298/0.3984, allocations: 10.36 MB / 480.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05018/0.4486, allocations: 33.43 MB / 0.5023 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2169/0.6656, allocations: 4.314 MB / 0.5065 GB, free: 85.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003831/0.6695, allocations: 1.69 MB / 0.5082 GB, free: 85.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/0.6807, allocations: 8.592 MB / 0.5166 GB, free: 79.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/0.6808, allocations: 61.19 kB / 0.5166 GB, free: 79.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=237): time 4.9e-06/0.6808, allocations: 0 / 0.5166 GB, free: 79.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=277): time 0.02527/0.7061, allocations: 12.75 MB / 0.5291 GB, free: 75.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003398/0.7095, allocations: 3.517 MB / 0.5325 GB, free: 72.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.7131, allocations: 3.042 MB / 0.5355 GB, free: 69.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002366/0.7133, allocations: 65.7 kB / 0.5355 GB, free: 69.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009018/0.7142, allocations: 2.407 MB / 0.5379 GB, free: 67.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005973/0.7148, allocations: 0.9978 MB / 0.5389 GB, free: 66.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/0.7159, allocations: 1.075 MB / 0.5399 GB, free: 65.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.057e-05/0.716, allocations: 305.1 kB / 0.5402 GB, free: 64.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002298/0.7183, allocations: 1.903 MB / 0.5421 GB, free: 62.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003203/0.7215, allocations: 4.672 MB / 0.5466 GB, free: 56.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006365/0.7278, allocations: 7.169 MB / 0.5536 GB, free: 48.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.971e-05/0.7279, allocations: 24 kB / 0.5537 GB, free: 48.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.009591/0.7375, allocations: 7.038 MB / 0.5605 GB, free: 41.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/0.7376, allocations: 52.25 kB / 0.5606 GB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.198e-05/0.7377, allocations: 96 kB / 0.5607 GB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.7388, allocations: 0.5379 MB / 0.5612 GB, free: 40.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003416/0.7422, allocations: 1.228 MB / 0.5624 GB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007103/0.7493, allocations: 7.377 MB / 0.5696 GB, free: 31.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003779/0.7531, allocations: 271.9 kB / 0.5699 GB, free: 31.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000626/0.7538, allocations: 315.9 kB / 0.5702 GB, free: 31.17 MB / 382.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.002379/0.7562, allocations: 1.861 MB / 0.572 GB, free: 29.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.7566, allocations: 292.2 kB / 0.5723 GB, free: 29.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005359/0.762, allocations: 3.832 MB / 0.576 GB, free: 25.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.846e-05/0.7621, allocations: 40.08 kB / 0.576 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.7621, allocations: 11.94 kB / 0.576 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.008e-05/0.7621, allocations: 15.94 kB / 0.5761 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01564/0.7778, allocations: 10.85 MB / 0.5867 GB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.7778, allocations: 8.688 kB / 0.5867 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.7792, allocations: 391.4 kB / 0.587 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.7804, allocations: 0.5528 MB / 0.5876 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.7805, allocations: 59.98 kB / 0.5876 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007756/0.7883, allocations: 8.086 MB / 0.5955 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002761/0.791, allocations: 3.281 MB / 0.5987 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008597/0.7997, allocations: 5.846 MB / 0.6044 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002137/0.8018, allocations: 0.6298 MB / 0.6051 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003951/0.8022, allocations: 48 kB / 0.6051 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.8034, allocations: 127.8 kB / 0.6052 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003831/0.8038, allocations: 173.6 kB / 0.6054 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.804, allocations: 91.12 kB / 0.6055 GB, free: 10.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003085/0.8071, allocations: 1.944 MB / 0.6074 GB, free: 8.211 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8071, allocations: 0 / 0.6074 GB, free: 8.211 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004497/0.8116, allocations: 0.9818 MB / 0.6083 GB, free: 7.234 MB / 398.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.000504/0.8121, allocations: 190.8 kB / 0.6085 GB, free: 7.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008752/0.8209, allocations: 5.072 MB / 0.6135 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/0.8209, allocations: 4 kB / 0.6135 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003628/0.8246, allocations: 2.134 MB / 0.6156 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.8271, allocations: 471 kB / 0.616 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/0.8428, allocations: 8.891 MB / 0.6247 GB, free: 6.379 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003614/0.8465, allocations: 3.004 MB / 0.6276 GB, free: 3.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003702/0.8502, allocations: 1.621 MB / 0.6292 GB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006894/0.8509, allocations: 235.4 kB / 0.6294 GB, free: 1.484 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.8509, allocations: 0 / 0.6294 GB, free: 1.484 MB / 414.1 MB Notification: Performance of Templates: time 0.06396/0.9149, allocations: 34.25 MB / 0.6629 GB, free: 15.41 MB / 462.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)