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.001402/0.001402, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001257/0.001257, allocations: 189.2 kB / 16.25 MB, free: 6.59 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.45/1.45, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.15/0.15, allocations: 9.122 MB / 299.2 MB, free: 1.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 59.91 kB / 361.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09317/0.0945, allocations: 51.44 MB / 412.9 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.208/0.3025, allocations: 36.28 MB / 449.2 MB, free: 22.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01483/0.3174, allocations: 7.742 MB / 456.9 MB, free: 17.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00718/0.3246, allocations: 132.1 kB / 457.1 MB, free: 17.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.3259, allocations: 354.3 kB / 457.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003447/0.3293, allocations: 1.491 MB / 458.9 MB, free: 16.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.3298, allocations: 158.7 kB / 459 MB, free: 16.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002861/0.3327, allocations: 2.973 MB / 462 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001613/0.3343, allocations: 1.078 MB / 463.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003146/0.3375, allocations: 1.088 MB / 464.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00294/0.3404, allocations: 1.699 MB / 465.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000502/0.3409, allocations: 264.5 kB / 466.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.3428, allocations: 0.8782 MB / 467 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001554/0.3444, allocations: 1.499 MB / 468.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001493/0.3459, allocations: 1.873 MB / 470.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00557/0.3515, allocations: 5.521 MB / 475.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3515, allocations: 0 / 475.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3515, allocations: 1.125 kB / 475.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001377/0.3516, allocations: 0 / 475.9 MB, free: 9.383 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.02998/0.3816, allocations: 6.957 MB / 482.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.3817, allocations: 9.219 kB / 482.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007637/0.3893, allocations: 1.839 MB / 484.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004085/0.3935, allocations: 1.699 MB / 486.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002249/0.3937, allocations: 185 kB / 486.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001249/0.395, allocations: 246.2 kB / 486.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02363/0.4186, allocations: 10.41 MB / 497.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001806/0.4188, allocations: 34.47 kB / 497.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001043/0.4199, allocations: 115.8 kB / 497.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004098/0.424, allocations: 2.15 MB / 499.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02485/0.4489, allocations: 10.36 MB / 0.498 GB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05835/0.5073, allocations: 33.51 MB / 0.5307 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01939/0.5267, allocations: 4.314 MB / 0.5349 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00363/0.5304, allocations: 1.683 MB / 0.5365 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01453/0.5449, allocations: 8.609 MB / 0.5449 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.939e-05/0.545, allocations: 60.48 kB / 0.545 GB, free: 1.305 MB / 414.1 MB Notification: Performance of pre-optimization done (n=237): time 5.39e-06/0.545, allocations: 0 / 0.545 GB, free: 1.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=277): time 0.03424/0.5793, allocations: 12.75 MB / 0.5575 GB, free: 4.398 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005102/0.5844, allocations: 3.523 MB / 0.5609 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006779/0.5913, allocations: 3.039 MB / 0.5639 GB, free: 13.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000541/0.5918, allocations: 69.7 kB / 0.5639 GB, free: 13.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002114/0.594, allocations: 2.408 MB / 0.5663 GB, free: 11.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001582/0.5956, allocations: 0.998 MB / 0.5673 GB, free: 10.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002702/0.5983, allocations: 1.072 MB / 0.5683 GB, free: 9.047 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.5984, allocations: 305.1 kB / 0.5686 GB, free: 8.746 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003161/0.6016, allocations: 1.912 MB / 0.5705 GB, free: 6.828 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004922/0.6065, allocations: 4.669 MB / 0.575 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2307/0.8373, allocations: 7.148 MB / 0.582 GB, free: 121 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.928e-05/0.8374, allocations: 25.53 kB / 0.582 GB, free: 121 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01163/0.849, allocations: 7.05 MB / 0.5889 GB, free: 118.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.389e-05/0.8491, allocations: 45.88 kB / 0.589 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.8492, allocations: 95.22 kB / 0.589 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.8504, allocations: 0.5532 MB / 0.5896 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003907/0.8543, allocations: 1.227 MB / 0.5908 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007813/0.8621, allocations: 7.361 MB / 0.598 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004928/0.8671, allocations: 275.8 kB / 0.5982 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008791/0.868, allocations: 312.5 kB / 0.5985 GB, free: 113.8 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.003275/0.8713, allocations: 1.856 MB / 0.6003 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005733/0.8719, allocations: 293.9 kB / 0.6006 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005588/0.8775, allocations: 3.838 MB / 0.6044 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001137/0.8776, allocations: 40.33 kB / 0.6044 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.8776, allocations: 9.453 kB / 0.6044 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.8776, allocations: 10.03 kB / 0.6044 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01697/0.8946, allocations: 10.97 MB / 0.6151 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/0.8947, allocations: 6.094 kB / 0.6152 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/0.8963, allocations: 391.7 kB / 0.6155 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001399/0.8977, allocations: 0.5531 MB / 0.6161 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001722/0.8979, allocations: 55.78 kB / 0.6161 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009438/0.9073, allocations: 8.107 MB / 0.624 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003216/0.9106, allocations: 3.285 MB / 0.6272 GB, free: 99.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008863/0.9195, allocations: 5.849 MB / 0.633 GB, free: 97.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.9208, allocations: 0.6208 MB / 0.6336 GB, free: 97.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004417/0.9213, allocations: 54.55 kB / 0.6336 GB, free: 97.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.9226, allocations: 123.1 kB / 0.6337 GB, free: 97.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004482/0.923, allocations: 180 kB / 0.6339 GB, free: 97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/0.9232, allocations: 75.28 kB / 0.634 GB, free: 96.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002645/0.9258, allocations: 1.95 MB / 0.6359 GB, free: 96.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9259, allocations: 3.828 kB / 0.6359 GB, free: 96.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004153/0.93, allocations: 0.9842 MB / 0.6368 GB, free: 95.54 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.000447/0.9305, allocations: 204.3 kB / 0.637 GB, free: 95.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01417/0.9447, allocations: 9.033 MB / 0.6459 GB, free: 86.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.9447, allocations: 0 / 0.6459 GB, free: 86.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002958/0.9477, allocations: 2.133 MB / 0.6479 GB, free: 85.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003179/0.9508, allocations: 472.8 kB / 0.6484 GB, free: 84.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.9674, allocations: 10.82 MB / 0.659 GB, free: 74.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004048/0.9715, allocations: 3.007 MB / 0.6619 GB, free: 71.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004217/0.9757, allocations: 1.609 MB / 0.6635 GB, free: 70.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008973/0.9767, allocations: 239.4 kB / 0.6637 GB, free: 69.83 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9767, allocations: 0 / 0.6637 GB, free: 69.83 MB / 446.1 MB Notification: Performance of Templates: time 0.06048/1.037, allocations: 38.85 MB / 0.7016 GB, free: 31.22 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)