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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001023/0.001023, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.0009797/0.0009798, allocations: 177.3 kB / 15.94 MB, free: 228 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.404/1.404, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1772/0.1772, allocations: 9.1 MB / 300.1 MB, free: 2.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003422, allocations: 8 kB / 363 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1211, allocations: 52.43 MB / 415.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.269/0.3902, allocations: 64.81 MB / 480.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03815/0.4284, allocations: 15.47 MB / 495.7 MB, free: 7.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01868/0.4471, allocations: 287.4 kB / 496 MB, free: 6.984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01502/0.4621, allocations: 3.233 MB / 499.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03582/0.498, allocations: 9.443 MB / 0.4967 GB, free: 1.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005456/0.5035, allocations: 430.1 kB / 0.4972 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008748/0.5123, allocations: 2.769 MB / 0.4999 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004054/0.5164, allocations: 1.661 MB / 0.5015 GB, free: 14.92 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003818/0.5203, allocations: 1.338 MB / 0.5028 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00416/0.5244, allocations: 1.872 MB / 0.5046 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001518/0.526, allocations: 242 kB / 0.5048 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002952/0.5289, allocations: 0.7935 MB / 0.5056 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002276/0.5312, allocations: 1.842 MB / 0.5074 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001949/0.5332, allocations: 1.084 MB / 0.5085 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009753/0.543, allocations: 5.946 MB / 0.5143 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.543, allocations: 0 / 0.5143 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.543, allocations: 0 / 0.5143 GB, free: 4.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003517/0.5434, allocations: 0 / 0.5143 GB, free: 4.582 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.04689/0.5903, allocations: 11.1 MB / 0.5251 GB, free: 9.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.5903, allocations: 8.031 kB / 0.5251 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/0.6006, allocations: 2.481 MB / 0.5275 GB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00664/0.6073, allocations: 2.392 MB / 0.5299 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.6076, allocations: 299.5 kB / 0.5302 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00229/0.6099, allocations: 399.6 kB / 0.5306 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03778/0.6477, allocations: 15.45 MB / 0.5456 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002569/0.648, allocations: 55.53 kB / 0.5457 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009842/0.649, allocations: 187.8 kB / 0.5459 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005124/0.6542, allocations: 2.863 MB / 0.5487 GB, free: 360 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04326/0.6974, allocations: 16.18 MB / 0.5645 GB, free: 156 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3238/1.021, allocations: 52 MB / 0.6153 GB, free: 82.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03053/1.052, allocations: 7.663 MB / 0.6227 GB, free: 81.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006641/1.059, allocations: 8.156 MB / 0.6307 GB, free: 74.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03844/1.097, allocations: 5.578 MB / 0.6361 GB, free: 72.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=480): time 3.536e-05/1.097, allocations: 0 / 0.6361 GB, free: 72.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=557): time 0.1403/1.237, allocations: 76.57 MB / 0.7109 GB, free: 18.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004224/1.238, allocations: 1.917 MB / 0.7128 GB, free: 16.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005812/1.244, allocations: 4.182 MB / 0.7169 GB, free: 13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008192/1.245, allocations: 121.6 kB / 0.717 GB, free: 12.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002031/1.247, allocations: 3.359 MB / 0.7203 GB, free: 9.859 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001909/1.249, allocations: 1.973 MB / 0.7222 GB, free: 8.098 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004613/1.249, allocations: 184 kB / 0.7224 GB, free: 7.918 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004906/1.25, allocations: 0.6766 MB / 0.723 GB, free: 7.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005371/1.255, allocations: 2.992 MB / 0.726 GB, free: 4.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008594/1.264, allocations: 7.118 MB / 0.7329 GB, free: 12.34 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008929/1.273, allocations: 4.647 MB / 0.7374 GB, free: 7.91 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001669/1.273, allocations: 40 kB / 0.7375 GB, free: 7.871 MB / 462.1 MB Notification: Performance of matching and sorting (n=1170) (initialization): time 0.02785/1.301, allocations: 11.08 MB / 0.7483 GB, free: 12.76 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002569/1.301, allocations: 93.69 kB / 0.7484 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002875/1.301, allocations: 148 kB / 0.7485 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002543/1.304, allocations: 0.9599 MB / 0.7495 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008243/1.312, allocations: 2.016 MB / 0.7514 GB, free: 9.527 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/1.324, allocations: 7.809 MB / 0.7591 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007067/1.332, allocations: 494.9 kB / 0.7595 GB, free: 1.102 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001873/1.333, allocations: 487.9 kB / 0.76 GB, free: 0.625 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 ($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 (1084): * Single equations (assignments): 1074 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2531/1.587, allocations: 2.555 MB / 0.7625 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001539/1.588, allocations: 494.8 kB / 0.763 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/1.6, allocations: 5.937 MB / 0.7688 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002697/1.6, allocations: 83.61 kB / 0.7688 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.369e-05/1.6, allocations: 28.72 kB / 0.7689 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000126/1.6, allocations: 42.27 kB / 0.7689 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03452/1.635, allocations: 24.06 MB / 0.7924 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.29e-05/1.635, allocations: 21.41 kB / 0.7924 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003487/1.638, allocations: 0.8909 MB / 0.7933 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00178/1.64, allocations: 0.7916 MB / 0.7941 GB, free: 124.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005403/1.641, allocations: 120.7 kB / 0.7942 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009713/1.65, allocations: 7.043 MB / 0.8011 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.248e-05/1.65, allocations: 25.62 kB / 0.8011 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02264/1.673, allocations: 12.93 MB / 0.8137 GB, free: 113.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002112/1.675, allocations: 0.563 MB / 0.8143 GB, free: 113.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002021/1.677, allocations: 118.8 kB / 0.8144 GB, free: 113.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004089/1.681, allocations: 251.3 kB / 0.8146 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001699/1.683, allocations: 377.8 kB / 0.815 GB, free: 112.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006032/1.684, allocations: 162.8 kB / 0.8151 GB, free: 112.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006489/1.69, allocations: 2.653 MB / 0.8177 GB, free: 112 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.62e-07/1.69, allocations: 0 / 0.8177 GB, free: 112 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01011/1.7, allocations: 1.54 MB / 0.8192 GB, free: 111.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * 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 (483): * Single equations (assignments): 472 * 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.001291/1.702, allocations: 307 kB / 0.8195 GB, free: 111.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01347/1.715, allocations: 8.396 MB / 0.8277 GB, free: 108.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.653e-05/1.715, allocations: 3.938 kB / 0.8277 GB, free: 108.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007023/1.722, allocations: 3.889 MB / 0.8315 GB, free: 106.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004862/1.727, allocations: 0.6109 MB / 0.8321 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03078/1.758, allocations: 16.44 MB / 0.8482 GB, free: 91.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005349/1.764, allocations: 4.17 MB / 0.8522 GB, free: 88.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006295/1.77, allocations: 2.477 MB / 0.8547 GB, free: 86.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/1.771, allocations: 396 kB / 0.855 GB, free: 86.25 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/1.771, allocations: 0 / 0.855 GB, free: 86.25 MB / 478.1 MB Notification: Performance of Templates: time 0.09006/1.861, allocations: 55.69 MB / 0.9094 GB, free: 31.62 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)