Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") [: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.002715/0.002716, allocations: 178.1 kB / 7.454 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.254/1.254, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.001036/0.001036, allocations: 100 kB / 280.1 MB, free: 1.309 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04304/0.04304, allocations: 8.85 MB / 339.7 MB, free: 5.75 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.12e-06/5.15e-06, allocations: 0 / 398.1 MB, free: 67.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06782/0.06784, allocations: 52.4 MB / 450.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2265/0.2944, allocations: 88.12 MB / 0.526 GB, free: 5.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001904/0.2946, allocations: 73.16 kB / 0.5261 GB, free: 5.289 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1603/0.4549, allocations: 60.26 MB / 0.5849 GB, free: 52 kB / 394.7 MB Notification: Performance of Transformations before backend: time 9.354e-05/0.455, allocations: 52 kB / 0.585 GB, free: 0 / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.006375/0.4614, allocations: 2.709 MB / 0.5876 GB, free: 13.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.4615, allocations: 12.03 kB / 0.5876 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009488/0.4709, allocations: 1.63 MB / 0.5892 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003615/0.4746, allocations: 1.676 MB / 0.5909 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.4747, allocations: 100 kB / 0.591 GB, free: 9.758 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008618/0.4756, allocations: 168 kB / 0.5911 GB, free: 9.594 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008206/0.4838, allocations: 5.431 MB / 0.5964 GB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01019/0.494, allocations: 7.076 MB / 0.6033 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.077e-05/0.4941, allocations: 27.7 kB / 0.6034 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004125/0.4945, allocations: 8 kB / 0.6034 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00116/0.4957, allocations: 0.9389 MB / 0.6043 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02899/0.5247, allocations: 23.63 MB / 0.6274 GB, free: 3.492 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.5262, allocations: 0.9295 MB / 0.6283 GB, free: 2.547 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008696/0.527, allocations: 0.6222 MB / 0.6289 GB, free: 1.922 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005074/0.5321, allocations: 3.512 MB / 0.6323 GB, free: 14.12 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.5322, allocations: 43.34 kB / 0.6324 GB, free: 14.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 3.416e-06/0.5322, allocations: 0 / 0.6324 GB, free: 14.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=120): time 0.006558/0.5388, allocations: 3.546 MB / 0.6358 GB, free: 10.47 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/0.5388, allocations: 60.19 kB / 0.6359 GB, free: 10.39 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002577/0.5414, allocations: 1.953 MB / 0.6378 GB, free: 8.445 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.618e-05/0.5415, allocations: 29.7 kB / 0.6378 GB, free: 8.41 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/0.5426, allocations: 2.106 MB / 0.6399 GB, free: 6.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003301/0.5429, allocations: 457.9 kB / 0.6403 GB, free: 5.816 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.5431, allocations: 0 / 0.6403 GB, free: 5.816 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003485/0.5434, allocations: 0.5073 MB / 0.6408 GB, free: 5.297 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.5452, allocations: 1.175 MB / 0.642 GB, free: 4.117 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.123/0.6682, allocations: 3.432 MB / 0.6453 GB, free: 170.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002925/0.6712, allocations: 2.063 MB / 0.6473 GB, free: 170.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.128e-05/0.6712, allocations: 22.12 kB / 0.6473 GB, free: 170.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.006075/0.6773, allocations: 4.157 MB / 0.6514 GB, free: 169.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.6774, allocations: 3.875 kB / 0.6514 GB, free: 169.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.997e-05/0.6774, allocations: 81.69 kB / 0.6515 GB, free: 169.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000103/0.6775, allocations: 118.2 kB / 0.6516 GB, free: 169.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002818/0.6804, allocations: 0.8886 MB / 0.6525 GB, free: 169.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.914e-05/0.6804, allocations: 160.6 kB / 0.6526 GB, free: 169.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002279/0.6827, allocations: 105.1 kB / 0.6527 GB, free: 169.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002767/0.683, allocations: 241.7 kB / 0.6529 GB, free: 169.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 368 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (488): * Single equations (assignments): 483 * Array equations: 5 * 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.0003748/0.6834, allocations: 313.1 kB / 0.6532 GB, free: 169.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.6836, allocations: 181.8 kB / 0.6534 GB, free: 169.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.6856, allocations: 1.327 MB / 0.6547 GB, free: 169.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000164/0.6858, allocations: 22.38 kB / 0.6547 GB, free: 169.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.6858, allocations: 0 / 0.6547 GB, free: 169.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.6858, allocations: 3.844 kB / 0.6547 GB, free: 169.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005794/0.6916, allocations: 3.795 MB / 0.6584 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.6916, allocations: 3.938 kB / 0.6584 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009452/0.6926, allocations: 175.8 kB / 0.6586 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.455e-05/0.6926, allocations: 12.44 kB / 0.6586 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.788e-05/0.6927, allocations: 18.48 kB / 0.6586 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.478e-06/0.6927, allocations: 14.78 kB / 0.6587 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.6927, allocations: 3.438 kB / 0.6587 GB, free: 169.1 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003074/0.6958, allocations: 2.6 MB / 0.6612 GB, free: 168.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003977/0.6962, allocations: 268.9 kB / 0.6615 GB, free: 168.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003486/0.6966, allocations: 3.969 kB / 0.6615 GB, free: 168.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008325/0.6974, allocations: 37.66 kB / 0.6615 GB, free: 168.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.6976, allocations: 68.67 kB / 0.6616 GB, free: 168.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.29e-05/0.6977, allocations: 38.45 kB / 0.6616 GB, free: 168.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001531/0.6992, allocations: 1.306 MB / 0.6629 GB, free: 168.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002478/0.7017, allocations: 0.5555 MB / 0.6634 GB, free: 168.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 88 * Array equations: 5 * 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.0003029/0.702, allocations: 160.5 kB / 0.6636 GB, free: 168.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003337/0.7053, allocations: 2.591 MB / 0.6661 GB, free: 167.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.7054, allocations: 0 / 0.6661 GB, free: 167.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009421/0.7063, allocations: 0.6363 MB / 0.6667 GB, free: 167.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009272/0.7073, allocations: 206.8 kB / 0.6669 GB, free: 167.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008211/0.7155, allocations: 5.217 MB / 0.672 GB, free: 166.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00296/0.7185, allocations: 2.811 MB / 0.6748 GB, free: 165.8 MB / 458.7 MB Notification: Performance of SimCode: time 5.31e-07/0.7185, allocations: 3.938 kB / 0.6748 GB, free: 165.8 MB / 458.7 MB Notification: Performance of Templates: time 0.04134/0.7598, allocations: 20.72 MB / 0.695 GB, free: 161.5 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)