Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.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.TwoTrackWithDifferentialGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear") translateModel(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008874/0.0008874, allocations: 171.6 kB / 16.11 MB, free: 5.555 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.308/1.308, allocations: 223.3 MB / 240.1 MB, free: 9.984 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.0008655/0.0008654, allocations: 95.75 kB / 291.3 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04021/0.04021, allocations: 8.947 MB / 351.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.000363, allocations: 8.531 kB / 414.4 MB, free: 56.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.107, allocations: 52.39 MB / 466.8 MB, free: 4.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3904/0.4975, allocations: 91.45 MB / 0.5452 GB, free: 10.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.4978, allocations: 85.16 kB / 0.5452 GB, free: 10.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4824/0.9803, allocations: 112.7 MB / 0.6553 GB, free: 96.28 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.409e-06/0.9804, allocations: 0 / 0.6553 GB, free: 96.28 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002613/0.9806, allocations: 103.4 kB / 0.6554 GB, free: 96.27 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.04654/1.027, allocations: 7.595 MB / 0.6628 GB, free: 94.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.328e-05/1.027, allocations: 12.56 kB / 0.6628 GB, free: 94.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/1.04, allocations: 2.253 MB / 0.665 GB, free: 94.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009803/1.05, allocations: 2.911 MB / 0.6678 GB, free: 93.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006067/1.051, allocations: 404.9 kB / 0.6682 GB, free: 93.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003493/1.054, allocations: 0.5217 MB / 0.6687 GB, free: 93.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04077/1.095, allocations: 14.81 MB / 0.6832 GB, free: 91.17 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003236/1.096, allocations: 58.23 kB / 0.6833 GB, free: 91.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002062/1.098, allocations: 244.6 kB / 0.6835 GB, free: 91.16 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002601/1.1, allocations: 1.622 MB / 0.6851 GB, free: 91.15 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03675/1.137, allocations: 15.92 MB / 0.7006 GB, free: 91.11 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07991/1.217, allocations: 52.86 MB / 0.7522 GB, free: 56.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02885/1.246, allocations: 7.452 MB / 0.7595 GB, free: 50.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004858/1.251, allocations: 2.906 MB / 0.7624 GB, free: 47.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03101/1.282, allocations: 20.17 MB / 0.7821 GB, free: 28.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01164/1.293, allocations: 3.72 MB / 0.7857 GB, free: 25.51 MB / 458.7 MB Notification: Performance of pre-optimization done (n=421): time 1.597e-05/1.294, allocations: 0 / 0.7857 GB, free: 25.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=496): time 0.3376/1.631, allocations: 42.19 MB / 0.8269 GB, free: 105.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002441/1.631, allocations: 0.8255 MB / 0.8277 GB, free: 104.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00771/1.639, allocations: 4.252 MB / 0.8319 GB, free: 104.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008335/1.64, allocations: 101.2 kB / 0.832 GB, free: 104.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003039/1.643, allocations: 3.533 MB / 0.8354 GB, free: 103.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002543/1.646, allocations: 1.778 MB / 0.8371 GB, free: 102.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005157/1.646, allocations: 176.9 kB / 0.8373 GB, free: 102.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005724/1.647, allocations: 0.6714 MB / 0.838 GB, free: 102 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006087/1.653, allocations: 2.909 MB / 0.8408 GB, free: 101.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008414/1.661, allocations: 7.033 MB / 0.8477 GB, free: 96.79 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01403/1.675, allocations: 10.96 MB / 0.8584 GB, free: 91.61 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002249/1.676, allocations: 42.91 kB / 0.8584 GB, free: 91.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.02196/1.698, allocations: 10.85 MB / 0.869 GB, free: 90.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003518/1.698, allocations: 92.73 kB / 0.8691 GB, free: 90.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003285/1.698, allocations: 139.9 kB / 0.8692 GB, free: 90.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002112/1.7, allocations: 0.928 MB / 0.8701 GB, free: 90.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007207/1.708, allocations: 1.974 MB / 0.8721 GB, free: 90.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009848/1.718, allocations: 7.476 MB / 0.8794 GB, free: 86.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007296/1.725, allocations: 470.2 kB / 0.8798 GB, free: 86.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001988/1.727, allocations: 485.7 kB / 0.8803 GB, free: 86.42 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 641 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rightTrail.color[3],rightTrail.color[2],rightTrail.color[1],leftTrail.color[3],leftTrail.color[2],leftTrail.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1066): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007112/1.734, allocations: 2.533 MB / 0.8828 GB, free: 85.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001734/1.736, allocations: 476.4 kB / 0.8832 GB, free: 84.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/1.747, allocations: 5.679 MB / 0.8888 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001456/1.747, allocations: 65.31 kB / 0.8888 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.13e-05/1.747, allocations: 18.69 kB / 0.8888 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.674e-05/1.747, allocations: 34.98 kB / 0.8889 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02726/1.774, allocations: 18.37 MB / 0.9068 GB, free: 73.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.897e-05/1.774, allocations: 8 kB / 0.9068 GB, free: 73.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/1.777, allocations: 0.7752 MB / 0.9076 GB, free: 73.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001651/1.779, allocations: 0.7563 MB / 0.9083 GB, free: 73.55 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003677/1.779, allocations: 102.3 kB / 0.9084 GB, free: 73.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007575/1.787, allocations: 6.632 MB / 0.9149 GB, free: 69.95 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/1.787, allocations: 14.25 kB / 0.9149 GB, free: 69.95 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01248/1.8, allocations: 9.602 MB / 0.9243 GB, free: 64.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001609/1.801, allocations: 0.5421 MB / 0.9248 GB, free: 63.81 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007345/1.802, allocations: 89.95 kB / 0.9249 GB, free: 63.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/1.804, allocations: 211.1 kB / 0.9251 GB, free: 63.58 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005505/1.805, allocations: 323.8 kB / 0.9254 GB, free: 63.37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.805, allocations: 137.1 kB / 0.9255 GB, free: 63.24 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003846/1.809, allocations: 2.65 MB / 0.9281 GB, free: 61.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.809, allocations: 1.203 kB / 0.9281 GB, free: 61.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007934/1.817, allocations: 1.519 MB / 0.9296 GB, free: 59.54 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 16 (body1.r[1],body1.r[2],body1.v[1],body1.v[2],body1.phi,body1.w,inertia.phi,inertia.w,inertia1.phi,inertia1.w,inertia2.phi,inertia2.w,inertia3.phi,inertia3.w,revolute2.phi,revolute.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (424): * Single equations (assignments): 413 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 51} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009324/1.818, allocations: 292.6 kB / 0.9299 GB, free: 59.26 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01261/1.83, allocations: 7.99 MB / 0.9377 GB, free: 52.11 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/1.83, allocations: 0 / 0.9377 GB, free: 52.11 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004851/1.835, allocations: 3.503 MB / 0.9411 GB, free: 48.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008656/1.844, allocations: 0.6575 MB / 0.9417 GB, free: 48.33 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02278/1.867, allocations: 15.85 MB / 0.9572 GB, free: 33.79 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00418/1.871, allocations: 4.025 MB / 0.9612 GB, free: 30.68 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006282/1.877, allocations: 2.352 MB / 0.9635 GB, free: 29.18 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001497/1.879, allocations: 384.5 kB / 0.9638 GB, free: 28.83 MB / 474.7 MB Notification: Performance of SimCode: time 2.344e-06/1.879, allocations: 0 / 0.9638 GB, free: 28.83 MB / 474.7 MB Notification: Performance of Templates: time 0.4152/2.294, allocations: 55.14 MB / 1.018 GB, free: 83.17 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.makefile (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.sim & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe 2>&1)