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.001177/0.001178, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0016/0.001601, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.414/1.414, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.159/0.159, allocations: 9.114 MB / 299.2 MB, free: 1.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 59.91 kB / 361.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1099, allocations: 51.43 MB / 412.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2747/0.3847, allocations: 76.02 MB / 488.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03686/0.4216, allocations: 15.24 MB / 0.4923 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02226/0.4439, allocations: 284.9 kB / 0.4926 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002305/0.4463, allocations: 0.5263 MB / 0.4931 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006602/0.4529, allocations: 2.024 MB / 0.4951 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.4546, allocations: 417 kB / 0.4955 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007525/0.4622, allocations: 4.649 MB / 0.5 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003249/0.4655, allocations: 1.947 MB / 0.5019 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00343/0.4689, allocations: 1.734 MB / 0.5036 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00415/0.4731, allocations: 2.594 MB / 0.5062 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.4742, allocations: 415.1 kB / 0.5066 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002644/0.4768, allocations: 1.051 MB / 0.5076 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002389/0.4792, allocations: 2.158 MB / 0.5097 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003625/0.4829, allocations: 2.835 MB / 0.5125 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009566/0.4924, allocations: 7.81 MB / 0.5201 GB, free: 13.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4925, allocations: 0 / 0.5201 GB, free: 13.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4925, allocations: 0 / 0.5201 GB, free: 13.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002288/0.4927, allocations: 4 kB / 0.5201 GB, free: 13.03 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.04976/0.5425, allocations: 11.95 MB / 0.5318 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.5426, allocations: 8.031 kB / 0.5318 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007526/0.5501, allocations: 2.056 MB / 0.5338 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004381/0.5545, allocations: 2.464 MB / 0.5362 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/0.5547, allocations: 299.9 kB / 0.5365 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008909/0.5556, allocations: 408.7 kB / 0.5369 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03549/0.5911, allocations: 15.27 MB / 0.5518 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001777/0.5914, allocations: 59.36 kB / 0.5518 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006879/0.5921, allocations: 195.8 kB / 0.552 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004621/0.5967, allocations: 2.851 MB / 0.5548 GB, free: 8.469 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03791/0.6346, allocations: 16.01 MB / 0.5704 GB, free: 8.441 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2518/0.8865, allocations: 52.71 MB / 0.6219 GB, free: 86.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03269/0.9192, allocations: 7.615 MB / 0.6293 GB, free: 84.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005281/0.9245, allocations: 2.986 MB / 0.6323 GB, free: 83.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02522/0.9498, allocations: 20.4 MB / 0.6522 GB, free: 69.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01333/0.9632, allocations: 3.803 MB / 0.6559 GB, free: 68.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 2.061e-05/0.9632, allocations: 0 / 0.6559 GB, free: 68.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.06059/1.024, allocations: 42.41 MB / 0.6973 GB, free: 36.35 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/1.024, allocations: 0.8264 MB / 0.6981 GB, free: 35.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004831/1.029, allocations: 4.357 MB / 0.7024 GB, free: 30.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007985/1.03, allocations: 105.7 kB / 0.7025 GB, free: 30.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002348/1.032, allocations: 3.495 MB / 0.7059 GB, free: 27.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002155/1.034, allocations: 1.803 MB / 0.7076 GB, free: 25.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002017/1.036, allocations: 1.68 MB / 0.7093 GB, free: 23.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.927e-05/1.036, allocations: 302.2 kB / 0.7096 GB, free: 23.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004148/1.04, allocations: 2.999 MB / 0.7125 GB, free: 20.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005788/1.046, allocations: 7.137 MB / 0.7195 GB, free: 11.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/1.058, allocations: 11.13 MB / 0.7303 GB, free: 14.24 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/1.058, allocations: 40 kB / 0.7304 GB, free: 14.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02001/1.078, allocations: 11.05 MB / 0.7412 GB, free: 3.113 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001206/1.078, allocations: 95.61 kB / 0.7413 GB, free: 3.016 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/1.078, allocations: 144 kB / 0.7414 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002209/1.08, allocations: 0.9397 MB / 0.7423 GB, free: 1.922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006929/1.087, allocations: 2.001 MB / 0.7443 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/1.099, allocations: 8.123 MB / 0.7522 GB, free: 7.641 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0069/1.106, allocations: 479.2 kB / 0.7527 GB, free: 7.172 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/1.107, allocations: 491.8 kB / 0.7531 GB, free: 6.691 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.004707/1.112, allocations: 2.524 MB / 0.7556 GB, free: 4.152 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009069/1.113, allocations: 474 kB / 0.756 GB, free: 3.684 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2259/1.339, allocations: 5.843 MB / 0.7618 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002211/1.339, allocations: 73.84 kB / 0.7618 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.608e-05/1.339, allocations: 19 kB / 0.7618 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001289/1.339, allocations: 30.05 kB / 0.7619 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02805/1.367, allocations: 18.9 MB / 0.7803 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.032e-05/1.368, allocations: 11.62 kB / 0.7803 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003169/1.371, allocations: 0.8027 MB / 0.7811 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/1.373, allocations: 0.7877 MB / 0.7819 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006302/1.373, allocations: 99.66 kB / 0.782 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008492/1.382, allocations: 7.413 MB / 0.7892 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/1.382, allocations: 12.09 kB / 0.7892 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/1.398, allocations: 10.01 MB / 0.799 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001637/1.4, allocations: 0.5246 MB / 0.7995 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.401, allocations: 99.09 kB / 0.7996 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002816/1.404, allocations: 229 kB / 0.7998 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009953/1.405, allocations: 326.4 kB / 0.8001 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000319/1.405, allocations: 129.8 kB / 0.8003 GB, free: 127.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005377/1.41, allocations: 2.753 MB / 0.803 GB, free: 126.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.41, allocations: 0 / 0.803 GB, free: 126.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00827/1.419, allocations: 1.515 MB / 0.8044 GB, free: 126.3 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.0008963/1.42, allocations: 290.5 kB / 0.8047 GB, free: 126.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03331/1.453, allocations: 17.86 MB / 0.8222 GB, free: 118.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/1.453, allocations: 0 / 0.8222 GB, free: 118.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005937/1.459, allocations: 3.634 MB / 0.8257 GB, free: 114.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006239/1.465, allocations: 0.6963 MB / 0.8264 GB, free: 114.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02436/1.49, allocations: 16.37 MB / 0.8424 GB, free: 99.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004309/1.494, allocations: 4.021 MB / 0.8463 GB, free: 95.99 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005612/1.5, allocations: 2.394 MB / 0.8486 GB, free: 94.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/1.501, allocations: 388.1 kB / 0.849 GB, free: 94.09 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/1.501, allocations: 4 kB / 0.849 GB, free: 94.09 MB / 478.1 MB Notification: Performance of Templates: time 0.08203/1.583, allocations: 59.67 MB / 0.9073 GB, free: 36.49 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)