Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01523/0.01523, allocations: 176.1 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.078/2.078, allocations: 194.5 MB / 210.3 MB, free: 7.605 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002004/0.002003, allocations: 112.7 kB / 255.6 MB, free: 10.24 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.253/0.253, allocations: 40 MB / 340.8 MB, free: 11.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004726/0.0004725, allocations: 12.88 kB / 406.3 MB, free: 51.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09574/0.09626, allocations: 54.87 MB / 461.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5124/0.6088, allocations: 95.39 MB / 0.5435 GB, free: 21.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.6091, allocations: 70.39 kB / 0.5435 GB, free: 21.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7296/1.339, allocations: 171.8 MB / 0.7113 GB, free: 10.12 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.894e-06/1.339, allocations: 0 / 0.7113 GB, free: 10.12 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009018/1.34, allocations: 172 kB / 0.7115 GB, free: 9.949 MB / 490.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.8451/2.185, allocations: 11.21 MB / 0.7224 GB, free: 70.6 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/2.185, allocations: 11.38 kB / 0.7224 GB, free: 70.6 MB / 490.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007183/2.192, allocations: 1.315 MB / 0.7237 GB, free: 70.5 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1539/2.346, allocations: 21.89 MB / 0.7451 GB, free: 69.91 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06507/2.411, allocations: 19.96 MB / 0.7646 GB, free: 69.25 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008068/2.412, allocations: 0.556 MB / 0.7651 GB, free: 69.24 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004816/2.417, allocations: 0.7787 MB / 0.7659 GB, free: 69.22 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0597/2.477, allocations: 19.28 MB / 0.7847 GB, free: 64.45 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007856/2.477, allocations: 136.4 kB / 0.7849 GB, free: 64.43 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003736/2.481, allocations: 371.7 kB / 0.7852 GB, free: 64.43 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003999/2.485, allocations: 1.646 MB / 0.7868 GB, free: 64.41 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05132/2.537, allocations: 16.11 MB / 0.8026 GB, free: 64.2 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1458/2.682, allocations: 90.07 MB / 0.8905 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04257/2.725, allocations: 8.787 MB / 0.8991 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002118/2.727, allocations: 1.003 MB / 0.9001 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001137/2.727, allocations: 79.17 kB / 0.9001 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=322): time 7.544e-06/2.727, allocations: 0 / 0.9001 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=397): time 0.7852/3.513, allocations: 67.17 MB / 0.9657 GB, free: 93.64 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004522/3.517, allocations: 5.171 MB / 0.9708 GB, free: 88.96 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01999/3.537, allocations: 7.551 MB / 0.9782 GB, free: 88.38 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001481/3.539, allocations: 85.78 kB / 0.9782 GB, free: 88.35 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.006859/3.546, allocations: 6.116 MB / 0.9842 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003162/3.549, allocations: 1.552 MB / 0.9857 GB, free: 84.85 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00226/3.551, allocations: 224 kB / 0.9859 GB, free: 84.85 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001024/3.552, allocations: 0.7801 MB / 0.9867 GB, free: 84.52 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01464/3.567, allocations: 5.722 MB / 0.9923 GB, free: 84.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01901/3.586, allocations: 12.01 MB / 1.004 GB, free: 76.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01869/3.605, allocations: 8.025 MB / 1.012 GB, free: 74.47 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002792/3.605, allocations: 63.94 kB / 1.012 GB, free: 74.47 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1449/3.75, allocations: 36.2 MB / 1.047 GB, free: 60.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000181/3.75, allocations: 100 kB / 1.047 GB, free: 60.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1023/3.853, allocations: 23.99 MB / 1.071 GB, free: 43.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09937/3.952, allocations: 18.42 MB / 1.089 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01765/3.97, allocations: 2.717 MB / 1.091 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4821/4.452, allocations: 41.05 MB / 1.132 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01942/4.471, allocations: 1.144 MB / 1.133 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003373/4.475, allocations: 0.6661 MB / 1.133 GB, free: 75.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 996 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1304): * Single equations (assignments): 1280 * 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 {4,4} * 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.01285/4.488, allocations: 3.963 MB / 1.137 GB, free: 75.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002941/4.491, allocations: 0.7841 MB / 1.138 GB, free: 75.11 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05258/4.543, allocations: 13.73 MB / 1.151 GB, free: 74.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04617/4.589, allocations: 12.25 MB / 1.163 GB, free: 74.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-05/4.59, allocations: 20.22 kB / 1.163 GB, free: 74.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001072/4.59, allocations: 18.56 kB / 1.163 GB, free: 74.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09682/4.687, allocations: 29.28 MB / 1.192 GB, free: 64.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.276e-05/4.687, allocations: 1.531 kB / 1.192 GB, free: 64.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008552/4.695, allocations: 0.8997 MB / 1.193 GB, free: 64.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03258/4.728, allocations: 5.523 MB / 1.198 GB, free: 63.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001499/4.729, allocations: 114.3 kB / 1.198 GB, free: 63.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06283/4.792, allocations: 29.21 MB / 1.227 GB, free: 48.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004465/4.797, allocations: 4.742 MB / 1.231 GB, free: 44.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06338/4.86, allocations: 20.51 MB / 1.252 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003239/4.864, allocations: 0.8313 MB / 1.252 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003683/4.867, allocations: 88.44 kB / 1.252 GB, free: 27.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01053/4.878, allocations: 0.5 MB / 1.253 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002412/4.88, allocations: 303.3 kB / 1.253 GB, free: 27.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009507/4.881, allocations: 121.1 kB / 1.253 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01438/4.896, allocations: 5.405 MB / 1.259 GB, free: 22.81 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.4e-07/4.896, allocations: 0 / 1.259 GB, free: 22.81 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01705/4.913, allocations: 2.792 MB / 1.261 GB, free: 20.04 MB / 0.5105 GB 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[6],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 281 * 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 {8,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,54.7%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06444/4.977, allocations: 21.54 MB / 1.282 GB, free: 2.008 MB / 0.5105 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.4359/5.413, allocations: 15.98 MB / 1.298 GB, free: 100.3 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.677e-05/5.413, allocations: 3.031 kB / 1.298 GB, free: 100.3 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0372/5.451, allocations: 7.432 MB / 1.305 GB, free: 98.87 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01728/5.468, allocations: 1.219 MB / 1.306 GB, free: 98.82 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7577/6.226, allocations: 265.1 MB / 1.565 GB, free: 190.4 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01714/6.243, allocations: 6.317 MB / 1.571 GB, free: 189.4 MB / 0.6199 GB Notification: Performance of simCode: alias equations: time 0.01993/6.263, allocations: 3.726 MB / 1.575 GB, free: 189.4 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01245/6.275, allocations: 4.416 MB / 1.579 GB, free: 189.4 MB / 0.6199 GB Notification: Performance of SimCode: time 1.814e-06/6.275, allocations: 0 / 1.579 GB, free: 189.4 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9886/7.264, allocations: 216.9 MB / 1.791 GB, free: 185.2 MB / 0.6199 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/7.264, allocations: 207.7 kB / 1.791 GB, free: 184.9 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/18.06, allocations: 7.219 kB / 1.791 GB, free: 184.9 MB / 0.6199 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat