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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 173.3 kB / 16.12 MB, free: 5.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.3 MB / 240.1 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009098/0.00091, allocations: 91.97 kB / 291.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04028/0.04028, allocations: 8.948 MB / 351.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003756/0.0003757, allocations: 8 kB / 414.4 MB, free: 56.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1042, allocations: 52.39 MB / 466.8 MB, free: 4.395 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.4672, allocations: 88.08 MB / 0.5419 GB, free: 13.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.4674, allocations: 80.28 kB / 0.5419 GB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.183/0.6505, allocations: 72.87 MB / 0.6131 GB, free: 6.223 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.6505, allocations: 0 / 0.6131 GB, free: 6.223 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000189/0.6507, allocations: 56.19 kB / 0.6132 GB, free: 6.168 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1360 * Number of variables: 1360 Notification: Performance of Generate backend data structure: time 0.03444/0.6852, allocations: 4.513 MB / 0.6176 GB, free: 1.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.6852, allocations: 12.03 kB / 0.6176 GB, free: 1.578 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01457/0.6998, allocations: 1.993 MB / 0.6195 GB, free: 15.58 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006887/0.7068, allocations: 2.032 MB / 0.6215 GB, free: 13.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004248/0.7072, allocations: 254.9 kB / 0.6217 GB, free: 13.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002351/0.7096, allocations: 336.2 kB / 0.6221 GB, free: 12.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0333/0.7429, allocations: 9.801 MB / 0.6316 GB, free: 2.617 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/0.7432, allocations: 47.58 kB / 0.6317 GB, free: 2.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001353/0.7446, allocations: 151.9 kB / 0.6318 GB, free: 2.422 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002793/0.7474, allocations: 1.104 MB / 0.6329 GB, free: 1.316 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03408/0.7815, allocations: 10.06 MB / 0.6427 GB, free: 7.238 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3544/1.136, allocations: 32.78 MB / 0.6747 GB, free: 97.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01572/1.152, allocations: 4.109 MB / 0.6788 GB, free: 97.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002769/1.155, allocations: 1.501 MB / 0.6802 GB, free: 97.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009297/1.164, allocations: 8.38 MB / 0.6884 GB, free: 91.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/1.164, allocations: 56.31 kB / 0.6885 GB, free: 91.86 MB / 458.7 MB Notification: Performance of pre-optimization done (n=213): time 7.143e-06/1.164, allocations: 5.25 kB / 0.6885 GB, free: 91.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=249): time 0.0232/1.187, allocations: 11.65 MB / 0.6998 GB, free: 90.37 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00334/1.191, allocations: 3.341 MB / 0.7031 GB, free: 88.13 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/1.195, allocations: 2.925 MB / 0.706 GB, free: 87.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003423/1.195, allocations: 65.28 kB / 0.706 GB, free: 87.01 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/1.196, allocations: 2.389 MB / 0.7084 GB, free: 85.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008917/1.197, allocations: 0.9051 MB / 0.7092 GB, free: 84.65 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/1.198, allocations: 112.7 kB / 0.7093 GB, free: 84.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002578/1.198, allocations: 0.5285 MB / 0.7099 GB, free: 84.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002418/1.2, allocations: 1.719 MB / 0.7115 GB, free: 83.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003703/1.204, allocations: 4.438 MB / 0.7159 GB, free: 79.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007021/1.211, allocations: 6.725 MB / 0.7224 GB, free: 74.39 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.198e-05/1.211, allocations: 28.59 kB / 0.7225 GB, free: 74.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01117/1.222, allocations: 6.595 MB / 0.7289 GB, free: 71.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.987e-05/1.222, allocations: 43.34 kB / 0.7289 GB, free: 71.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001004/1.222, allocations: 97.31 kB / 0.729 GB, free: 71.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/1.224, allocations: 0.5268 MB / 0.7296 GB, free: 71.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003602/1.227, allocations: 1.147 MB / 0.7307 GB, free: 71.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006497/1.234, allocations: 6.378 MB / 0.7369 GB, free: 67.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004161/1.238, allocations: 251.7 kB / 0.7371 GB, free: 67.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000819/1.239, allocations: 307.7 kB / 0.7374 GB, free: 67.37 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * 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],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],chassis.color[3],chassis.color[2],chassis.color[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 (630): * Single equations (assignments): 624 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003465/1.242, allocations: 1.818 MB / 0.7392 GB, free: 66.44 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005067/1.243, allocations: 283.9 kB / 0.7395 GB, free: 66.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004986/1.248, allocations: 3.397 MB / 0.7428 GB, free: 65.01 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-05/1.248, allocations: 33.61 kB / 0.7428 GB, free: 65.01 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/1.248, allocations: 10.25 kB / 0.7428 GB, free: 65.01 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/1.248, allocations: 10.5 kB / 0.7429 GB, free: 65.01 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/1.263, allocations: 10.32 MB / 0.7529 GB, free: 56.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/1.263, allocations: 4 kB / 0.7529 GB, free: 56.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/1.264, allocations: 321.2 kB / 0.7532 GB, free: 56.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/1.266, allocations: 0.5271 MB / 0.7538 GB, free: 55.99 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001877/1.266, allocations: 51.52 kB / 0.7538 GB, free: 55.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00723/1.273, allocations: 6.836 MB / 0.7605 GB, free: 49.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002914/1.276, allocations: 3.063 MB / 0.7635 GB, free: 46.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00691/1.283, allocations: 5.121 MB / 0.7685 GB, free: 42.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008927/1.284, allocations: 365.8 kB / 0.7688 GB, free: 41.75 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/1.284, allocations: 40 kB / 0.7689 GB, free: 41.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/1.285, allocations: 103.9 kB / 0.769 GB, free: 41.63 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/1.286, allocations: 161.8 kB / 0.7691 GB, free: 41.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/1.286, allocations: 71.94 kB / 0.7692 GB, free: 41.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002916/1.289, allocations: 1.859 MB / 0.771 GB, free: 39.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.289, allocations: 0 / 0.771 GB, free: 39.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004305/1.293, allocations: 0.9437 MB / 0.7719 GB, free: 38.97 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,idealWheelFront.phi_roll,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,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 (181): * Single equations (assignments): 175 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003933/1.293, allocations: 200.3 kB / 0.7721 GB, free: 38.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005929/1.299, allocations: 4.617 MB / 0.7766 GB, free: 34.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.299, allocations: 4 kB / 0.7766 GB, free: 34.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002329/1.302, allocations: 1.908 MB / 0.7785 GB, free: 33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003463/1.305, allocations: 428.1 kB / 0.7789 GB, free: 32.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/1.317, allocations: 10 MB / 0.7887 GB, free: 22.63 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002585/1.32, allocations: 2.934 MB / 0.7915 GB, free: 19.69 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003633/1.323, allocations: 1.51 MB / 0.793 GB, free: 18.18 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005594/1.324, allocations: 223.4 kB / 0.7932 GB, free: 17.96 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/1.324, allocations: 4 kB / 0.7932 GB, free: 17.96 MB / 458.7 MB Notification: Performance of Templates: time 0.06221/1.386, allocations: 34.41 MB / 0.8268 GB, free: 116 kB / 474.7 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)