Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.01441/0.01441, allocations: 165.3 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.678/1.678, allocations: 170.8 MB / 186.6 MB, free: 1.129 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002048/0.002048, allocations: 111 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4929/0.4929, allocations: 38.05 MB / 303.7 MB, free: 42.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005102/0.0005102, allocations: 8 kB / 363 MB, free: 5.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1081, allocations: 48.7 MB / 411.7 MB, free: 4.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4197/0.5278, allocations: 88.65 MB / 0.4886 GB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.5281, allocations: 69.91 kB / 0.4887 GB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.014/1.542, allocations: 171.6 MB / 0.6563 GB, free: 68.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.542, allocations: 3.938 kB / 0.6563 GB, free: 68.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008241/1.543, allocations: 173.5 kB / 0.6564 GB, free: 68.84 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.07222/1.615, allocations: 11.21 MB / 0.6674 GB, free: 65.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/1.615, allocations: 7.312 kB / 0.6674 GB, free: 65.05 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006985/1.622, allocations: 1.313 MB / 0.6687 GB, free: 64.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1507/1.773, allocations: 21.87 MB / 0.69 GB, free: 55.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06761/1.841, allocations: 19.95 MB / 0.7095 GB, free: 35.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007649/1.841, allocations: 0.5581 MB / 0.7101 GB, free: 35.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004623/1.846, allocations: 0.7746 MB / 0.7108 GB, free: 34.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06677/1.913, allocations: 19.28 MB / 0.7296 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009084/1.914, allocations: 134.8 kB / 0.7298 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004233/1.918, allocations: 368.9 kB / 0.7301 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005159/1.923, allocations: 1.646 MB / 0.7317 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4121/2.335, allocations: 16.11 MB / 0.7475 GB, free: 57.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.155/2.491, allocations: 90.06 MB / 0.8354 GB, free: 33.72 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04384/2.534, allocations: 8.778 MB / 0.844 GB, free: 31.27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002142/2.537, allocations: 1.006 MB / 0.845 GB, free: 30.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001132/2.537, allocations: 72.44 kB / 0.845 GB, free: 30.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=322): time 7.854e-06/2.537, allocations: 0 / 0.845 GB, free: 30.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.7072/3.244, allocations: 67.16 MB / 0.9106 GB, free: 91.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006659/3.251, allocations: 5.181 MB / 0.9157 GB, free: 87.28 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03028/3.281, allocations: 7.557 MB / 0.9231 GB, free: 86.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001797/3.283, allocations: 85.52 kB / 0.9231 GB, free: 86.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.009402/3.292, allocations: 6.114 MB / 0.9291 GB, free: 85.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004339/3.297, allocations: 1.551 MB / 0.9306 GB, free: 84.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003296/3.3, allocations: 220.3 kB / 0.9308 GB, free: 84.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001506/3.302, allocations: 0.7834 MB / 0.9316 GB, free: 83.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02058/3.322, allocations: 5.714 MB / 0.9372 GB, free: 83.78 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02669/3.349, allocations: 12 MB / 0.9489 GB, free: 75.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02046/3.37, allocations: 8.012 MB / 0.9567 GB, free: 74.02 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003432/3.37, allocations: 64 kB / 0.9568 GB, free: 74.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1483/3.518, allocations: 36 MB / 0.9919 GB, free: 66.58 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001979/3.519, allocations: 101.1 kB / 0.992 GB, free: 66.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1027/3.621, allocations: 23.83 MB / 1.015 GB, free: 61.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09992/3.721, allocations: 18.23 MB / 1.033 GB, free: 45.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01764/3.739, allocations: 2.756 MB / 1.036 GB, free: 42.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08766/3.827, allocations: 40.24 MB / 1.075 GB, free: 1.742 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3642/4.191, allocations: 1.134 MB / 1.076 GB, free: 77.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003914/4.195, allocations: 0.6657 MB / 1.077 GB, free: 77.72 MB / 458.7 MB 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 (1310): * Single equations (assignments): 1286 * 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.01495/4.21, allocations: 3.957 MB / 1.081 GB, free: 77.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002945/4.213, allocations: 0.7887 MB / 1.082 GB, free: 77.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05681/4.27, allocations: 13.74 MB / 1.095 GB, free: 77.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04949/4.319, allocations: 12.24 MB / 1.107 GB, free: 76.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.726e-05/4.319, allocations: 16.06 kB / 1.107 GB, free: 76.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001381/4.319, allocations: 19.75 kB / 1.107 GB, free: 76.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1017/4.421, allocations: 29.3 MB / 1.136 GB, free: 68.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-05/4.421, allocations: 3.344 kB / 1.136 GB, free: 68.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008684/4.43, allocations: 0.8996 MB / 1.136 GB, free: 68.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03295/4.463, allocations: 5.515 MB / 1.142 GB, free: 67.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001528/4.464, allocations: 110.8 kB / 1.142 GB, free: 67.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06228/4.527, allocations: 29.22 MB / 1.17 GB, free: 53.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004309/4.531, allocations: 4.74 MB / 1.175 GB, free: 48.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06767/4.599, allocations: 20.52 MB / 1.195 GB, free: 37.52 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003331/4.602, allocations: 0.833 MB / 1.196 GB, free: 36.75 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003678/4.606, allocations: 86.47 kB / 1.196 GB, free: 36.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01062/4.617, allocations: 0.5049 MB / 1.196 GB, free: 36.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002486/4.619, allocations: 306.6 kB / 1.197 GB, free: 36.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00111/4.62, allocations: 119 kB / 1.197 GB, free: 36.12 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01447/4.635, allocations: 5.404 MB / 1.202 GB, free: 31.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/4.635, allocations: 3 kB / 1.202 GB, free: 31.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01725/4.652, allocations: 2.771 MB / 1.205 GB, free: 28.54 MB / 458.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[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.06599/4.718, allocations: 21.53 MB / 1.226 GB, free: 7.012 MB / 458.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Mechanics/MultiBody/Joints.mo:1330:5-1332: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.1+maint.om/Mechanics/MultiBody/Joints.mo:1330:5-1332: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.1+maint.om/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.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.1+maint.om/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.04449/4.763, allocations: 15.7 MB / 1.241 GB, free: 7.391 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/4.763, allocations: 0 / 1.241 GB, free: 7.391 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3564/5.119, allocations: 7.447 MB / 1.248 GB, free: 90.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01242/5.132, allocations: 1.213 MB / 1.25 GB, free: 90.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7513/5.883, allocations: 264.9 MB / 1.508 GB, free: 138.6 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01653/5.9, allocations: 6.314 MB / 1.515 GB, free: 137.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01797/5.918, allocations: 3.73 MB / 1.518 GB, free: 137.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01173/5.929, allocations: 4.415 MB / 1.522 GB, free: 133.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.693e-06/5.929, allocations: 0 / 1.522 GB, free: 133.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7991/6.729, allocations: 215.6 MB / 1.733 GB, free: 111.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/6.729, allocations: 211.1 kB / 1.733 GB, free: 111.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/17.23, allocations: 0 / 1.733 GB, free: 111.3 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat