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-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.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.006541/0.006541, allocations: 99.44 kB / 15.73 MB, free: 6.449 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.001216/0.001216, allocations: 192.7 kB / 16.67 MB, free: 6.352 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2012/0.2012, allocations: 9.111 MB / 299.6 MB, free: 1.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 64.12 kB / 414.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2867, allocations: 51.42 MB / 466.1 MB, free: 18.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01391/0.3007, allocations: 16.17 MB / 482.2 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009976/0.3107, allocations: 4.113 MB / 486.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004004/0.3148, allocations: 71.34 kB / 486.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002644/0.3175, allocations: 0.647 MB / 487.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00775/0.3253, allocations: 2.201 MB / 489.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.327, allocations: 483.4 kB / 489.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009222/0.3363, allocations: 4.64 MB / 494.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003908/0.3402, allocations: 1.897 MB / 496.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004143/0.3444, allocations: 1.731 MB / 498 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004695/0.3491, allocations: 2.418 MB / 0.4887 GB, free: 9.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001832/0.351, allocations: 416 kB / 0.4891 GB, free: 9.297 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003392/0.3544, allocations: 1.038 MB / 0.4901 GB, free: 8.258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002639/0.3571, allocations: 2.158 MB / 0.4922 GB, free: 6.094 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004093/0.3612, allocations: 2.8 MB / 0.495 GB, free: 3.277 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.3716, allocations: 8.213 MB / 0.503 GB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3717, allocations: 0 / 0.503 GB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3717, allocations: 7.938 kB / 0.503 GB, free: 11.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000328/0.372, allocations: 0 / 0.503 GB, free: 11.02 MB / 382.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.04867/0.4207, allocations: 12.11 MB / 0.5148 GB, free: 14.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.4208, allocations: 8.031 kB / 0.5148 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007977/0.4288, allocations: 2.084 MB / 0.5168 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005688/0.4345, allocations: 2.485 MB / 0.5193 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/0.4348, allocations: 303.9 kB / 0.5196 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001433/0.4363, allocations: 411.6 kB / 0.52 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03441/0.4707, allocations: 15.28 MB / 0.5349 GB, free: 9.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002256/0.471, allocations: 59.53 kB / 0.5349 GB, free: 9.281 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008684/0.4718, allocations: 187.8 kB / 0.5351 GB, free: 9.098 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004736/0.4766, allocations: 2.859 MB / 0.5379 GB, free: 6.234 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03964/0.5163, allocations: 16.01 MB / 0.5535 GB, free: 6.207 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3496/0.8659, allocations: 52.67 MB / 0.605 GB, free: 75.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03436/0.9004, allocations: 7.605 MB / 0.6124 GB, free: 74.86 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005184/0.9056, allocations: 2.992 MB / 0.6153 GB, free: 74.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02475/0.9304, allocations: 20.42 MB / 0.6353 GB, free: 60.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01023/0.9406, allocations: 3.799 MB / 0.639 GB, free: 59.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=429): time 1.089e-05/0.9407, allocations: 0 / 0.639 GB, free: 59.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.06136/1.002, allocations: 44.11 MB / 0.6821 GB, free: 23.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002566/1.002, allocations: 0.8324 MB / 0.6829 GB, free: 22.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005885/1.008, allocations: 4.372 MB / 0.6871 GB, free: 17.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009544/1.009, allocations: 105.7 kB / 0.6872 GB, free: 17.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002455/1.012, allocations: 3.64 MB / 0.6908 GB, free: 14.12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002207/1.014, allocations: 1.898 MB / 0.6926 GB, free: 12.26 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002306/1.016, allocations: 1.677 MB / 0.6943 GB, free: 10.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.894e-05/1.016, allocations: 309.1 kB / 0.6946 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004046/1.02, allocations: 2.996 MB / 0.6975 GB, free: 7.258 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005977/1.026, allocations: 7.124 MB / 0.7045 GB, free: 14.21 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/1.04, allocations: 11.13 MB / 0.7153 GB, free: 1.129 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.04, allocations: 44 kB / 0.7154 GB, free: 1.086 MB / 478.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01941/1.06, allocations: 11.08 MB / 0.7262 GB, free: 5.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/1.06, allocations: 93.7 kB / 0.7263 GB, free: 5.871 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001394/1.06, allocations: 143.8 kB / 0.7264 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002094/1.062, allocations: 0.9381 MB / 0.7273 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006482/1.069, allocations: 1.996 MB / 0.7293 GB, free: 2.785 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/1.08, allocations: 8.118 MB / 0.7372 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007099/1.087, allocations: 481.3 kB / 0.7377 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001928/1.089, allocations: 483.9 kB / 0.7381 GB, free: 9.594 MB / 0.4981 GB 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.005458/1.095, allocations: 2.541 MB / 0.7406 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/1.096, allocations: 0.489 MB / 0.7411 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009621/1.105, allocations: 5.843 MB / 0.7468 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001537/1.105, allocations: 71.03 kB / 0.7469 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.747e-05/1.105, allocations: 24 kB / 0.7469 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.455e-05/1.105, allocations: 31.91 kB / 0.7469 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02691/1.132, allocations: 18.61 MB / 0.7651 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-05/1.132, allocations: 8 kB / 0.7651 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00348/1.136, allocations: 0.8004 MB / 0.7659 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001986/1.138, allocations: 0.7796 MB / 0.7666 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005394/1.139, allocations: 103.9 kB / 0.7667 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01039/1.149, allocations: 7.405 MB / 0.774 GB, free: 4.227 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/1.149, allocations: 8 kB / 0.774 GB, free: 4.219 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01625/1.165, allocations: 10.05 MB / 0.7838 GB, free: 9.914 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/1.166, allocations: 0.5375 MB / 0.7843 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007545/1.167, allocations: 96.05 kB / 0.7844 GB, free: 9.262 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/1.169, allocations: 239.6 kB / 0.7846 GB, free: 9.031 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006135/1.17, allocations: 323.1 kB / 0.785 GB, free: 8.715 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/1.17, allocations: 140 kB / 0.7851 GB, free: 8.578 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004097/1.174, allocations: 2.75 MB / 0.7878 GB, free: 5.82 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/1.174, allocations: 4 kB / 0.7878 GB, free: 5.816 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005886/1.18, allocations: 1.515 MB / 0.7893 GB, free: 4.301 MB / 0.545 GB 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.0006779/1.181, allocations: 282.9 kB / 0.7895 GB, free: 4.012 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2452/1.426, allocations: 8.266 MB / 0.7976 GB, free: 190 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/1.426, allocations: 0 / 0.7976 GB, free: 190 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005524/1.432, allocations: 3.643 MB / 0.8012 GB, free: 189 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004484/1.436, allocations: 0.6828 MB / 0.8018 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02996/1.466, allocations: 13.65 MB / 0.8152 GB, free: 182.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004923/1.471, allocations: 4.027 MB / 0.8191 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00636/1.477, allocations: 2.393 MB / 0.8214 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/1.479, allocations: 383.7 kB / 0.8218 GB, free: 180.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.372e-06/1.479, allocations: 0 / 0.8218 GB, free: 180.8 MB / 0.545 GB Notification: Performance of Templates: time 0.08653/1.565, allocations: 55.63 MB / 0.8761 GB, free: 137.6 MB / 0.545 GB 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)