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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001097/0.001097, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.437/1.437, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04506/0.04506, allocations: 9.111 MB / 300.3 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 59.91 kB / 363.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2149, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.0122/0.2272, allocations: 16.17 MB / 431 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00841/0.2357, allocations: 4.114 MB / 435.1 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002115/0.2378, allocations: 63.88 kB / 435.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.2392, allocations: 0.6435 MB / 435.8 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004174/0.2434, allocations: 2.204 MB / 438 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000987/0.2444, allocations: 487.2 kB / 438.5 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005423/0.2498, allocations: 4.634 MB / 443.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002524/0.2523, allocations: 1.9 MB / 445 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002701/0.2551, allocations: 1.731 MB / 446.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/0.258, allocations: 2.424 MB / 449.2 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007719/0.2588, allocations: 412 kB / 449.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00202/0.2608, allocations: 1.03 MB / 450.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002408/0.2633, allocations: 2.146 MB / 452.7 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002991/0.2663, allocations: 2.808 MB / 455.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008675/0.2749, allocations: 8.149 MB / 463.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.275, allocations: 4 kB / 463.7 MB, free: 7.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.275, allocations: 4 kB / 463.7 MB, free: 7.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001841/0.2752, allocations: 0 / 463.7 MB, free: 7.738 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2054 * Number of variables: 2054 Notification: Performance of Generate backend data structure: time 0.04643/0.3216, allocations: 11.94 MB / 475.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3217, allocations: 12.03 kB / 475.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007027/0.3287, allocations: 2.052 MB / 477.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005507/0.3342, allocations: 2.472 MB / 480.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002492/0.3345, allocations: 307.9 kB / 480.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009331/0.3355, allocations: 407.5 kB / 480.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03171/0.3672, allocations: 15.28 MB / 496.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001673/0.3674, allocations: 47.53 kB / 496.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006669/0.3681, allocations: 191.8 kB / 496.4 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004332/0.3724, allocations: 2.867 MB / 499.3 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03716/0.4096, allocations: 16 MB / 0.5032 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2774/0.687, allocations: 52.59 MB / 0.5545 GB, free: 44.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02843/0.7155, allocations: 7.62 MB / 0.562 GB, free: 37.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003894/0.7194, allocations: 2.983 MB / 0.5649 GB, free: 34.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02121/0.7406, allocations: 20.4 MB / 0.5848 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00899/0.7497, allocations: 3.797 MB / 0.5885 GB, free: 8.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=429): time 6.342e-06/0.7497, allocations: 0 / 0.5885 GB, free: 8.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=504): time 0.06486/0.8146, allocations: 42.39 MB / 0.6299 GB, free: 13.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003484/0.8149, allocations: 0.8225 MB / 0.6307 GB, free: 12.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005541/0.8205, allocations: 4.365 MB / 0.635 GB, free: 7.695 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005135/0.821, allocations: 105.7 kB / 0.6351 GB, free: 7.586 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00272/0.8237, allocations: 3.507 MB / 0.6385 GB, free: 4.031 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001783/0.8255, allocations: 1.799 MB / 0.6403 GB, free: 2.207 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002233/0.8278, allocations: 1.684 MB / 0.6419 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.8279, allocations: 301.1 kB / 0.6422 GB, free: 216 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004524/0.8324, allocations: 2.988 MB / 0.6451 GB, free: 13.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007384/0.8398, allocations: 7.133 MB / 0.6521 GB, free: 4.094 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01334/0.8532, allocations: 11.13 MB / 0.663 GB, free: 6.973 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.294e-05/0.8533, allocations: 46.62 kB / 0.663 GB, free: 6.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02169/0.875, allocations: 11.05 MB / 0.6738 GB, free: 11.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.8752, allocations: 93.53 kB / 0.6739 GB, free: 11.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001985/0.8754, allocations: 144.2 kB / 0.674 GB, free: 11.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002237/0.8777, allocations: 0.9358 MB / 0.6749 GB, free: 10.65 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006836/0.8845, allocations: 2.008 MB / 0.6769 GB, free: 8.637 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/0.8958, allocations: 8.096 MB / 0.6848 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1919/1.088, allocations: 476.3 kB / 0.6853 GB, free: 163.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001644/1.089, allocations: 486.6 kB / 0.6857 GB, free: 163.4 MB / 478.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],rightTrail.color[3],rightTrail.color[2],rightTrail.color[1],leftTrail.color[3],leftTrail.color[2],leftTrail.color[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],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1074): * Single equations (assignments): 1064 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,51,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004311/1.094, allocations: 2.524 MB / 0.6882 GB, free: 163.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008935/1.095, allocations: 479.6 kB / 0.6886 GB, free: 163.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009711/1.104, allocations: 5.848 MB / 0.6944 GB, free: 161.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00015/1.105, allocations: 67.64 kB / 0.6944 GB, free: 161.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.014e-05/1.105, allocations: 20.48 kB / 0.6944 GB, free: 161.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.786e-05/1.105, allocations: 28.88 kB / 0.6945 GB, free: 161.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02198/1.127, allocations: 18.61 MB / 0.7126 GB, free: 153.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.747e-05/1.127, allocations: 7.281 kB / 0.7126 GB, free: 153.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/1.13, allocations: 0.8021 MB / 0.7134 GB, free: 153.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/1.131, allocations: 0.7806 MB / 0.7142 GB, free: 153 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003316/1.132, allocations: 101.6 kB / 0.7143 GB, free: 152.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008171/1.14, allocations: 7.4 MB / 0.7215 GB, free: 146.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.375e-06/1.14, allocations: 12.44 kB / 0.7215 GB, free: 146.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01195/1.152, allocations: 10.03 MB / 0.7313 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/1.153, allocations: 0.5235 MB / 0.7318 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006227/1.153, allocations: 95.98 kB / 0.7319 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/1.155, allocations: 232.7 kB / 0.7321 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000593/1.156, allocations: 322.4 kB / 0.7325 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002512/1.156, allocations: 132 kB / 0.7326 GB, free: 136 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00318/1.159, allocations: 2.751 MB / 0.7353 GB, free: 133.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.16, allocations: 0 / 0.7353 GB, free: 133.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006323/1.166, allocations: 1.518 MB / 0.7367 GB, free: 131.8 MB / 478.1 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,revolute.phi,revolute2.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 (433): * Single equations (assignments): 422 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,51,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009135/1.167, allocations: 287 kB / 0.737 GB, free: 131.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01133/1.178, allocations: 8.267 MB / 0.7451 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.178, allocations: 0 / 0.7451 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004381/1.183, allocations: 3.637 MB / 0.7486 GB, free: 119.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00302/1.186, allocations: 0.6942 MB / 0.7493 GB, free: 118.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01802/1.204, allocations: 13.45 MB / 0.7625 GB, free: 105.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003603/1.207, allocations: 4.013 MB / 0.7664 GB, free: 101.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004803/1.212, allocations: 2.399 MB / 0.7687 GB, free: 98.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/1.213, allocations: 383.3 kB / 0.7691 GB, free: 98.42 MB / 478.1 MB Notification: Performance of SimCode: time 5.91e-07/1.213, allocations: 0 / 0.7691 GB, free: 98.42 MB / 478.1 MB Notification: Performance of Templates: time 0.08119/1.294, allocations: 52.68 MB / 0.8205 GB, free: 46.16 MB / 478.1 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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe 2>&1)