Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.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.SingleTrackWithEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine") translateModel(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine") [: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.003014/0.003014, allocations: 178.9 kB / 7.454 MB, free: 2.492 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.219/1.219, allocations: 221.4 MB / 229.3 MB, free: 3.004 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: 97.52 kB / 280.1 MB, free: 1.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04317/0.04317, allocations: 8.842 MB / 339.7 MB, free: 5.691 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.3e-06, allocations: 4 kB / 398.1 MB, free: 67.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06755/0.06757, allocations: 52.38 MB / 450.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2263/0.2939, allocations: 87.56 MB / 0.5255 GB, free: 5.922 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.2941, allocations: 84.56 kB / 0.5255 GB, free: 5.879 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1902/0.4843, allocations: 71.36 MB / 0.5952 GB, free: 5.453 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001534/0.4845, allocations: 56 kB / 0.5953 GB, free: 5.398 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1360 * Number of variables: 1360 Notification: Performance of Generate backend data structure: time 0.02707/0.5116, allocations: 4.669 MB / 0.5999 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.5116, allocations: 8.031 kB / 0.5999 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01005/0.5217, allocations: 1.66 MB / 0.6015 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004624/0.5263, allocations: 2.016 MB / 0.6034 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.5265, allocations: 108 kB / 0.6036 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001178/0.5277, allocations: 195.9 kB / 0.6037 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01038/0.5381, allocations: 6.726 MB / 0.6103 GB, free: 5.895 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/0.5517, allocations: 8.946 MB / 0.619 GB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.5518, allocations: 35.7 kB / 0.6191 GB, free: 12.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005554/0.5524, allocations: 16 kB / 0.6191 GB, free: 12.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001725/0.5541, allocations: 1.166 MB / 0.6202 GB, free: 11.23 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1892/0.7433, allocations: 31.92 MB / 0.6514 GB, free: 87.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/0.7457, allocations: 1.805 MB / 0.6532 GB, free: 87.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.7474, allocations: 1.403 MB / 0.6545 GB, free: 87.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007718/0.7551, allocations: 8.256 MB / 0.6626 GB, free: 82.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.645e-05/0.7552, allocations: 57.09 kB / 0.6627 GB, free: 82.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=219): time 4.318e-06/0.7552, allocations: 2.406 kB / 0.6627 GB, free: 82.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=255): time 0.0183/0.7736, allocations: 9.734 MB / 0.6722 GB, free: 81.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/0.7736, allocations: 76.72 kB / 0.6722 GB, free: 80.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00265/0.7763, allocations: 2.196 MB / 0.6744 GB, free: 80.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.7764, allocations: 25.7 kB / 0.6744 GB, free: 80.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008366/0.7772, allocations: 2.36 MB / 0.6767 GB, free: 79.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005233/0.7778, allocations: 0.8964 MB / 0.6776 GB, free: 78.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.778, allocations: 0 / 0.6776 GB, free: 78.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000261/0.7783, allocations: 0.582 MB / 0.6781 GB, free: 78.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00229/0.7806, allocations: 1.728 MB / 0.6798 GB, free: 78.42 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003053/0.7836, allocations: 4.532 MB / 0.6843 GB, free: 74.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003369/0.787, allocations: 2.892 MB / 0.6871 GB, free: 74.79 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.856e-05/0.787, allocations: 30.62 kB / 0.6871 GB, free: 74.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.009104/0.7962, allocations: 6.181 MB / 0.6932 GB, free: 74.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.7962, allocations: 6.594 kB / 0.6932 GB, free: 74.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.531e-05/0.7963, allocations: 98.94 kB / 0.6933 GB, free: 74.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.7976, allocations: 0.5423 MB / 0.6938 GB, free: 74.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003861/0.8014, allocations: 1.205 MB / 0.695 GB, free: 74.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006383/0.8078, allocations: 5.846 MB / 0.7007 GB, free: 71.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003385/0.8112, allocations: 135.6 kB / 0.7008 GB, free: 71.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004208/0.8117, allocations: 318 kB / 0.7011 GB, free: 71.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * Number of states: 0 () * Number of discrete variables: 15 (trail.color[3],trail.color[2],trail.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (660): * Single equations (assignments): 654 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005876/0.8123, allocations: 354 kB / 0.7014 GB, free: 71.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003263/0.8126, allocations: 247.7 kB / 0.7017 GB, free: 71.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005416/0.818, allocations: 3.257 MB / 0.7049 GB, free: 71.11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00014/0.8182, allocations: 31.56 kB / 0.7049 GB, free: 71.11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.8182, allocations: 7.5 kB / 0.7049 GB, free: 71.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.062e-05/0.8182, allocations: 17.91 kB / 0.7049 GB, free: 71.11 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01531/0.8336, allocations: 9.555 MB / 0.7142 GB, free: 68.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.8336, allocations: 4.812 kB / 0.7142 GB, free: 68.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/0.8352, allocations: 330.3 kB / 0.7146 GB, free: 68.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00138/0.8366, allocations: 0.5235 MB / 0.7151 GB, free: 67.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/0.8367, allocations: 19.48 kB / 0.7151 GB, free: 67.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007661/0.8444, allocations: 6.348 MB / 0.7213 GB, free: 64.04 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002959/0.8474, allocations: 2.801 MB / 0.724 GB, free: 62.12 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006817/0.8542, allocations: 5.487 MB / 0.7294 GB, free: 57.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000586/0.8548, allocations: 329.4 kB / 0.7297 GB, free: 57.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004103/0.8552, allocations: 8 kB / 0.7297 GB, free: 57.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.8564, allocations: 40.75 kB / 0.7297 GB, free: 57.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.8567, allocations: 127.2 kB / 0.7299 GB, free: 57.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/0.8568, allocations: 75.3 kB / 0.7299 GB, free: 57.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001842/0.8587, allocations: 1.467 MB / 0.7314 GB, free: 56.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003783/0.8625, allocations: 0.7903 MB / 0.7321 GB, free: 55.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,idealWheelFront.phi_roll,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,revolute.phi,revolute.w,engineTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 181 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003673/0.8628, allocations: 167.2 kB / 0.7323 GB, free: 55.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005761/0.8686, allocations: 4.441 MB / 0.7366 GB, free: 51.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.8686, allocations: 8.25 kB / 0.7366 GB, free: 51.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00246/0.8711, allocations: 1.757 MB / 0.7384 GB, free: 49.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.8723, allocations: 224.2 kB / 0.7386 GB, free: 49.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.8833, allocations: 7.06 MB / 0.7455 GB, free: 42.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003509/0.8868, allocations: 3.25 MB / 0.7486 GB, free: 40.3 MB / 458.7 MB Notification: Performance of SimCode: time 6.72e-07/0.8868, allocations: 0 / 0.7486 GB, free: 40.3 MB / 458.7 MB Notification: Performance of Templates: time 0.0561/0.9429, allocations: 33.7 MB / 0.7816 GB, free: 13.64 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.makefile (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.sim & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)