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.005876/0.005877, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.001391/0.001391, allocations: 190.6 kB / 16.67 MB, free: 5.949 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04532/0.04532, allocations: 9.124 MB / 299.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.91 kB / 414.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 51.43 MB / 466.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01084/0.1139, allocations: 10.09 MB / 476.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007272/0.1212, allocations: 2.901 MB / 479.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.1229, allocations: 39.94 kB / 479.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.124, allocations: 421.1 kB / 479.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003928/0.128, allocations: 1.646 MB / 481.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005159/0.1285, allocations: 179.7 kB / 481.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003773/0.1323, allocations: 2.976 MB / 484.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001767/0.1341, allocations: 1.05 MB / 485.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.136, allocations: 1.085 MB / 486.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002557/0.1385, allocations: 1.584 MB / 488 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008334/0.1394, allocations: 268 kB / 488.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00222/0.1416, allocations: 0.866 MB / 489.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001736/0.1434, allocations: 1.488 MB / 490.7 MB, free: 9.012 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002003/0.1454, allocations: 1.856 MB / 492.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006093/0.1515, allocations: 5.772 MB / 498.3 MB, free: 1.352 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.1515, allocations: 7.984 kB / 498.3 MB, free: 1.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1515, allocations: 0 / 498.3 MB, free: 1.344 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001249/0.1517, allocations: 0 / 498.3 MB, free: 1.344 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: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.02496/0.1766, allocations: 6.946 MB / 0.4934 GB, free: 10.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1767, allocations: 8.031 kB / 0.4934 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00659/0.1833, allocations: 1.84 MB / 0.4952 GB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003296/0.1866, allocations: 1.697 MB / 0.4969 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.1868, allocations: 184.9 kB / 0.497 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006269/0.1874, allocations: 255.8 kB / 0.4973 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2787/0.4661, allocations: 10.4 MB / 0.5074 GB, free: 38.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001123/0.4663, allocations: 36.84 kB / 0.5075 GB, free: 38.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003654/0.4666, allocations: 118.9 kB / 0.5076 GB, free: 38.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003444/0.4701, allocations: 2.151 MB / 0.5097 GB, free: 38.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02398/0.4941, allocations: 10.36 MB / 0.5198 GB, free: 34.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04089/0.535, allocations: 33.41 MB / 0.5524 GB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/0.5505, allocations: 4.331 MB / 0.5567 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002292/0.5528, allocations: 1.679 MB / 0.5583 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0107/0.5636, allocations: 8.605 MB / 0.5667 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.099e-05/0.5637, allocations: 52.56 kB / 0.5667 GB, free: 6.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=237): time 4.659e-06/0.5637, allocations: 0 / 0.5667 GB, free: 6.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=277): time 0.02783/0.5915, allocations: 12.76 MB / 0.5792 GB, free: 9.188 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00433/0.5959, allocations: 3.523 MB / 0.5826 GB, free: 5.504 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004561/0.6005, allocations: 3.051 MB / 0.5856 GB, free: 2.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005416/0.601, allocations: 61.7 kB / 0.5857 GB, free: 2.375 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002398/0.6034, allocations: 2.412 MB / 0.588 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001723/0.6052, allocations: 0.9942 MB / 0.589 GB, free: 14.92 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001852/0.607, allocations: 1.072 MB / 0.5901 GB, free: 13.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.6072, allocations: 305.1 kB / 0.5904 GB, free: 13.54 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003248/0.6104, allocations: 1.904 MB / 0.5922 GB, free: 11.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005205/0.6156, allocations: 4.661 MB / 0.5968 GB, free: 5.629 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009308/0.625, allocations: 7.172 MB / 0.6038 GB, free: 13.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.956e-05/0.6251, allocations: 28.84 kB / 0.6038 GB, free: 13.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01341/0.6385, allocations: 7.027 MB / 0.6107 GB, free: 6.062 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.297e-05/0.6386, allocations: 48 kB / 0.6107 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/0.6387, allocations: 92.08 kB / 0.6108 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.64, allocations: 0.5598 MB / 0.6113 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004183/0.6442, allocations: 1.232 MB / 0.6125 GB, free: 4.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009919/0.6541, allocations: 7.343 MB / 0.6197 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004323/0.6585, allocations: 275.9 kB / 0.62 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001157/0.6597, allocations: 312 kB / 0.6203 GB, free: 11.91 MB / 462.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.003953/0.6637, allocations: 1.858 MB / 0.6221 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007626/0.6644, allocations: 301.3 kB / 0.6224 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007406/0.6719, allocations: 3.843 MB / 0.6261 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000111/0.672, allocations: 39.98 kB / 0.6262 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-05/0.672, allocations: 8 kB / 0.6262 GB, free: 5.789 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-05/0.6721, allocations: 11.95 kB / 0.6262 GB, free: 5.777 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.021/0.6931, allocations: 10.85 MB / 0.6368 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.6931, allocations: 11.94 kB / 0.6368 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.6947, allocations: 392.5 kB / 0.6372 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/0.696, allocations: 0.554 MB / 0.6377 GB, free: 9.746 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001915/0.6962, allocations: 63.95 kB / 0.6378 GB, free: 9.684 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009858/0.7061, allocations: 8.088 MB / 0.6457 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003678/0.7098, allocations: 3.284 MB / 0.6489 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01122/0.7211, allocations: 5.841 MB / 0.6546 GB, free: 7.883 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002072/0.7232, allocations: 0.6261 MB / 0.6552 GB, free: 7.234 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009206/0.7241, allocations: 56 kB / 0.6552 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001723/0.7259, allocations: 127.8 kB / 0.6554 GB, free: 7.055 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004542/0.7264, allocations: 173.6 kB / 0.6555 GB, free: 6.883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001799/0.7266, allocations: 75.98 kB / 0.6556 GB, free: 6.809 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003483/0.73, allocations: 1.952 MB / 0.6575 GB, free: 4.852 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7301, allocations: 0 / 0.6575 GB, free: 4.852 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00458/0.7346, allocations: 0.9818 MB / 0.6585 GB, free: 3.875 MB / 494.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.0005899/0.7353, allocations: 196.4 kB / 0.6587 GB, free: 3.676 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008546/0.7438, allocations: 5.079 MB / 0.6636 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/0.7439, allocations: 4 kB / 0.6636 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00359/0.7474, allocations: 2.137 MB / 0.6657 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003441/0.7509, allocations: 476.6 kB / 0.6662 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/0.7682, allocations: 8.877 MB / 0.6748 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003811/0.7721, allocations: 3.004 MB / 0.6778 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00418/0.7763, allocations: 1.613 MB / 0.6793 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007701/0.7771, allocations: 235.4 kB / 0.6796 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of SimCode: time 8.42e-07/0.7771, allocations: 0 / 0.6796 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of Templates: time 0.3434/1.121, allocations: 36.25 MB / 0.715 GB, free: 179.5 MB / 0.5294 GB 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)