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.001448/0.001448, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001527/0.001527, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04605/0.04605, allocations: 9.113 MB / 300.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002117/0.002117, allocations: 63.89 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1225, allocations: 51.44 MB / 466.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.018/0.1405, allocations: 16.15 MB / 482.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008428/0.149, allocations: 4.111 MB / 487 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002269/0.1513, allocations: 71.81 kB / 487.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00195/0.1533, allocations: 0.6474 MB / 487.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006014/0.1593, allocations: 2.204 MB / 489.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001636/0.161, allocations: 479.2 kB / 490.4 MB, free: 9.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006478/0.1675, allocations: 4.643 MB / 495.1 MB, free: 5.258 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002735/0.1703, allocations: 1.9 MB / 497 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.1732, allocations: 1.739 MB / 498.7 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003263/0.1765, allocations: 2.428 MB / 0.4894 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001163/0.1777, allocations: 408 kB / 0.4898 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.18, allocations: 1.038 MB / 0.4908 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00207/0.1821, allocations: 2.139 MB / 0.4929 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003123/0.1852, allocations: 2.811 MB / 0.4956 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008671/0.1939, allocations: 8.185 MB / 0.5036 GB, free: 0.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.1939, allocations: 0 / 0.5036 GB, free: 0.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1939, allocations: 0 / 0.5036 GB, free: 0.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002476/0.1942, allocations: 0 / 0.5036 GB, free: 0.5 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.2478/0.4419, allocations: 11.95 MB / 0.5153 GB, free: 39.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.442, allocations: 8.688 kB / 0.5153 GB, free: 39.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008138/0.4502, allocations: 2.049 MB / 0.5173 GB, free: 38.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006642/0.4568, allocations: 2.475 MB / 0.5197 GB, free: 37.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003434/0.4572, allocations: 305.7 kB / 0.52 GB, free: 37.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001831/0.4591, allocations: 400.9 kB / 0.5204 GB, free: 37.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03002/0.4891, allocations: 15.28 MB / 0.5353 GB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002048/0.4893, allocations: 59.44 kB / 0.5354 GB, free: 24.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009746/0.4903, allocations: 191.7 kB / 0.5355 GB, free: 23.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003722/0.4941, allocations: 2.861 MB / 0.5383 GB, free: 21.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03085/0.5249, allocations: 16.01 MB / 0.554 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07489/0.5999, allocations: 52.58 MB / 0.6053 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03249/0.6324, allocations: 7.606 MB / 0.6127 GB, free: 7.621 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005221/0.6376, allocations: 2.99 MB / 0.6157 GB, free: 4.629 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0273/0.665, allocations: 20.4 MB / 0.6356 GB, free: 14.19 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01025/0.6753, allocations: 3.797 MB / 0.6393 GB, free: 10.27 MB / 478.1 MB Notification: Performance of pre-optimization done (n=429): time 7.224e-06/0.6753, allocations: 0 / 0.6393 GB, free: 10.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=504): time 0.07354/0.7489, allocations: 42.41 MB / 0.6807 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000388/0.7493, allocations: 0.8225 MB / 0.6815 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006292/0.7556, allocations: 4.368 MB / 0.6858 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007566/0.7564, allocations: 101.7 kB / 0.6859 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002919/0.7593, allocations: 3.507 MB / 0.6893 GB, free: 6.121 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002358/0.7617, allocations: 1.796 MB / 0.691 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002502/0.7642, allocations: 1.684 MB / 0.6927 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.7643, allocations: 301.1 kB / 0.693 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005049/0.7694, allocations: 3 MB / 0.6959 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009133/0.7785, allocations: 7.125 MB / 0.7029 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2491/1.028, allocations: 11.12 MB / 0.7137 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.028, allocations: 39.81 kB / 0.7138 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02225/1.05, allocations: 11.06 MB / 0.7246 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001398/1.05, allocations: 93.41 kB / 0.7247 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002299/1.05, allocations: 139.2 kB / 0.7248 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/1.053, allocations: 0.9409 MB / 0.7257 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006744/1.06, allocations: 1.999 MB / 0.7277 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009833/1.069, allocations: 8.106 MB / 0.7356 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006344/1.076, allocations: 480.7 kB / 0.736 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/1.077, allocations: 485.8 kB / 0.7365 GB, free: 165.9 MB / 0.5294 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.0046/1.082, allocations: 2.524 MB / 0.739 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008939/1.083, allocations: 484.2 kB / 0.7394 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008737/1.092, allocations: 5.839 MB / 0.7451 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001347/1.092, allocations: 67.97 kB / 0.7452 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/1.092, allocations: 27.09 kB / 0.7452 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.818e-05/1.092, allocations: 33.7 kB / 0.7453 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02497/1.117, allocations: 18.59 MB / 0.7634 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.698e-05/1.117, allocations: 8 kB / 0.7634 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002907/1.12, allocations: 0.8043 MB / 0.7642 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001552/1.122, allocations: 0.7757 MB / 0.765 GB, free: 145 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003413/1.122, allocations: 104.1 kB / 0.7651 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007541/1.129, allocations: 7.41 MB / 0.7723 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/1.129, allocations: 16.97 kB / 0.7723 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/1.142, allocations: 10.02 MB / 0.7821 GB, free: 127 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/1.143, allocations: 0.517 MB / 0.7826 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007676/1.144, allocations: 94.42 kB / 0.7827 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002021/1.146, allocations: 239 kB / 0.7829 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005363/1.146, allocations: 323 kB / 0.7832 GB, free: 125.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002116/1.147, allocations: 132 kB / 0.7834 GB, free: 125.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00319/1.15, allocations: 2.75 MB / 0.786 GB, free: 123 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.51e-07/1.15, allocations: 4 kB / 0.786 GB, free: 123 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006237/1.156, allocations: 1.517 MB / 0.7875 GB, free: 121.5 MB / 0.5294 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.0007204/1.157, allocations: 277.7 kB / 0.7878 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0107/1.167, allocations: 8.262 MB / 0.7959 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/1.168, allocations: 1.812 kB / 0.7959 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004296/1.172, allocations: 3.616 MB / 0.7994 GB, free: 109.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003681/1.176, allocations: 0.6881 MB / 0.8001 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01986/1.195, allocations: 14.01 MB / 0.8137 GB, free: 94.36 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003574/1.199, allocations: 4.029 MB / 0.8177 GB, free: 90.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001752/1.201, allocations: 447.3 kB / 0.8181 GB, free: 89.86 MB / 0.5294 GB Notification: Performance of SimCode: time 8.21e-07/1.201, allocations: 4 kB / 0.8181 GB, free: 89.86 MB / 0.5294 GB Notification: Performance of Templates: time 0.3955/1.596, allocations: 205.9 MB / 1.019 GB, free: 78.21 MB / 0.5294 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)