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.001069/0.001069, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.006551/0.006551, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.423/1.423, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1807/0.1807, allocations: 9.113 MB / 300.5 MB, free: 2.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003366/0.0003367, allocations: 8 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1077, allocations: 52.42 MB / 416.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2492/0.3569, allocations: 74.23 MB / 490.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03511/0.392, allocations: 15.22 MB / 0.4937 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01602/0.4081, allocations: 283.3 kB / 0.494 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.4107, allocations: 0.5308 MB / 0.4945 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007212/0.4179, allocations: 2.046 MB / 0.4965 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001745/0.4197, allocations: 414.1 kB / 0.4969 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009683/0.4294, allocations: 6.217 MB / 0.503 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003369/0.4328, allocations: 1.697 MB / 0.5047 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003362/0.4362, allocations: 1.479 MB / 0.5061 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004429/0.4406, allocations: 2.405 MB / 0.5085 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001265/0.4419, allocations: 241.8 kB / 0.5087 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002746/0.4447, allocations: 0.9177 MB / 0.5096 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00282/0.4475, allocations: 2.012 MB / 0.5115 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004123/0.4516, allocations: 2.667 MB / 0.5141 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.4627, allocations: 7.388 MB / 0.5214 GB, free: 13.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4628, allocations: 0 / 0.5214 GB, free: 13.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.4628, allocations: 0 / 0.5214 GB, free: 13.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000355/0.4631, allocations: 0 / 0.5214 GB, free: 13.81 MB / 398.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.05033/0.5135, allocations: 10.74 MB / 0.5319 GB, free: 2.977 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.5135, allocations: 8.031 kB / 0.5319 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008889/0.5224, allocations: 2.091 MB / 0.5339 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00662/0.5291, allocations: 2.468 MB / 0.5363 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003407/0.5295, allocations: 299.9 kB / 0.5366 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001849/0.5313, allocations: 407.5 kB / 0.537 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0354/0.5668, allocations: 15.3 MB / 0.5519 GB, free: 13.49 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001806/0.567, allocations: 63.42 kB / 0.552 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007639/0.5677, allocations: 195.8 kB / 0.5522 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004765/0.5725, allocations: 2.855 MB / 0.555 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03767/0.6102, allocations: 16.03 MB / 0.5706 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2682/0.8785, allocations: 52.74 MB / 0.6221 GB, free: 85.19 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03403/0.9125, allocations: 7.686 MB / 0.6296 GB, free: 82.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005163/0.9177, allocations: 2.99 MB / 0.6326 GB, free: 81.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03251/0.9503, allocations: 20.4 MB / 0.6525 GB, free: 67.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01287/0.9632, allocations: 3.81 MB / 0.6562 GB, free: 66.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 1.302e-05/0.9633, allocations: 0 / 0.6562 GB, free: 66.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.06751/1.031, allocations: 42.42 MB / 0.6976 GB, free: 36.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/1.031, allocations: 0.8302 MB / 0.6984 GB, free: 35.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005419/1.036, allocations: 4.363 MB / 0.7027 GB, free: 31.19 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007528/1.037, allocations: 105.7 kB / 0.7028 GB, free: 31.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002502/1.04, allocations: 3.506 MB / 0.7062 GB, free: 27.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002042/1.042, allocations: 1.803 MB / 0.708 GB, free: 25.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009717/1.043, allocations: 0.7092 MB / 0.7087 GB, free: 25.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.084e-05/1.043, allocations: 309.1 kB / 0.709 GB, free: 24.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004866/1.048, allocations: 2.996 MB / 0.7119 GB, free: 21.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007147/1.055, allocations: 7.137 MB / 0.7189 GB, free: 12.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01234/1.067, allocations: 11.15 MB / 0.7298 GB, free: 15.51 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001547/1.067, allocations: 40 kB / 0.7298 GB, free: 15.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02271/1.09, allocations: 11.06 MB / 0.7406 GB, free: 4.375 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001324/1.09, allocations: 93.7 kB / 0.7407 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/1.091, allocations: 144.2 kB / 0.7408 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/1.093, allocations: 0.9303 MB / 0.7417 GB, free: 3.191 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007639/1.101, allocations: 2.012 MB / 0.7437 GB, free: 1.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/1.112, allocations: 7.502 MB / 0.751 GB, free: 9.535 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005974/1.118, allocations: 480.3 kB / 0.7515 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/1.119, allocations: 487.9 kB / 0.7519 GB, free: 8.59 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.004529/1.124, allocations: 2.531 MB / 0.7544 GB, free: 6.047 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009112/1.125, allocations: 482 kB / 0.7549 GB, free: 5.57 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.205/1.33, allocations: 5.855 MB / 0.7606 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001986/1.33, allocations: 68.08 kB / 0.7607 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.639e-05/1.33, allocations: 17.28 kB / 0.7607 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001222/1.33, allocations: 32.53 kB / 0.7607 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0277/1.358, allocations: 18.91 MB / 0.7792 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.487e-05/1.358, allocations: 9.688 kB / 0.7792 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/1.361, allocations: 0.8127 MB / 0.78 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001818/1.363, allocations: 0.7819 MB / 0.7807 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005252/1.364, allocations: 98.52 kB / 0.7808 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008245/1.372, allocations: 6.812 MB / 0.7875 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/1.372, allocations: 17.28 kB / 0.7875 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/1.387, allocations: 10.03 MB / 0.7973 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/1.388, allocations: 0.5377 MB / 0.7978 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008615/1.389, allocations: 92.27 kB / 0.7979 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002405/1.391, allocations: 232.7 kB / 0.7981 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007432/1.392, allocations: 322.5 kB / 0.7984 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002816/1.392, allocations: 137.7 kB / 0.7986 GB, free: 125.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004459/1.397, allocations: 2.754 MB / 0.8013 GB, free: 124.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.397, allocations: 1.094 kB / 0.8013 GB, free: 124.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006794/1.404, allocations: 1.517 MB / 0.8027 GB, free: 124.7 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.0007189/1.404, allocations: 282.7 kB / 0.803 GB, free: 124.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01463/1.419, allocations: 8.226 MB / 0.811 GB, free: 121.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/1.419, allocations: 0.5938 kB / 0.811 GB, free: 121.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005959/1.425, allocations: 3.639 MB / 0.8146 GB, free: 119.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008809/1.434, allocations: 0.6535 MB / 0.8152 GB, free: 119.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02163/1.455, allocations: 16.65 MB / 0.8315 GB, free: 109.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00479/1.46, allocations: 4.017 MB / 0.8354 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005857/1.466, allocations: 2.402 MB / 0.8378 GB, free: 104.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/1.467, allocations: 382.7 kB / 0.8381 GB, free: 104.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/1.467, allocations: 0 / 0.8381 GB, free: 104.4 MB / 478.1 MB Notification: Performance of Templates: time 0.0866/1.554, allocations: 56.5 MB / 0.8933 GB, free: 49.99 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe 2>&1)