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.001467/0.001467, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001979/0.00198, allocations: 191.1 kB / 16.14 MB, free: 6.703 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.425/1.425, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1773/0.1773, allocations: 9.114 MB / 299.1 MB, free: 1.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 63.89 kB / 361.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1227, allocations: 51.44 MB / 412.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2427/0.3655, allocations: 76.02 MB / 488.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03784/0.4034, allocations: 15.27 MB / 0.4922 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01935/0.4228, allocations: 285 kB / 0.4925 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.4254, allocations: 0.5349 MB / 0.493 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006812/0.4322, allocations: 2.04 MB / 0.495 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001664/0.4339, allocations: 409.7 kB / 0.4954 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.444, allocations: 6.215 MB / 0.5014 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004445/0.4485, allocations: 1.734 MB / 0.5031 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004638/0.4532, allocations: 1.526 MB / 0.5046 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005471/0.4587, allocations: 2.457 MB / 0.507 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001571/0.4603, allocations: 269.8 kB / 0.5073 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003088/0.4634, allocations: 0.9331 MB / 0.5082 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002649/0.466, allocations: 2.018 MB / 0.5102 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003641/0.4697, allocations: 2.682 MB / 0.5128 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008593/0.4783, allocations: 7.553 MB / 0.5202 GB, free: 12.92 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.4783, allocations: 0 / 0.5202 GB, free: 12.92 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4784, allocations: 0 / 0.5202 GB, free: 12.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002169/0.4786, allocations: 4 kB / 0.5202 GB, free: 12.91 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.05018/0.5288, allocations: 11.95 MB / 0.5318 GB, free: 0.875 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.5289, allocations: 11.97 kB / 0.5318 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008293/0.5372, allocations: 2.049 MB / 0.5338 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00617/0.5434, allocations: 2.476 MB / 0.5363 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00041/0.5438, allocations: 295.9 kB / 0.5365 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002058/0.5459, allocations: 407.6 kB / 0.5369 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03842/0.5843, allocations: 15.28 MB / 0.5518 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003745/0.5848, allocations: 55.44 kB / 0.5519 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001984/0.5868, allocations: 195.8 kB / 0.5521 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00527/0.5921, allocations: 2.854 MB / 0.5549 GB, free: 8.348 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03812/0.6302, allocations: 16.01 MB / 0.5705 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2983/0.9285, allocations: 52.7 MB / 0.622 GB, free: 87.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03412/0.9627, allocations: 7.603 MB / 0.6294 GB, free: 84.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006768/0.9695, allocations: 2.996 MB / 0.6323 GB, free: 83.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03439/1.004, allocations: 20.41 MB / 0.6523 GB, free: 69.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01239/1.016, allocations: 3.797 MB / 0.656 GB, free: 68.58 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 1.617e-05/1.016, allocations: 4 kB / 0.656 GB, free: 68.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.07574/1.092, allocations: 42.38 MB / 0.6973 GB, free: 36.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000202/1.092, allocations: 0.8264 MB / 0.6982 GB, free: 35.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005815/1.098, allocations: 4.361 MB / 0.7024 GB, free: 30.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007394/1.099, allocations: 109.7 kB / 0.7025 GB, free: 30.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002295/1.101, allocations: 3.495 MB / 0.7059 GB, free: 27.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002251/1.104, allocations: 1.807 MB / 0.7077 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00262/1.106, allocations: 1.676 MB / 0.7093 GB, free: 23.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.521e-05/1.106, allocations: 301.1 kB / 0.7096 GB, free: 23.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00477/1.111, allocations: 3.001 MB / 0.7126 GB, free: 20.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007589/1.119, allocations: 7.129 MB / 0.7195 GB, free: 11.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/1.132, allocations: 11.13 MB / 0.7304 GB, free: 14.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001421/1.132, allocations: 40 kB / 0.7304 GB, free: 14.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02443/1.156, allocations: 11.06 MB / 0.7412 GB, free: 3.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/1.157, allocations: 94.73 kB / 0.7413 GB, free: 2.922 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002006/1.157, allocations: 140 kB / 0.7414 GB, free: 2.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00258/1.159, allocations: 0.9397 MB / 0.7424 GB, free: 1.828 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007486/1.167, allocations: 1.996 MB / 0.7443 GB, free: 15.83 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/1.179, allocations: 7.518 MB / 0.7516 GB, free: 8.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006363/1.185, allocations: 479.1 kB / 0.7521 GB, free: 7.691 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001964/1.187, allocations: 491.9 kB / 0.7526 GB, free: 7.211 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.006107/1.194, allocations: 2.524 MB / 0.755 GB, free: 4.672 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/1.195, allocations: 478 kB / 0.7555 GB, free: 4.199 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2226/1.417, allocations: 5.845 MB / 0.7612 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002149/1.418, allocations: 69.73 kB / 0.7613 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.51e-05/1.418, allocations: 18.19 kB / 0.7613 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001145/1.418, allocations: 33.11 kB / 0.7613 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02923/1.447, allocations: 18.9 MB / 0.7798 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.203e-05/1.447, allocations: 9.344 kB / 0.7798 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003334/1.45, allocations: 0.8058 MB / 0.7806 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001806/1.452, allocations: 0.7783 MB / 0.7813 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005688/1.453, allocations: 104.5 kB / 0.7814 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008104/1.461, allocations: 6.801 MB / 0.7881 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/1.461, allocations: 15.97 kB / 0.7881 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/1.477, allocations: 10.02 MB / 0.7979 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001235/1.478, allocations: 0.5177 MB / 0.7984 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/1.479, allocations: 96 kB / 0.7985 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00278/1.482, allocations: 226.2 kB / 0.7987 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009853/1.483, allocations: 329.8 kB / 0.799 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005091/1.484, allocations: 137.6 kB / 0.7991 GB, free: 127.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006239/1.49, allocations: 2.747 MB / 0.8018 GB, free: 127 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.21e-07/1.49, allocations: 3.938 kB / 0.8018 GB, free: 127 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01005/1.5, allocations: 1.513 MB / 0.8033 GB, free: 126.8 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.001707/1.502, allocations: 286.9 kB / 0.8036 GB, free: 126.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01442/1.516, allocations: 8.21 MB / 0.8116 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/1.516, allocations: 0 / 0.8116 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005844/1.522, allocations: 3.64 MB / 0.8151 GB, free: 121.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005103/1.527, allocations: 0.6546 MB / 0.8158 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02898/1.556, allocations: 16.37 MB / 0.8318 GB, free: 109.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01142/1.568, allocations: 4.026 MB / 0.8357 GB, free: 106.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0117/1.58, allocations: 2.401 MB / 0.8381 GB, free: 105.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002519/1.582, allocations: 377.6 kB / 0.8384 GB, free: 104.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/1.582, allocations: 0 / 0.8384 GB, free: 104.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1014/1.684, allocations: 57.39 MB / 0.8945 GB, free: 49.51 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)