Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) 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(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum") translateModel(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum") [: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.003412/0.003411, allocations: 177.3 kB / 7.453 MB, free: 2.508 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.377/1.377, allocations: 170.6 MB / 178.4 MB, free: 15.36 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.001765/0.001765, allocations: 115.8 kB / 217.7 MB, free: 8.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1955/0.1955, allocations: 37.98 MB / 294.8 MB, free: 9.594 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/7.985e-06, allocations: 1.312 kB / 349.5 MB, free: 37.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 48.72 MB / 398.2 MB, free: 5.668 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.4649, allocations: 87.81 MB / 486 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.4651, allocations: 71.81 kB / 486.1 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.6581/1.123, allocations: 166.3 MB / 0.6371 GB, free: 63.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001349/1.125, allocations: 173.4 kB / 0.6372 GB, free: 63.48 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.04784/1.173, allocations: 9.543 MB / 0.6466 GB, free: 60.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/1.173, allocations: 10.47 kB / 0.6466 GB, free: 60.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07719/1.25, allocations: 19.93 MB / 0.666 GB, free: 59.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04914/1.299, allocations: 19.88 MB / 0.6854 GB, free: 58.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004222/1.299, allocations: 240.2 kB / 0.6857 GB, free: 58.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003934/1.303, allocations: 480.7 kB / 0.6861 GB, free: 58.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02451/1.328, allocations: 10.88 MB / 0.6968 GB, free: 58.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03837/1.366, allocations: 16.71 MB / 0.7131 GB, free: 46.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008622/1.367, allocations: 136.8 kB / 0.7132 GB, free: 46.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00399/1.371, allocations: 52 kB / 0.7132 GB, free: 46.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002907/1.374, allocations: 1.793 MB / 0.715 GB, free: 45.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3205/1.695, allocations: 90.67 MB / 0.8035 GB, free: 60.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009081/1.704, allocations: 6.539 MB / 0.8099 GB, free: 59.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008318/1.712, allocations: 5.499 MB / 0.8153 GB, free: 59.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04061/1.753, allocations: 19.56 MB / 0.8344 GB, free: 55.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.883e-05/1.753, allocations: 72.06 kB / 0.8345 GB, free: 55.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=316): time 1.005e-05/1.753, allocations: 0 / 0.8345 GB, free: 55.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=387): time 0.1409/1.894, allocations: 50.33 MB / 0.8836 GB, free: 42.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/1.894, allocations: 482.7 kB / 0.8841 GB, free: 42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01637/1.91, allocations: 6.862 MB / 0.8908 GB, free: 39.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001375/1.912, allocations: 29.36 kB / 0.8908 GB, free: 39.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003901/1.916, allocations: 5.108 MB / 0.8958 GB, free: 36.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002936/1.919, allocations: 1.469 MB / 0.8972 GB, free: 35.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001768/1.921, allocations: 0 / 0.8972 GB, free: 35.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001085/1.922, allocations: 0.7841 MB / 0.898 GB, free: 34.56 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008776/1.93, allocations: 5.578 MB / 0.9035 GB, free: 30.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01246/1.943, allocations: 11.94 MB / 0.9151 GB, free: 16.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01378/1.957, allocations: 7.99 MB / 0.9229 GB, free: 9.918 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002699/1.957, allocations: 66 kB / 0.923 GB, free: 9.855 MB / 442.7 MB Notification: Performance of matching and sorting (n=1466) (initialization): time 0.328/2.285, allocations: 29.81 MB / 0.9521 GB, free: 96.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/2.285, allocations: 8.703 kB / 0.9521 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05618/2.341, allocations: 19.43 MB / 0.9711 GB, free: 96.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05051/2.392, allocations: 13.13 MB / 0.9839 GB, free: 96.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/2.403, allocations: 2.675 MB / 0.9865 GB, free: 96.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04731/2.451, allocations: 33.16 MB / 1.019 GB, free: 87.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01488/2.466, allocations: 0.675 MB / 1.02 GB, free: 87.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003562/2.469, allocations: 0.678 MB / 1.02 GB, free: 87.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1020 * Number of states: 0 () * Number of discrete variables: 63 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.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 (1324): * Single equations (assignments): 1300 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.005/2.474, allocations: 0.6643 MB / 1.021 GB, free: 87.59 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003032/2.477, allocations: 0.7568 MB / 1.022 GB, free: 87.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03185/2.509, allocations: 13.38 MB / 1.035 GB, free: 85.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02854/2.538, allocations: 11.96 MB / 1.046 GB, free: 76.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.072e-05/2.538, allocations: 19.75 kB / 1.046 GB, free: 76.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001593/2.538, allocations: 22.66 kB / 1.046 GB, free: 76.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06324/2.601, allocations: 27.49 MB / 1.073 GB, free: 52.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.515e-05/2.601, allocations: 0 / 1.073 GB, free: 52.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005732/2.607, allocations: 0.7572 MB / 1.074 GB, free: 51.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01871/2.626, allocations: 5.361 MB / 1.079 GB, free: 46.03 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001309/2.627, allocations: 51.91 kB / 1.079 GB, free: 45.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2359/2.863, allocations: 25.7 MB / 1.104 GB, free: 90.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002385/2.866, allocations: 4.36 MB / 1.109 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03726/2.903, allocations: 20.14 MB / 1.128 GB, free: 85.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003077/2.906, allocations: 0.7835 MB / 1.129 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003663/2.91, allocations: 31.92 kB / 1.129 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006838/2.917, allocations: 277.8 kB / 1.129 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001358/2.918, allocations: 198.9 kB / 1.13 GB, free: 84.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005428/2.919, allocations: 118.9 kB / 1.13 GB, free: 84.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.01063/2.929, allocations: 4.769 MB / 1.134 GB, free: 84.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01918/2.948, allocations: 2.567 MB / 1.137 GB, free: 84.72 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 271 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001631/2.95, allocations: 186.7 kB / 1.137 GB, free: 84.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02801/2.978, allocations: 15.08 MB / 1.152 GB, free: 83.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/2.978, allocations: 3.594 kB / 1.152 GB, free: 83.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01463/2.993, allocations: 6.952 MB / 1.159 GB, free: 80.46 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009556/3.002, allocations: 1.034 MB / 1.16 GB, free: 80.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05994/3.062, allocations: 20.51 MB / 1.18 GB, free: 73.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01696/3.079, allocations: 6.828 MB / 1.186 GB, free: 71.47 MB / 442.7 MB Notification: Performance of SimCode: time 1.413e-06/3.079, allocations: 0 / 1.186 GB, free: 71.47 MB / 442.7 MB Notification: Performance of Templates: time 0.4037/3.483, allocations: 120.3 MB / 1.304 GB, free: 90 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1)