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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 222.9 MB / 239.7 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009287/0.0009287, allocations: 95.11 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04025/0.04025, allocations: 8.949 MB / 349 MB, free: 40 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009664/0.0009665, allocations: 55.5 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07595/0.07693, allocations: 51.39 MB / 462.5 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.244/0.321, allocations: 76.15 MB / 0.526 GB, free: 12.11 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03512/0.3561, allocations: 15.31 MB / 0.541 GB, free: 12.76 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02053/0.3767, allocations: 283.5 kB / 0.5413 GB, free: 12.48 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002693/0.3795, allocations: 0.536 MB / 0.5418 GB, free: 11.94 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006683/0.3862, allocations: 2.062 MB / 0.5438 GB, free: 9.871 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.3875, allocations: 411.5 kB / 0.5442 GB, free: 9.469 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006869/0.3944, allocations: 6.3 MB / 0.5503 GB, free: 3.152 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0022/0.3966, allocations: 1.733 MB / 0.552 GB, free: 1.398 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.3986, allocations: 1.536 MB / 0.5535 GB, free: 15.85 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002705/0.4014, allocations: 2.471 MB / 0.5559 GB, free: 13.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006009/0.402, allocations: 264 kB / 0.5562 GB, free: 13.12 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001763/0.4037, allocations: 0.9362 MB / 0.5571 GB, free: 12.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001663/0.4054, allocations: 2.021 MB / 0.5591 GB, free: 10.15 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002428/0.4079, allocations: 2.698 MB / 0.5617 GB, free: 7.438 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007975/0.4158, allocations: 7.569 MB / 0.5691 GB, free: 15.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4159, allocations: 0 / 0.5691 GB, free: 15.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4159, allocations: 0 / 0.5691 GB, free: 15.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002729/0.4162, allocations: 3.938 kB / 0.5691 GB, free: 15.84 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.04804/0.4642, allocations: 11.95 MB / 0.5808 GB, free: 3.793 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.4643, allocations: 16.58 kB / 0.5808 GB, free: 3.777 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006923/0.4712, allocations: 2.056 MB / 0.5828 GB, free: 1.711 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005088/0.4763, allocations: 2.515 MB / 0.5853 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.4766, allocations: 303.9 kB / 0.5856 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/0.4777, allocations: 411.5 kB / 0.5859 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03653/0.5142, allocations: 15.31 MB / 0.6009 GB, free: 14.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002863/0.5146, allocations: 55.52 kB / 0.601 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001362/0.5159, allocations: 191.8 kB / 0.6011 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005053/0.521, allocations: 2.859 MB / 0.6039 GB, free: 11.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03628/0.5573, allocations: 16.02 MB / 0.6196 GB, free: 11.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2757/0.833, allocations: 53.03 MB / 0.6714 GB, free: 119.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0334/0.8665, allocations: 7.561 MB / 0.6787 GB, free: 118.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005516/0.872, allocations: 2.995 MB / 0.6817 GB, free: 117.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02515/0.8972, allocations: 20.4 MB / 0.7016 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008808/0.906, allocations: 3.795 MB / 0.7053 GB, free: 102.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=429): time 1.417e-05/0.9061, allocations: 0 / 0.7053 GB, free: 102.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=504): time 0.06118/0.9673, allocations: 42.78 MB / 0.7471 GB, free: 63.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.9675, allocations: 0.8225 MB / 0.7479 GB, free: 62.76 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004706/0.9722, allocations: 4.391 MB / 0.7522 GB, free: 58.34 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004949/0.9727, allocations: 105.6 kB / 0.7523 GB, free: 58.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.9744, allocations: 3.523 MB / 0.7557 GB, free: 54.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/0.9757, allocations: 1.81 MB / 0.7575 GB, free: 52.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00168/0.9773, allocations: 1.676 MB / 0.7591 GB, free: 51.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.125e-05/0.9774, allocations: 301.1 kB / 0.7594 GB, free: 50.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003729/0.9811, allocations: 3.005 MB / 0.7623 GB, free: 47.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005669/0.9868, allocations: 7.157 MB / 0.7693 GB, free: 38.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009891/0.9967, allocations: 11.17 MB / 0.7802 GB, free: 25.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-05/0.9968, allocations: 44 kB / 0.7803 GB, free: 25.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.0144/1.011, allocations: 11.08 MB / 0.7911 GB, free: 14.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.14e-05/1.011, allocations: 93.69 kB / 0.7912 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001019/1.011, allocations: 140 kB / 0.7913 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001778/1.013, allocations: 0.9389 MB / 0.7922 GB, free: 13.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005463/1.019, allocations: 2.008 MB / 0.7942 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00818/1.027, allocations: 7.521 MB / 0.8015 GB, free: 3.582 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005568/1.032, allocations: 487.1 kB / 0.802 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007631/1.033, allocations: 494.4 kB / 0.8025 GB, free: 2.629 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 41 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rightTrail.color[3],rightTrail.color[2],rightTrail.color[1],leftTrail.color[3],leftTrail.color[2],leftTrail.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[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],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (1078): * Single equations (assignments): 1068 * 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.003886/1.037, allocations: 2.533 MB / 0.805 GB, free: 84 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/1.038, allocations: 481.6 kB / 0.8054 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/1.049, allocations: 5.856 MB / 0.8111 GB, free: 9.707 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001398/1.049, allocations: 67.98 kB / 0.8112 GB, free: 9.641 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.355e-05/1.049, allocations: 16 kB / 0.8112 GB, free: 9.625 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.894e-05/1.049, allocations: 31.91 kB / 0.8112 GB, free: 9.594 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2481/1.297, allocations: 18.88 MB / 0.8297 GB, free: 153.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-05/1.297, allocations: 12.38 kB / 0.8297 GB, free: 153.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003486/1.3, allocations: 0.8046 MB / 0.8305 GB, free: 153.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002178/1.303, allocations: 0.7746 MB / 0.8312 GB, free: 153.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000486/1.303, allocations: 104.2 kB / 0.8313 GB, free: 153.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009682/1.313, allocations: 6.809 MB / 0.838 GB, free: 149.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/1.313, allocations: 13.19 kB / 0.838 GB, free: 149.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07207/1.385, allocations: 47.5 MB / 0.8844 GB, free: 117.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/1.386, allocations: 0.5227 MB / 0.8849 GB, free: 116.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001024/1.387, allocations: 95.94 kB / 0.885 GB, free: 116.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002343/1.39, allocations: 227.7 kB / 0.8852 GB, free: 116.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006868/1.39, allocations: 322.9 kB / 0.8855 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002308/1.39, allocations: 135.8 kB / 0.8856 GB, free: 116.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003179/1.394, allocations: 2.768 MB / 0.8883 GB, free: 113.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.394, allocations: 0 / 0.8883 GB, free: 113.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00623/1.4, allocations: 2.007 MB / 0.8903 GB, free: 111.3 MB / 474.7 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,revolute2.phi,revolute.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.0006882/1.401, allocations: 314.1 kB / 0.8906 GB, free: 111.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01041/1.411, allocations: 8.228 MB / 0.8986 GB, free: 102.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/1.411, allocations: 256 / 0.8986 GB, free: 102.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004245/1.415, allocations: 3.642 MB / 0.9022 GB, free: 99.01 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/1.419, allocations: 0.6601 MB / 0.9028 GB, free: 98.37 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02591/1.445, allocations: 20.24 MB / 0.9226 GB, free: 77.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005851/1.451, allocations: 4.191 MB / 0.9267 GB, free: 73.69 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006526/1.458, allocations: 2.454 MB / 0.9291 GB, free: 71.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/1.46, allocations: 403.3 kB / 0.9295 GB, free: 70.84 MB / 474.7 MB Notification: Performance of SimCode: time 1.322e-06/1.46, allocations: 0 / 0.9295 GB, free: 70.84 MB / 474.7 MB Notification: Performance of Templates: time 0.2752/1.735, allocations: 71.61 MB / 0.9994 GB, free: 130.3 MB / 474.7 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)