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.001538/0.001538, allocations: 177.2 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.263/2.263, allocations: 223.3 MB / 239.8 MB, free: 16 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001153, allocations: 95.09 kB / 290.9 MB, free: 4.621 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06108/0.06108, allocations: 8.957 MB / 351 MB, free: 4.145 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007237/0.0007238, allocations: 11.98 kB / 413.9 MB, free: 5.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4676/0.4683, allocations: 52.37 MB / 466.2 MB, free: 69.23 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.07254/0.5409, allocations: 69.15 MB / 0.5228 GB, free: 15.9 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05803/0.5991, allocations: 14.76 MB / 0.5372 GB, free: 1.094 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0247/0.6239, allocations: 283.5 kB / 0.5375 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01743/0.6414, allocations: 3.425 MB / 0.5409 GB, free: 13.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05018/0.6917, allocations: 11.69 MB / 0.5523 GB, free: 1.637 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005882/0.6976, allocations: 443.5 kB / 0.5527 GB, free: 1.203 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.5009/1.199, allocations: 5.153 MB / 0.5577 GB, free: 4.879 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006564/1.205, allocations: 1.668 MB / 0.5594 GB, free: 4.676 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008749/1.214, allocations: 1.556 MB / 0.5609 GB, free: 4.676 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01203/1.226, allocations: 2.393 MB / 0.5632 GB, free: 4.672 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003699/1.23, allocations: 243 kB / 0.5635 GB, free: 4.672 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007166/1.237, allocations: 0.8018 MB / 0.5642 GB, free: 4.672 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006786/1.244, allocations: 1.955 MB / 0.5661 GB, free: 4.672 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005291/1.25, allocations: 1.086 MB / 0.5672 GB, free: 4.641 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01704/1.267, allocations: 5.949 MB / 0.573 GB, free: 4.176 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.33e-05/1.267, allocations: 4 kB / 0.573 GB, free: 4.172 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.619e-06/1.267, allocations: 1.969 kB / 0.573 GB, free: 4.172 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005049/1.267, allocations: 0 / 0.573 GB, free: 4.172 MB / 378.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.06933/1.337, allocations: 10.81 MB / 0.5836 GB, free: 16.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0002557/1.337, allocations: 9.219 kB / 0.5836 GB, free: 16.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01347/1.35, allocations: 2.095 MB / 0.5856 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01116/1.362, allocations: 2.473 MB / 0.588 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000739/1.362, allocations: 306.4 kB / 0.5883 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003957/1.366, allocations: 407.5 kB / 0.5887 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05945/1.426, allocations: 15.3 MB / 0.6037 GB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006221/1.427, allocations: 57.09 kB / 0.6037 GB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00341/1.43, allocations: 187.8 kB / 0.6039 GB, free: 6.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009625/1.44, allocations: 2.864 MB / 0.6067 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07486/1.515, allocations: 15.98 MB / 0.6223 GB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1549/1.67, allocations: 53.07 MB / 0.6741 GB, free: 13.06 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04807/1.718, allocations: 7.621 MB / 0.6816 GB, free: 6.594 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008725/1.727, allocations: 2.979 MB / 0.6845 GB, free: 3.609 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06412/1.791, allocations: 20.39 MB / 0.7044 GB, free: 13.37 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02364/1.815, allocations: 3.799 MB / 0.7081 GB, free: 9.465 MB / 490.7 MB Notification: Performance of pre-optimization done (n=429): time 2.046e-05/1.815, allocations: 1.75 kB / 0.7081 GB, free: 9.465 MB / 490.7 MB Notification: Performance of matching and sorting (n=504): time 0.559/2.374, allocations: 42.73 MB / 0.7498 GB, free: 189.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003025/2.374, allocations: 0.8253 MB / 0.7506 GB, free: 188.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01348/2.388, allocations: 4.357 MB / 0.7549 GB, free: 187.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001322/2.389, allocations: 108 kB / 0.755 GB, free: 187.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005308/2.394, allocations: 3.52 MB / 0.7584 GB, free: 184.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003843/2.398, allocations: 1.811 MB / 0.7602 GB, free: 183.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/2.4, allocations: 176 kB / 0.7604 GB, free: 183 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009821/2.401, allocations: 0.6752 MB / 0.761 GB, free: 182.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009925/2.411, allocations: 2.97 MB / 0.7639 GB, free: 181.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01597/2.427, allocations: 7.134 MB / 0.7709 GB, free: 175.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01639/2.443, allocations: 4.615 MB / 0.7754 GB, free: 173.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002039/2.443, allocations: 42.38 kB / 0.7755 GB, free: 173.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.04112/2.484, allocations: 11.03 MB / 0.7862 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000275/2.485, allocations: 93.73 kB / 0.7863 GB, free: 164.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003254/2.485, allocations: 144 kB / 0.7864 GB, free: 164.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004196/2.489, allocations: 0.9523 MB / 0.7874 GB, free: 163.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01523/2.505, allocations: 2.006 MB / 0.7893 GB, free: 161.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01855/2.523, allocations: 7.474 MB / 0.7966 GB, free: 155.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01445/2.538, allocations: 479.4 kB / 0.7971 GB, free: 154.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002779/2.541, allocations: 490.7 kB / 0.7976 GB, free: 154.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (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 prepare postOptimizeDAE: time 0.01125/2.552, allocations: 2.536 MB / 0.8 GB, free: 151.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002201/2.554, allocations: 477.9 kB / 0.8005 GB, free: 151.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01904/2.573, allocations: 5.838 MB / 0.8062 GB, free: 145.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003022/2.574, allocations: 75.69 kB / 0.8063 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.004e-05/2.574, allocations: 16 kB / 0.8063 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000127/2.574, allocations: 31.88 kB / 0.8063 GB, free: 145.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0537/2.628, allocations: 18.88 MB / 0.8247 GB, free: 126.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.596e-05/2.628, allocations: 12.19 kB / 0.8248 GB, free: 126.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007547/2.635, allocations: 0.8075 MB / 0.8255 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003942/2.639, allocations: 0.7757 MB / 0.8263 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001302/2.641, allocations: 104.6 kB / 0.8264 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01507/2.656, allocations: 6.783 MB / 0.833 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/2.656, allocations: 11.94 kB / 0.833 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0275/2.683, allocations: 9.994 MB / 0.8428 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00289/2.686, allocations: 0.5457 MB / 0.8433 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002613/2.689, allocations: 96.62 kB / 0.8434 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006451/2.695, allocations: 232.4 kB / 0.8436 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00146/2.697, allocations: 323.1 kB / 0.844 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005276/2.698, allocations: 140.8 kB / 0.8441 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00847/2.706, allocations: 2.728 MB / 0.8468 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.072e-06/2.706, allocations: 2.406 kB / 0.8468 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01514/2.721, allocations: 1.519 MB / 0.8482 GB, free: 101.6 MB / 0.4948 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,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 (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.001666/2.723, allocations: 273.4 kB / 0.8485 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02465/2.748, allocations: 8.189 MB / 0.8565 GB, free: 93.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.952e-05/2.748, allocations: 7.938 kB / 0.8565 GB, free: 93.09 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01032/2.758, allocations: 3.598 MB / 0.86 GB, free: 89.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008361/2.767, allocations: 0.6664 MB / 0.8607 GB, free: 88.75 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04561/2.812, allocations: 16.59 MB / 0.8769 GB, free: 72.01 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008928/2.821, allocations: 4.029 MB / 0.8808 GB, free: 67.95 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003116/2.824, allocations: 455.3 kB / 0.8812 GB, free: 67.51 MB / 0.4948 GB Notification: Performance of SimCode: time 1.883e-06/2.824, allocations: 3.5 kB / 0.8812 GB, free: 67.51 MB / 0.4948 GB Notification: Performance of Templates: time 0.8455/3.67, allocations: 204.6 MB / 1.081 GB, free: 40.89 MB / 0.4948 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)