Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.2 MB / 245 MB, free: 7.613 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 112.6 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4198/0.4198, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003874/0.0003874, allocations: 4 kB / 468.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.395/0.3954, allocations: 63.25 MB / 0.5193 GB, free: 43.7 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.5314, allocations: 104.3 MB / 0.6211 GB, free: 1.301 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.5316, allocations: 79.94 kB / 0.6212 GB, free: 1.227 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7603/1.292, allocations: 192.1 MB / 0.8088 GB, free: 65.64 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.735e-06/1.292, allocations: 0 / 0.8088 GB, free: 65.64 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008638/1.293, allocations: 172 kB / 0.809 GB, free: 65.47 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2557 * Number of variables: 2557 Notification: Performance of Generate backend data structure: time 0.07236/1.365, allocations: 11.57 MB / 0.8203 GB, free: 53.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.885e-05/1.365, allocations: 11.97 kB / 0.8203 GB, free: 53.79 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008408/1.374, allocations: 1.32 MB / 0.8216 GB, free: 52.46 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1116/1.485, allocations: 23.14 MB / 0.8442 GB, free: 29.28 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04303/1.528, allocations: 17.11 MB / 0.8609 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00061/1.529, allocations: 0.5614 MB / 0.8614 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004764/1.534, allocations: 0.7844 MB / 0.8622 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04583/1.58, allocations: 19.28 MB / 0.881 GB, free: 5.664 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000646/1.581, allocations: 134.8 kB / 0.8812 GB, free: 5.531 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002734/1.583, allocations: 367.8 kB / 0.8815 GB, free: 5.172 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002688/1.586, allocations: 1.648 MB / 0.8831 GB, free: 3.52 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03783/1.624, allocations: 16.11 MB / 0.8989 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8179/2.442, allocations: 90.01 MB / 0.9868 GB, free: 35.95 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04208/2.484, allocations: 8.783 MB / 0.9953 GB, free: 34.62 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001865/2.486, allocations: 1.003 MB / 0.9963 GB, free: 33.74 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.916e-05/2.486, allocations: 77.2 kB / 0.9964 GB, free: 33.68 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=322): time 9.298e-06/2.486, allocations: 0 / 0.9964 GB, free: 33.68 MB / 0.5262 GB Notification: Performance of matching and sorting (n=397): time 0.3117/2.798, allocations: 66.85 MB / 1.062 GB, free: 10.03 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004556/2.802, allocations: 5.192 MB / 1.067 GB, free: 4.562 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02789/2.83, allocations: 7.613 MB / 1.074 GB, free: 14.66 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001663/2.832, allocations: 82.48 kB / 1.074 GB, free: 14.57 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.008412/2.84, allocations: 6.109 MB / 1.08 GB, free: 9.09 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.003652/2.844, allocations: 1.544 MB / 1.082 GB, free: 7.723 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001462/2.846, allocations: 222.6 kB / 1.082 GB, free: 7.508 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0006642/2.846, allocations: 0.7777 MB / 1.083 GB, free: 6.859 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008733/2.855, allocations: 5.725 MB / 1.088 GB, free: 1.992 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02302/2.878, allocations: 12.52 MB / 1.101 GB, free: 4.727 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/2.892, allocations: 8.035 MB / 1.108 GB, free: 12.87 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001826/2.893, allocations: 60 kB / 1.108 GB, free: 12.81 MB / 0.573 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.4308/3.323, allocations: 36.56 MB / 1.144 GB, free: 124.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/3.324, allocations: 102.2 kB / 1.144 GB, free: 124.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05952/3.383, allocations: 24.33 MB / 1.168 GB, free: 124 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04983/3.433, allocations: 18.75 MB / 1.186 GB, free: 123.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009766/3.443, allocations: 2.725 MB / 1.189 GB, free: 123.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05006/3.493, allocations: 41.05 MB / 1.229 GB, free: 105.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01243/3.505, allocations: 1.152 MB / 1.23 GB, free: 104.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002437/3.508, allocations: 0.6617 MB / 1.231 GB, free: 104.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 999 * Number of states: 0 () * Number of discrete variables: 66 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1307): * Single equations (assignments): 1283 * 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.007995/3.516, allocations: 3.959 MB / 1.235 GB, free: 101.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001848/3.518, allocations: 0.7817 MB / 1.235 GB, free: 100.8 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0272/3.545, allocations: 13.73 MB / 1.249 GB, free: 87.13 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02351/3.569, allocations: 12.25 MB / 1.261 GB, free: 74.92 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.695e-05/3.569, allocations: 16 kB / 1.261 GB, free: 74.91 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.675e-05/3.569, allocations: 19.92 kB / 1.261 GB, free: 74.89 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0543/3.623, allocations: 29.25 MB / 1.289 GB, free: 45.87 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.735e-05/3.623, allocations: 4 kB / 1.289 GB, free: 45.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004462/3.628, allocations: 0.8977 MB / 1.29 GB, free: 44.99 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01702/3.645, allocations: 5.522 MB / 1.296 GB, free: 39.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001237/3.646, allocations: 116.5 kB / 1.296 GB, free: 39.39 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03354/3.68, allocations: 29.22 MB / 1.324 GB, free: 9.727 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002646/3.682, allocations: 4.745 MB / 1.329 GB, free: 4.656 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3856/4.068, allocations: 20.5 MB / 1.349 GB, free: 119.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00329/4.071, allocations: 0.8201 MB / 1.35 GB, free: 119.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002744/4.074, allocations: 91.22 kB / 1.35 GB, free: 119.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006707/4.081, allocations: 0.504 MB / 1.35 GB, free: 119.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001554/4.082, allocations: 304.4 kB / 1.351 GB, free: 119.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004484/4.083, allocations: 121.5 kB / 1.351 GB, free: 119.1 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01269/4.095, allocations: 5.363 MB / 1.356 GB, free: 118.9 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.41e-07/4.095, allocations: 0 / 1.356 GB, free: 118.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01642/4.112, allocations: 2.785 MB / 1.359 GB, free: 118.9 MB / 0.573 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.04599/4.158, allocations: 21.54 MB / 1.38 GB, free: 116.8 MB / 0.573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17: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.02978/4.188, allocations: 15.99 MB / 1.395 GB, free: 112.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/4.188, allocations: 0 / 1.395 GB, free: 112.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01501/4.203, allocations: 7.435 MB / 1.403 GB, free: 108.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009332/4.212, allocations: 1.219 MB / 1.404 GB, free: 108.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6336/4.846, allocations: 265.5 MB / 1.663 GB, free: 107.8 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01014/4.856, allocations: 6.304 MB / 1.669 GB, free: 106.9 MB / 0.6199 GB Notification: Performance of simCode: alias equations: time 0.01044/4.866, allocations: 3.726 MB / 1.673 GB, free: 106.8 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008235/4.875, allocations: 4.401 MB / 1.677 GB, free: 106.8 MB / 0.6199 GB Notification: Performance of SimCode: time 1.112e-06/4.875, allocations: 0 / 1.677 GB, free: 106.8 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6867/5.561, allocations: 216.4 MB / 1.889 GB, free: 131.6 MB / 0.6199 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/5.562, allocations: 219.6 kB / 1.889 GB, free: 131.3 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.709/15.27, allocations: 0 / 1.889 GB, free: 131.3 MB / 0.6199 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat