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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003905/0.003905, allocations: 179.8 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 221.4 MB / 229.3 MB, free: 3.074 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 99.94 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06369/0.06369, allocations: 8.842 MB / 339.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.531e-06/5.561e-06, allocations: 0 / 398.1 MB, free: 67.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06786/0.06788, allocations: 52.39 MB / 450.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2374/0.3054, allocations: 90.95 MB / 0.5288 GB, free: 2.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3056, allocations: 82.02 kB / 0.5289 GB, free: 2.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.3089/0.6145, allocations: 110.2 MB / 0.6365 GB, free: 10.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002194/0.6148, allocations: 103.9 kB / 0.6366 GB, free: 10.7 MB / 458.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.05142/0.6662, allocations: 7.91 MB / 0.6443 GB, free: 2.711 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.6663, allocations: 8.031 kB / 0.6443 GB, free: 2.703 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01163/0.6779, allocations: 1.915 MB / 0.6462 GB, free: 0.7773 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1249/0.8028, allocations: 2.866 MB / 0.649 GB, free: 146.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.803, allocations: 172.1 kB / 0.6491 GB, free: 146.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001567/0.8046, allocations: 316 kB / 0.6494 GB, free: 146.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01358/0.8182, allocations: 9.898 MB / 0.6591 GB, free: 146.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01689/0.8351, allocations: 13.3 MB / 0.6721 GB, free: 144.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.8353, allocations: 51.97 kB / 0.6721 GB, free: 144.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007916/0.8361, allocations: 28.12 kB / 0.6722 GB, free: 144.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00228/0.8384, allocations: 1.697 MB / 0.6738 GB, free: 144.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0613/0.8997, allocations: 51.72 MB / 0.7243 GB, free: 114.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004684/0.9044, allocations: 3.132 MB / 0.7274 GB, free: 113.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003711/0.9082, allocations: 2.745 MB / 0.7301 GB, free: 112.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02425/0.9324, allocations: 20.19 MB / 0.7498 GB, free: 97.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003147/0.9356, allocations: 2.47 MB / 0.7522 GB, free: 95.44 MB / 458.7 MB Notification: Performance of pre-optimization done (n=427): time 6.783e-06/0.9356, allocations: 0 / 0.7522 GB, free: 95.44 MB / 458.7 MB Notification: Performance of matching and sorting (n=502): time 0.03655/0.9722, allocations: 19.42 MB / 0.7712 GB, free: 78.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.9723, allocations: 209.6 kB / 0.7714 GB, free: 78.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004027/0.9763, allocations: 3.13 MB / 0.7744 GB, free: 75.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004639/0.9768, allocations: 29.7 kB / 0.7745 GB, free: 75.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/0.9788, allocations: 3.406 MB / 0.7778 GB, free: 72.65 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/0.98, allocations: 1.732 MB / 0.7795 GB, free: 71.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003858/0.9804, allocations: 6.875 kB / 0.7795 GB, free: 71.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003666/0.9808, allocations: 0.6799 MB / 0.7802 GB, free: 70.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003734/0.9845, allocations: 2.821 MB / 0.7829 GB, free: 67.93 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005033/0.9896, allocations: 7.009 MB / 0.7898 GB, free: 59.47 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005577/0.9952, allocations: 4.547 MB / 0.7942 GB, free: 55.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.325e-05/0.9952, allocations: 40 kB / 0.7942 GB, free: 55.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.01513/1.01, allocations: 9.929 MB / 0.8039 GB, free: 47.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/1.01, allocations: 8 kB / 0.8039 GB, free: 47.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001355/1.011, allocations: 144 kB / 0.8041 GB, free: 47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002185/1.013, allocations: 0.9335 MB / 0.805 GB, free: 46.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007172/1.02, allocations: 2.005 MB / 0.8069 GB, free: 44.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008742/1.029, allocations: 6.63 MB / 0.8134 GB, free: 38.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005903/1.035, allocations: 251.7 kB / 0.8137 GB, free: 38.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009379/1.036, allocations: 494.4 kB / 0.8141 GB, free: 37.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1096): * Single equations (assignments): 1086 * 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.001083/1.037, allocations: 0.4925 MB / 0.8146 GB, free: 37.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006266/1.037, allocations: 423.4 kB / 0.815 GB, free: 36.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008766/1.046, allocations: 5.346 MB / 0.8202 GB, free: 32.37 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000159/1.046, allocations: 54.86 kB / 0.8203 GB, free: 32.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/1.046, allocations: 8 kB / 0.8203 GB, free: 32.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-05/1.046, allocations: 27.11 kB / 0.8203 GB, free: 32.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02027/1.067, allocations: 14.2 MB / 0.8342 GB, free: 17.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/1.067, allocations: 8 kB / 0.8342 GB, free: 17.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003625/1.07, allocations: 0.7685 MB / 0.8349 GB, free: 17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/1.072, allocations: 0.7473 MB / 0.8357 GB, free: 16.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000325/1.073, allocations: 31.98 kB / 0.8357 GB, free: 16.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00763/1.08, allocations: 5.998 MB / 0.8416 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/1.08, allocations: 11.94 kB / 0.8416 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1378/1.218, allocations: 10.22 MB / 0.8516 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/1.219, allocations: 482.5 kB / 0.852 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001203/1.22, allocations: 27.31 kB / 0.852 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002403/1.223, allocations: 99.28 kB / 0.8521 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004742/1.223, allocations: 257.8 kB / 0.8524 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002866/1.224, allocations: 138.5 kB / 0.8525 GB, free: 126.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00284/1.226, allocations: 2.066 MB / 0.8545 GB, free: 126.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005808/1.232, allocations: 1.253 MB / 0.8558 GB, free: 126.1 MB / 458.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (430): * Single equations (assignments): 419 * 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.0006826/1.233, allocations: 214.1 kB / 0.856 GB, free: 126 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01018/1.243, allocations: 7.581 MB / 0.8634 GB, free: 125.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/1.243, allocations: 0 / 0.8634 GB, free: 125.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004454/1.248, allocations: 3.307 MB / 0.8666 GB, free: 124.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/1.25, allocations: 347.3 kB / 0.8669 GB, free: 124.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01947/1.269, allocations: 11.34 MB / 0.878 GB, free: 122.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005917/1.275, allocations: 4.545 MB / 0.8824 GB, free: 121.9 MB / 458.7 MB Notification: Performance of SimCode: time 7.21e-07/1.275, allocations: 0 / 0.8824 GB, free: 121.9 MB / 458.7 MB Notification: Performance of Templates: time 0.09306/1.368, allocations: 54.8 MB / 0.936 GB, free: 111.8 MB / 458.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)