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.005062/0.005062, allocations: 103.6 kB / 15.73 MB, free: 6.039 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.001191/0.001191, allocations: 192.7 kB / 16.67 MB, free: 5.969 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2133/0.2133, allocations: 9.118 MB / 299.6 MB, free: 1.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 72.02 kB / 414.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2835, allocations: 51.43 MB / 466.1 MB, free: 18.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01569/0.2992, allocations: 16.16 MB / 482.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009942/0.3092, allocations: 4.101 MB / 486.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003201/0.3125, allocations: 70.84 kB / 486.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.3141, allocations: 0.6542 MB / 487.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005659/0.3198, allocations: 2.276 MB / 489.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.3214, allocations: 476.8 kB / 489.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008144/0.3295, allocations: 4.638 MB / 494.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002823/0.3324, allocations: 1.901 MB / 496.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003017/0.3354, allocations: 1.744 MB / 498.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003381/0.3388, allocations: 2.417 MB / 0.4888 GB, free: 9.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007951/0.3396, allocations: 412 kB / 0.4892 GB, free: 9.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002096/0.3417, allocations: 1.042 MB / 0.4902 GB, free: 8.164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001812/0.3435, allocations: 2.142 MB / 0.4923 GB, free: 6.016 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003331/0.3469, allocations: 2.815 MB / 0.495 GB, free: 3.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.3569, allocations: 8.171 MB / 0.503 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.357, allocations: 4 kB / 0.503 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.357, allocations: 0 / 0.503 GB, free: 10.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002533/0.3573, allocations: 0 / 0.503 GB, free: 10.98 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.04588/0.4032, allocations: 11.95 MB / 0.5147 GB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.4032, allocations: 8.031 kB / 0.5147 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007551/0.4108, allocations: 2.049 MB / 0.5167 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005236/0.416, allocations: 2.484 MB / 0.5191 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/0.4164, allocations: 295.9 kB / 0.5194 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/0.4177, allocations: 411.5 kB / 0.5198 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03515/0.4528, allocations: 15.28 MB / 0.5347 GB, free: 9.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002767/0.4532, allocations: 51.53 kB / 0.5348 GB, free: 9.449 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001465/0.4547, allocations: 195.8 kB / 0.535 GB, free: 9.258 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005226/0.4599, allocations: 2.855 MB / 0.5377 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03857/0.4985, allocations: 16.01 MB / 0.5534 GB, free: 6.367 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3818/0.8803, allocations: 52.57 MB / 0.6047 GB, free: 75.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03369/0.9141, allocations: 7.617 MB / 0.6122 GB, free: 75.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006156/0.9203, allocations: 2.992 MB / 0.6151 GB, free: 74.35 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02958/0.9499, allocations: 20.41 MB / 0.635 GB, free: 60.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01019/0.9602, allocations: 3.8 MB / 0.6387 GB, free: 59.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=429): time 8.085e-06/0.9602, allocations: 0 / 0.6387 GB, free: 59.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.06379/1.024, allocations: 42.39 MB / 0.6801 GB, free: 24.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000214/1.024, allocations: 0.8233 MB / 0.6809 GB, free: 23.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006103/1.03, allocations: 4.368 MB / 0.6852 GB, free: 18.97 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008711/1.031, allocations: 101.7 kB / 0.6853 GB, free: 18.87 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002173/1.033, allocations: 3.506 MB / 0.6887 GB, free: 15.36 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002038/1.036, allocations: 1.798 MB / 0.6905 GB, free: 13.58 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002209/1.038, allocations: 1.681 MB / 0.6921 GB, free: 11.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.729e-05/1.038, allocations: 305.1 kB / 0.6924 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004277/1.042, allocations: 2.996 MB / 0.6953 GB, free: 8.582 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00649/1.049, allocations: 7.131 MB / 0.7023 GB, free: 15.53 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01793/1.067, allocations: 11.13 MB / 0.7132 GB, free: 2.457 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001368/1.067, allocations: 40 kB / 0.7132 GB, free: 2.418 MB / 478.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02725/1.094, allocations: 11.06 MB / 0.724 GB, free: 7.328 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002416/1.094, allocations: 95.56 kB / 0.7241 GB, free: 7.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002776/1.095, allocations: 140 kB / 0.7242 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002532/1.097, allocations: 0.936 MB / 0.7251 GB, free: 6.145 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007695/1.105, allocations: 2.003 MB / 0.7271 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/1.117, allocations: 8.11 MB / 0.735 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006695/1.124, allocations: 475.1 kB / 0.7355 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/1.126, allocations: 493.8 kB / 0.7359 GB, free: 10.95 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.006267/1.132, allocations: 2.532 MB / 0.7384 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001387/1.133, allocations: 477.9 kB / 0.7389 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01358/1.147, allocations: 5.846 MB / 0.7446 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001713/1.147, allocations: 66.88 kB / 0.7446 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-05/1.147, allocations: 23.94 kB / 0.7447 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.602e-05/1.147, allocations: 31.91 kB / 0.7447 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03426/1.182, allocations: 18.59 MB / 0.7628 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.609e-05/1.182, allocations: 8 kB / 0.7629 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00337/1.185, allocations: 0.8035 MB / 0.7636 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001925/1.187, allocations: 0.7801 MB / 0.7644 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004152/1.188, allocations: 104 kB / 0.7645 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009881/1.197, allocations: 7.389 MB / 0.7717 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.866e-06/1.197, allocations: 15.94 kB / 0.7717 GB, free: 5.625 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01605/1.213, allocations: 10.03 MB / 0.7815 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001727/1.215, allocations: 0.5185 MB / 0.782 GB, free: 10.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007326/1.216, allocations: 95.98 kB / 0.7821 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/1.218, allocations: 227.7 kB / 0.7823 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006985/1.219, allocations: 327 kB / 0.7827 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002741/1.219, allocations: 143 kB / 0.7828 GB, free: 10.03 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004545/1.224, allocations: 2.746 MB / 0.7855 GB, free: 7.273 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.4e-07/1.224, allocations: 0 / 0.7855 GB, free: 7.273 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007467/1.231, allocations: 1.51 MB / 0.7869 GB, free: 5.77 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.000926/1.232, allocations: 289.9 kB / 0.7872 GB, free: 5.48 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3028/1.535, allocations: 8.254 MB / 0.7953 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/1.535, allocations: 0 / 0.7953 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007911/1.543, allocations: 3.641 MB / 0.7988 GB, free: 188.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004328/1.547, allocations: 0.6923 MB / 0.7995 GB, free: 188.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02815/1.575, allocations: 13.45 MB / 0.8126 GB, free: 182.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006991/1.583, allocations: 4.022 MB / 0.8166 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007422/1.59, allocations: 2.393 MB / 0.8189 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001383/1.591, allocations: 381.6 kB / 0.8193 GB, free: 180.8 MB / 0.545 GB Notification: Performance of SimCode: time 9.81e-07/1.591, allocations: 1.594 kB / 0.8193 GB, free: 180.8 MB / 0.545 GB Notification: Performance of Templates: time 0.09384/1.685, allocations: 55.64 MB / 0.8736 GB, free: 139.1 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)