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.0008231/0.0008231, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0008614/0.0008614, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.192/0.192, allocations: 9.121 MB / 300.2 MB, free: 2.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.0003201, allocations: 4 kB / 363.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1124, allocations: 52.43 MB / 415.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2421/0.3545, allocations: 69.03 MB / 484.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0352/0.3898, allocations: 14.73 MB / 499.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0162/0.406, allocations: 283.7 kB / 499.6 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01157/0.4176, allocations: 3.41 MB / 0.4912 GB, free: 3.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03278/0.4504, allocations: 11.69 MB / 0.5026 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004358/0.4548, allocations: 438.1 kB / 0.503 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008682/0.4635, allocations: 5.124 MB / 0.508 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00385/0.4674, allocations: 1.658 MB / 0.5097 GB, free: 9.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003594/0.471, allocations: 1.553 MB / 0.5112 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003887/0.4749, allocations: 2.374 MB / 0.5135 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001733/0.4767, allocations: 245.1 kB / 0.5137 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003478/0.4802, allocations: 0.8036 MB / 0.5145 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003237/0.4834, allocations: 1.951 MB / 0.5164 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00247/0.4859, allocations: 1.08 MB / 0.5175 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00772/0.4937, allocations: 5.931 MB / 0.5233 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.4937, allocations: 4 kB / 0.5233 GB, free: 11.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4937, allocations: 3.938 kB / 0.5233 GB, free: 11.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002856/0.494, allocations: 4 kB / 0.5233 GB, free: 11.62 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.04076/0.5348, allocations: 10.79 MB / 0.5338 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.5348, allocations: 8.031 kB / 0.5338 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007961/0.5428, allocations: 2.094 MB / 0.5359 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005611/0.5485, allocations: 2.427 MB / 0.5382 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003959/0.5489, allocations: 307.5 kB / 0.5385 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001952/0.5509, allocations: 399.6 kB / 0.5389 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03555/0.5864, allocations: 15.28 MB / 0.5538 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003092/0.5868, allocations: 55.53 kB / 0.5539 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002279/0.5891, allocations: 191.8 kB / 0.5541 GB, free: 11.08 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0054/0.5945, allocations: 2.859 MB / 0.5569 GB, free: 8.219 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0359/0.6304, allocations: 15.99 MB / 0.5725 GB, free: 8.215 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2854/0.9158, allocations: 52.71 MB / 0.6239 GB, free: 85.19 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02841/0.9443, allocations: 7.675 MB / 0.6314 GB, free: 82.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005021/0.9494, allocations: 2.977 MB / 0.6343 GB, free: 81.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02553/0.9749, allocations: 20.4 MB / 0.6543 GB, free: 67.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01086/0.9858, allocations: 3.798 MB / 0.658 GB, free: 66.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 1.229e-05/0.9859, allocations: 1.719 kB / 0.658 GB, free: 66.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.06143/1.047, allocations: 42.36 MB / 0.6994 GB, free: 34.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/1.048, allocations: 0.8264 MB / 0.7002 GB, free: 33.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005042/1.053, allocations: 4.333 MB / 0.7044 GB, free: 29.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001032/1.054, allocations: 101.7 kB / 0.7045 GB, free: 29.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003134/1.057, allocations: 3.512 MB / 0.7079 GB, free: 25.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002162/1.059, allocations: 1.799 MB / 0.7097 GB, free: 24.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005905/1.06, allocations: 176 kB / 0.7098 GB, free: 23.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004149/1.06, allocations: 0.6782 MB / 0.7105 GB, free: 23.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004537/1.065, allocations: 2.957 MB / 0.7134 GB, free: 20.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007993/1.073, allocations: 7.11 MB / 0.7203 GB, free: 11.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007884/1.08, allocations: 4.599 MB / 0.7248 GB, free: 6.621 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001463/1.081, allocations: 40 kB / 0.7249 GB, free: 6.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02056/1.101, allocations: 10.99 MB / 0.7356 GB, free: 11.56 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/1.101, allocations: 95.73 kB / 0.7357 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/1.102, allocations: 140.9 kB / 0.7358 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002208/1.104, allocations: 0.9553 MB / 0.7368 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007221/1.111, allocations: 2 MB / 0.7387 GB, free: 8.348 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/1.122, allocations: 7.474 MB / 0.746 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005793/1.128, allocations: 479.2 kB / 0.7465 GB, free: 276 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.223/1.351, allocations: 484.9 kB / 0.7469 GB, free: 123.6 MB / 462.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (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.00557/1.356, allocations: 2.529 MB / 0.7494 GB, free: 123.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/1.358, allocations: 477.8 kB / 0.7499 GB, free: 123.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.369, allocations: 5.847 MB / 0.7556 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001654/1.37, allocations: 66.58 kB / 0.7556 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.193e-05/1.37, allocations: 15.72 kB / 0.7556 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.586e-05/1.37, allocations: 31.66 kB / 0.7557 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02251/1.392, allocations: 18.9 MB / 0.7741 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.937e-05/1.392, allocations: 9.562 kB / 0.7741 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002997/1.395, allocations: 0.8095 MB / 0.7749 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/1.397, allocations: 0.7737 MB / 0.7757 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003309/1.397, allocations: 101 kB / 0.7758 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007846/1.405, allocations: 6.789 MB / 0.7824 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.936e-06/1.405, allocations: 13.03 kB / 0.7824 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01336/1.419, allocations: 9.989 MB / 0.7922 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/1.42, allocations: 0.5397 MB / 0.7927 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007613/1.421, allocations: 92.83 kB / 0.7928 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001974/1.423, allocations: 241.2 kB / 0.793 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006252/1.423, allocations: 322.2 kB / 0.7933 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002644/1.423, allocations: 136.8 kB / 0.7935 GB, free: 106.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004933/1.428, allocations: 2.72 MB / 0.7961 GB, free: 105.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.428, allocations: 0 / 0.7961 GB, free: 105.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008358/1.437, allocations: 1.51 MB / 0.7976 GB, free: 105.6 MB / 462.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 (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.0008599/1.438, allocations: 276.2 kB / 0.7979 GB, free: 105.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0139/1.452, allocations: 8.184 MB / 0.8059 GB, free: 102.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/1.452, allocations: 7.188 kB / 0.8059 GB, free: 102.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005732/1.457, allocations: 3.622 MB / 0.8094 GB, free: 100.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003689/1.461, allocations: 0.662 MB / 0.81 GB, free: 100.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/1.48, allocations: 15.97 MB / 0.8256 GB, free: 85.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003423/1.483, allocations: 4.026 MB / 0.8296 GB, free: 82.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005415/1.489, allocations: 2.397 MB / 0.8319 GB, free: 81.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/1.49, allocations: 378.6 kB / 0.8323 GB, free: 80.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/1.49, allocations: 0 / 0.8323 GB, free: 80.9 MB / 462.1 MB Notification: Performance of Templates: time 0.08044/1.57, allocations: 55.11 MB / 0.8861 GB, free: 27.1 MB / 462.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)