Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.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.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") [: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.002112/0.002112, allocations: 189.3 kB / 7.462 MB, free: 1.547 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 221.4 MB / 229.3 MB, free: 8.473 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000939/0.0009393, allocations: 98.94 kB / 280.1 MB, free: 7.852 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.045/0.045, allocations: 8.827 MB / 339.7 MB, free: 12.3 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.85e-05, allocations: 0 / 398.1 MB, free: 58.26 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07027/0.07035, allocations: 52.38 MB / 450.5 MB, free: 5.902 MB / 290.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2303/0.3007, allocations: 84.9 MB / 0.5229 GB, free: 12.47 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.3009, allocations: 76.61 kB / 0.5229 GB, free: 12.44 MB / 354.8 MB Notification: Performance of FrontEnd: time 0.1352/0.4362, allocations: 50.67 MB / 0.5724 GB, free: 14.08 MB / 402.8 MB Notification: Performance of Transformations before backend: time 0.0001097/0.4363, allocations: 40 kB / 0.5725 GB, free: 14.04 MB / 402.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.008923/0.4453, allocations: 2.573 MB / 0.575 GB, free: 11.41 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.4453, allocations: 15.97 kB / 0.575 GB, free: 11.4 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009211/0.4545, allocations: 1.537 MB / 0.5765 GB, free: 9.855 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003532/0.4581, allocations: 1.484 MB / 0.5779 GB, free: 8.324 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.4582, allocations: 76 kB / 0.578 GB, free: 8.25 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000884/0.4591, allocations: 139.9 kB / 0.5781 GB, free: 8.113 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007729/0.4669, allocations: 4.78 MB / 0.5828 GB, free: 3.328 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01022/0.4771, allocations: 6.246 MB / 0.5889 GB, free: 12.79 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.902e-05/0.4772, allocations: 23.81 kB / 0.5889 GB, free: 12.76 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004508/0.4777, allocations: 8 kB / 0.5889 GB, free: 12.75 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001105/0.4788, allocations: 0.8209 MB / 0.5897 GB, free: 11.93 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0297/0.5085, allocations: 20.19 MB / 0.6095 GB, free: 7.277 MB / 434.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.5102, allocations: 0.9952 MB / 0.6104 GB, free: 6.281 MB / 434.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000786/0.511, allocations: 0.5229 MB / 0.6109 GB, free: 5.758 MB / 434.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004759/0.5157, allocations: 3.252 MB / 0.6141 GB, free: 2.191 MB / 434.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.5158, allocations: 43.16 kB / 0.6142 GB, free: 2.137 MB / 434.8 MB Notification: Performance of pre-optimization done (n=99): time 3.327e-06/0.5158, allocations: 0 / 0.6142 GB, free: 2.137 MB / 434.8 MB Notification: Performance of matching and sorting (n=99): time 0.002776/0.5186, allocations: 1.277 MB / 0.6154 GB, free: 0.8555 MB / 434.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.5186, allocations: 56.06 kB / 0.6155 GB, free: 0.7891 MB / 434.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.5211, allocations: 1.684 MB / 0.6171 GB, free: 15.09 MB / 450.8 MB Notification: Performance of collectPreVariables (initialization): time 5.612e-05/0.5212, allocations: 29.7 kB / 0.6171 GB, free: 15.05 MB / 450.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001076/0.5223, allocations: 1.825 MB / 0.6189 GB, free: 13.2 MB / 450.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003257/0.5226, allocations: 387 kB / 0.6193 GB, free: 12.82 MB / 450.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.5227, allocations: 0 / 0.6193 GB, free: 12.82 MB / 450.8 MB Notification: Performance of setup shared object (initialization): time 0.0002977/0.523, allocations: 482.1 kB / 0.6197 GB, free: 12.34 MB / 450.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.5247, allocations: 1.03 MB / 0.6207 GB, free: 11.3 MB / 450.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002786/0.5274, allocations: 3.038 MB / 0.6237 GB, free: 7.25 MB / 450.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002574/0.53, allocations: 1.835 MB / 0.6255 GB, free: 5.418 MB / 450.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.091e-05/0.5301, allocations: 20 kB / 0.6255 GB, free: 5.398 MB / 450.8 MB Notification: Performance of matching and sorting (n=442) (initialization): time 0.00574/0.5358, allocations: 3.628 MB / 0.6291 GB, free: 1.766 MB / 450.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.5359, allocations: 8 kB / 0.6291 GB, free: 1.758 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.747e-05/0.5359, allocations: 72 kB / 0.6291 GB, free: 1.688 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001068/0.536, allocations: 104.8 kB / 0.6292 GB, free: 1.586 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/0.5386, allocations: 0.7642 MB / 0.63 GB, free: 0.8203 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001045/0.5387, allocations: 139.5 kB / 0.6301 GB, free: 0.6836 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/0.5409, allocations: 387.3 kB / 0.6305 GB, free: 308 kB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002716/0.5412, allocations: 215.9 kB / 0.6307 GB, free: 92 kB / 450.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 412 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.1442/0.6854, allocations: 268.2 kB / 0.631 GB, free: 107.3 MB / 450.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/0.6857, allocations: 154.9 kB / 0.6311 GB, free: 107.3 MB / 450.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.6874, allocations: 1.18 MB / 0.6323 GB, free: 107.3 MB / 450.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001475/0.6876, allocations: 21.06 kB / 0.6323 GB, free: 107.3 MB / 450.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.6876, allocations: 0 / 0.6323 GB, free: 107.3 MB / 450.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.6876, allocations: 3.562 kB / 0.6323 GB, free: 107.3 MB / 450.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004817/0.6925, allocations: 3.281 MB / 0.6355 GB, free: 106.9 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.6925, allocations: 7.562 kB / 0.6355 GB, free: 106.9 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006845/0.6932, allocations: 138.8 kB / 0.6356 GB, free: 106.9 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/0.6932, allocations: 3.906 kB / 0.6356 GB, free: 106.9 MB / 450.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.577e-05/0.6933, allocations: 11.47 kB / 0.6356 GB, free: 106.9 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.6933, allocations: 3.875 kB / 0.6356 GB, free: 106.9 MB / 450.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6933, allocations: 8.719 kB / 0.6357 GB, free: 106.9 MB / 450.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002017/0.6953, allocations: 2.107 MB / 0.6377 GB, free: 106.5 MB / 450.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.6956, allocations: 260.6 kB / 0.638 GB, free: 106.4 MB / 450.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002269/0.6958, allocations: 6.344 kB / 0.638 GB, free: 106.4 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006391/0.6965, allocations: 23.16 kB / 0.638 GB, free: 106.4 MB / 450.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.689e-05/0.6966, allocations: 47.69 kB / 0.638 GB, free: 106.4 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.2e-05/0.6967, allocations: 30.38 kB / 0.6381 GB, free: 106.4 MB / 450.8 MB Notification: Performance of sort global known variables: time 0.001324/0.698, allocations: 1.137 MB / 0.6392 GB, free: 106.3 MB / 450.8 MB Notification: Performance of remove unused functions: time 0.002303/0.7003, allocations: 0.6853 MB / 0.6398 GB, free: 106.2 MB / 450.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.r[1],body.v[1],body.phi,slipBasedRolling.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003001/0.7006, allocations: 156.4 kB / 0.64 GB, free: 106.1 MB / 450.8 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.7033, allocations: 2.267 MB / 0.6422 GB, free: 106.1 MB / 450.8 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.7033, allocations: 1.312 kB / 0.6422 GB, free: 106.1 MB / 450.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0007578/0.7041, allocations: 0.5448 MB / 0.6427 GB, free: 106.1 MB / 450.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.7049, allocations: 171.2 kB / 0.6429 GB, free: 106 MB / 450.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006482/0.7114, allocations: 4.352 MB / 0.6471 GB, free: 105.1 MB / 450.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002436/0.7138, allocations: 2.502 MB / 0.6496 GB, free: 104.4 MB / 450.8 MB Notification: Performance of SimCode: time 5.21e-07/0.7138, allocations: 0 / 0.6496 GB, free: 104.4 MB / 450.8 MB Notification: Performance of Templates: time 0.03066/0.7445, allocations: 17.82 MB / 0.667 GB, free: 103.3 MB / 450.8 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & ./PlanarMechanics_PlanarMechanics.Examples.CounterSpin -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)