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.001076/0.001076, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009164/0.0009166, allocations: 89.62 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 45.16 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.091e-05/3.095e-05, allocations: 0 / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 63.24 MB / 0.5114 GB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4181/0.5263, allocations: 104.2 MB / 0.6132 GB, free: 5.832 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.5266, allocations: 69.53 kB / 0.6133 GB, free: 5.801 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7419/1.269, allocations: 192.2 MB / 0.801 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.645e-06/1.269, allocations: 0 / 0.801 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0007363/1.269, allocations: 170.7 kB / 0.8012 GB, free: 110.3 MB / 0.5261 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.04397/1.313, allocations: 10.42 MB / 0.8114 GB, free: 107 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/1.313, allocations: 18 kB / 0.8114 GB, free: 107 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006025/1.319, allocations: 1.314 MB / 0.8127 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07903/1.398, allocations: 23.17 MB / 0.8353 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03777/1.436, allocations: 17.03 MB / 0.8519 GB, free: 97.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000438/1.437, allocations: 0.5544 MB / 0.8525 GB, free: 97.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003411/1.44, allocations: 0.7836 MB / 0.8532 GB, free: 96.51 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04086/1.481, allocations: 19.16 MB / 0.8719 GB, free: 75.88 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008404/1.482, allocations: 134.8 kB / 0.8721 GB, free: 75.75 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003587/1.486, allocations: 366.9 kB / 0.8724 GB, free: 75.43 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002724/1.488, allocations: 1.649 MB / 0.874 GB, free: 73.79 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03269/1.521, allocations: 15.89 MB / 0.8895 GB, free: 57.87 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4429/1.964, allocations: 90.01 MB / 0.9774 GB, free: 58.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02591/1.99, allocations: 8.742 MB / 0.986 GB, free: 57.64 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006778/1.997, allocations: 4.802 MB / 0.9907 GB, free: 57.59 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001151/1.998, allocations: 1.003 MB / 0.9916 GB, free: 56.73 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/1.998, allocations: 74.25 kB / 0.9917 GB, free: 56.69 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=322): time 6.082e-06/1.998, allocations: 0 / 0.9917 GB, free: 56.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=397): time 0.1715/2.169, allocations: 57.27 MB / 1.048 GB, free: 51.07 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002916/2.172, allocations: 5.13 MB / 1.053 GB, free: 46.39 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01353/2.186, allocations: 7.42 MB / 1.06 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001134/2.187, allocations: 91.02 kB / 1.06 GB, free: 44.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004553/2.192, allocations: 6.109 MB / 1.066 GB, free: 39.72 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002408/2.194, allocations: 1.55 MB / 1.067 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001446/2.196, allocations: 222.8 kB / 1.068 GB, free: 38.43 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0005742/2.196, allocations: 0.7773 MB / 1.068 GB, free: 37.92 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007908/2.204, allocations: 5.638 MB / 1.074 GB, free: 35.94 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01171/2.216, allocations: 11.94 MB / 1.086 GB, free: 22.63 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/2.227, allocations: 8.015 MB / 1.093 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001732/2.227, allocations: 64 kB / 1.093 GB, free: 16.04 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.08584/2.313, allocations: 36.41 MB / 1.129 GB, free: 4.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001788/2.313, allocations: 100 kB / 1.129 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0623/2.375, allocations: 24.24 MB / 1.153 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05731/2.433, allocations: 18.74 MB / 1.171 GB, free: 8.934 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01024/2.443, allocations: 2.729 MB / 1.174 GB, free: 6.199 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3817/2.825, allocations: 38.85 MB / 1.212 GB, free: 171.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01392/2.839, allocations: 1.152 MB / 1.213 GB, free: 171.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003371/2.842, allocations: 0.6725 MB / 1.213 GB, free: 171.2 MB / 0.6198 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 () * 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.004278/2.846, allocations: 0.9387 MB / 1.214 GB, free: 171.1 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002594/2.849, allocations: 0.7816 MB / 1.215 GB, free: 171.1 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03173/2.881, allocations: 13.64 MB / 1.228 GB, free: 170.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02634/2.907, allocations: 12.16 MB / 1.24 GB, free: 170 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.376e-05/2.907, allocations: 15.25 kB / 1.24 GB, free: 170 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000122/2.907, allocations: 21.97 kB / 1.24 GB, free: 170 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06161/2.969, allocations: 29.18 MB / 1.269 GB, free: 160.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.196e-05/2.969, allocations: 0 / 1.269 GB, free: 160.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004534/2.974, allocations: 0.9004 MB / 1.27 GB, free: 160 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01705/2.991, allocations: 5.522 MB / 1.275 GB, free: 159.1 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001439/2.992, allocations: 109.5 kB / 1.275 GB, free: 159 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03292/3.025, allocations: 28.16 MB / 1.303 GB, free: 144.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002808/3.028, allocations: 4.688 MB / 1.307 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03484/3.063, allocations: 20.37 MB / 1.327 GB, free: 127.2 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003381/3.066, allocations: 0.8212 MB / 1.328 GB, free: 126.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002847/3.069, allocations: 86.56 kB / 1.328 GB, free: 126.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006486/3.076, allocations: 0.5097 MB / 1.329 GB, free: 126 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001749/3.078, allocations: 302 kB / 1.329 GB, free: 125.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006001/3.078, allocations: 121.2 kB / 1.329 GB, free: 125.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.009483/3.088, allocations: 5.282 MB / 1.334 GB, free: 121.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.212e-06/3.088, allocations: 0 / 1.334 GB, free: 121.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0156/3.103, allocations: 2.792 MB / 1.337 GB, free: 118.4 MB / 0.6198 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 () * 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,54.7%) 13,(8,59.4%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04189/3.145, allocations: 21.38 MB / 1.358 GB, free: 100.1 MB / 0.6198 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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02937/3.175, allocations: 15.81 MB / 1.373 GB, free: 84.66 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/3.175, allocations: 4 kB / 1.373 GB, free: 84.65 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01354/3.188, allocations: 7.335 MB / 1.38 GB, free: 77.13 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007748/3.196, allocations: 1.222 MB / 1.382 GB, free: 75.96 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05574/3.252, allocations: 23.43 MB / 1.404 GB, free: 52.73 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01165/3.264, allocations: 6.302 MB / 1.411 GB, free: 46.44 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.01137/3.275, allocations: 3.727 MB / 1.414 GB, free: 42.72 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008017/3.283, allocations: 4.4 MB / 1.419 GB, free: 38.32 MB / 0.6198 GB Notification: Performance of SimCode: time 1.563e-06/3.283, allocations: 0 / 1.419 GB, free: 38.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5997/3.883, allocations: 215.5 MB / 1.629 GB, free: 40.51 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/3.883, allocations: 186.2 kB / 1.629 GB, free: 40.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.543/13.43, allocations: 0 / 1.629 GB, free: 40.28 MB / 0.6198 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