Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [: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 3.2.1+maint.om/package.mo): time 0.002558/0.002558, allocations: 174.8 kB / 7.451 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.374/1.374, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001715/0.001714, allocations: 109.1 kB / 217.7 MB, free: 8.172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.004e-05/1.033e-05, allocations: 0 / 261.8 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08849, allocations: 38.76 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2878/0.3764, allocations: 86.32 MB / 386.8 MB, free: 14.46 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.3767, allocations: 82.27 kB / 386.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.2061/0.5829, allocations: 71.33 MB / 458.2 MB, free: 12.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002362/0.5831, allocations: 68 kB / 458.3 MB, free: 12.68 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.01388/0.597, allocations: 3.397 MB / 461.7 MB, free: 9.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.28e-05/0.5971, allocations: 16.02 kB / 461.7 MB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0116/0.6087, allocations: 1.855 MB / 463.6 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01328/0.6221, allocations: 3.936 MB / 467.5 MB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003693/0.6225, allocations: 120 kB / 467.6 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002642/0.6251, allocations: 207.9 kB / 467.8 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.182/0.8072, allocations: 5.649 MB / 473.5 MB, free: 113.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01492/0.8221, allocations: 8.596 MB / 482.1 MB, free: 110.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001341/0.8223, allocations: 57.12 kB / 482.1 MB, free: 110.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00043/0.8228, allocations: 30.31 kB / 482.2 MB, free: 110.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001263/0.824, allocations: 1.024 MB / 483.2 MB, free: 110.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04557/0.8696, allocations: 44.04 MB / 0.5149 GB, free: 83.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003463/0.8731, allocations: 2.703 MB / 0.5175 GB, free: 81.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002285/0.8754, allocations: 1.798 MB / 0.5193 GB, free: 80.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009724/0.8852, allocations: 5.59 MB / 0.5247 GB, free: 77.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.8853, allocations: 56.8 kB / 0.5248 GB, free: 77.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 7.143e-06/0.8853, allocations: 3.75 kB / 0.5248 GB, free: 77.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=156): time 0.03982/0.9252, allocations: 15.12 MB / 0.5396 GB, free: 72.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.9253, allocations: 145.5 kB / 0.5397 GB, free: 71.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003933/0.9292, allocations: 2.631 MB / 0.5423 GB, free: 69.72 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003235/0.9295, allocations: 25.7 kB / 0.5423 GB, free: 69.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.9308, allocations: 2.632 MB / 0.5449 GB, free: 67.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000689/0.9315, allocations: 0.5912 MB / 0.5454 GB, free: 66.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.9317, allocations: 3.844 kB / 0.5454 GB, free: 66.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002468/0.932, allocations: 0.537 MB / 0.546 GB, free: 66.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/0.9341, allocations: 1.846 MB / 0.5478 GB, free: 64.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003989/0.9381, allocations: 5.314 MB / 0.553 GB, free: 57.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004443/0.9426, allocations: 3.104 MB / 0.556 GB, free: 55.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/0.9427, allocations: 36 kB / 0.556 GB, free: 55.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01526/0.958, allocations: 7.267 MB / 0.5631 GB, free: 49.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.9581, allocations: 7.906 kB / 0.5631 GB, free: 49.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001909/0.9583, allocations: 128 kB / 0.5632 GB, free: 49.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003984/0.9623, allocations: 1.221 MB / 0.5644 GB, free: 48.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004778/0.9671, allocations: 1.282 MB / 0.5657 GB, free: 47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00792/0.975, allocations: 5.785 MB / 0.5713 GB, free: 41.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006095/0.9812, allocations: 212.7 kB / 0.5715 GB, free: 41.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/0.9824, allocations: 347.4 kB / 0.5719 GB, free: 41.39 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (690): * Single equations (assignments): 686 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008298/0.9832, allocations: 420.2 kB / 0.5723 GB, free: 40.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005945/0.9838, allocations: 272.4 kB / 0.5725 GB, free: 40.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006191/0.99, allocations: 3.104 MB / 0.5756 GB, free: 38.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.829e-05/0.9901, allocations: 12 kB / 0.5756 GB, free: 38.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.9901, allocations: 7.312 kB / 0.5756 GB, free: 38.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.069e-05/0.9902, allocations: 15.3 kB / 0.5756 GB, free: 38.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/1.004, allocations: 6.561 MB / 0.582 GB, free: 33.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/1.004, allocations: 4.609 kB / 0.582 GB, free: 33.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001257/1.005, allocations: 216.9 kB / 0.5822 GB, free: 32.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003683/1.009, allocations: 1.021 MB / 0.5832 GB, free: 32.19 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/1.009, allocations: 5.453 kB / 0.5832 GB, free: 32.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007006/1.016, allocations: 5.377 MB / 0.5885 GB, free: 26.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.016, allocations: 0 / 0.5885 GB, free: 26.74 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008562/1.025, allocations: 5.511 MB / 0.5939 GB, free: 21.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001845/1.027, allocations: 0.5364 MB / 0.5944 GB, free: 20.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005894/1.027, allocations: 4 kB / 0.5944 GB, free: 20.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/1.029, allocations: 59.42 kB / 0.5944 GB, free: 20.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/1.029, allocations: 72.8 kB / 0.5945 GB, free: 20.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/1.029, allocations: 43.98 kB / 0.5945 GB, free: 20.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.003516/1.033, allocations: 1.731 MB / 0.5962 GB, free: 18.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006827/1.04, allocations: 0.767 MB / 0.597 GB, free: 17.96 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005775/1.04, allocations: 142.7 kB / 0.5971 GB, free: 17.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007208/1.047, allocations: 4.442 MB / 0.6015 GB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.048, allocations: 0 / 0.6015 GB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002045/1.05, allocations: 1.43 MB / 0.6029 GB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/1.052, allocations: 246 kB / 0.6031 GB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01659/1.068, allocations: 6.543 MB / 0.6095 GB, free: 5.125 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00366/1.072, allocations: 3.127 MB / 0.6125 GB, free: 1.992 MB / 346.7 MB Notification: Performance of SimCode: time 1.833e-06/1.072, allocations: 3.938 kB / 0.6125 GB, free: 1.988 MB / 346.7 MB Notification: Performance of Templates: time 0.2237/1.296, allocations: 32.17 MB / 0.644 GB, free: 97.56 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)