Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002348/0.002348, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001115, allocations: 93.84 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5688/0.5688, allocations: 43.54 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006537/0.0006538, allocations: 15.98 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1356, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5009/0.6365, allocations: 101.7 MB / 0.5782 GB, free: 0.793 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003161/0.6369, allocations: 71.97 kB / 0.5782 GB, free: 0.7227 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.063/1.7, allocations: 173.1 MB / 0.7473 GB, free: 81.95 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.777e-06/1.7, allocations: 0 / 0.7473 GB, free: 81.95 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000904/1.701, allocations: 181.2 kB / 0.7474 GB, free: 81.94 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: 2557 * Number of variables: 2557 Notification: Performance of Generate backend data structure: time 0.07336/1.775, allocations: 11.22 MB / 0.7584 GB, free: 77.35 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/1.775, allocations: 7.031 kB / 0.7584 GB, free: 77.35 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007503/1.782, allocations: 1.32 MB / 0.7597 GB, free: 76.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1512/1.933, allocations: 21.89 MB / 0.7811 GB, free: 66.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06801/2.001, allocations: 19.99 MB / 0.8006 GB, free: 47.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007252/2.002, allocations: 0.5538 MB / 0.8011 GB, free: 46.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004556/2.007, allocations: 0.7937 MB / 0.8019 GB, free: 46.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06014/2.067, allocations: 19.28 MB / 0.8207 GB, free: 25.07 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008606/2.068, allocations: 134.8 kB / 0.8208 GB, free: 24.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004131/2.072, allocations: 362 kB / 0.8212 GB, free: 24.62 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00402/2.076, allocations: 1.651 MB / 0.8228 GB, free: 22.97 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05308/2.129, allocations: 16.12 MB / 0.8385 GB, free: 6.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5994/2.729, allocations: 90.16 MB / 0.9266 GB, free: 40.88 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0534/2.782, allocations: 8.793 MB / 0.9352 GB, free: 40.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002002/2.784, allocations: 1.002 MB / 0.9362 GB, free: 39.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/2.784, allocations: 70.84 kB / 0.9362 GB, free: 39.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=322): time 8.356e-06/2.784, allocations: 0 / 0.9362 GB, free: 39.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=397): time 0.3827/3.167, allocations: 67.18 MB / 1.002 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005915/3.173, allocations: 5.178 MB / 1.007 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02054/3.194, allocations: 7.577 MB / 1.014 GB, free: 33.65 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001523/3.195, allocations: 90.89 kB / 1.014 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005894/3.201, allocations: 5.728 MB / 1.02 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003319/3.204, allocations: 1.547 MB / 1.021 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002354/3.207, allocations: 221.6 kB / 1.022 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001047/3.208, allocations: 0.7882 MB / 1.022 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01467/3.223, allocations: 5.726 MB / 1.028 GB, free: 25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02053/3.243, allocations: 12.03 MB / 1.04 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02247/3.266, allocations: 8.033 MB / 1.048 GB, free: 3.996 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002582/3.266, allocations: 64 kB / 1.048 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.5736/3.84, allocations: 35.96 MB / 1.083 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001967/3.84, allocations: 107.6 kB / 1.083 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1136/3.953, allocations: 23.98 MB / 1.106 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1061/4.06, allocations: 18.41 MB / 1.124 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01837/4.078, allocations: 2.73 MB / 1.127 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09561/4.174, allocations: 41.05 MB / 1.167 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02035/4.194, allocations: 1.153 MB / 1.168 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003801/4.198, allocations: 0.6642 MB / 1.169 GB, free: 100.9 MB / 0.5417 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.01402/4.212, allocations: 3.958 MB / 1.173 GB, free: 99 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003116/4.215, allocations: 0.7888 MB / 1.173 GB, free: 98.99 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05601/4.271, allocations: 13.75 MB / 1.187 GB, free: 89.95 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04921/4.321, allocations: 12.24 MB / 1.199 GB, free: 77.68 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.445e-05/4.321, allocations: 22.8 kB / 1.199 GB, free: 77.66 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001247/4.321, allocations: 15.94 kB / 1.199 GB, free: 77.64 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1029/4.424, allocations: 29.31 MB / 1.228 GB, free: 48.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.111e-05/4.424, allocations: 4 kB / 1.228 GB, free: 48.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008895/4.433, allocations: 0.8931 MB / 1.228 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03592/4.469, allocations: 5.523 MB / 1.234 GB, free: 42.07 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001789/4.471, allocations: 108.7 kB / 1.234 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06533/4.536, allocations: 29.21 MB / 1.262 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004311/4.54, allocations: 4.736 MB / 1.267 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4975/5.038, allocations: 20.51 MB / 1.287 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003283/5.041, allocations: 0.8342 MB / 1.288 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003784/5.045, allocations: 87.97 kB / 1.288 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0112/5.056, allocations: 0.5028 MB / 1.288 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002469/5.059, allocations: 301.2 kB / 1.289 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008795/5.06, allocations: 121.6 kB / 1.289 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01542/5.075, allocations: 5.429 MB / 1.294 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.164e-06/5.075, allocations: 3 kB / 1.294 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01747/5.093, allocations: 2.788 MB / 1.297 GB, free: 115.3 MB / 0.5417 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.07155/5.164, allocations: 21.54 MB / 1.318 GB, free: 111.7 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1279:5-1281:19: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 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1279:5-1281:19: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 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1279:5-1281:19: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 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1279:5-1281: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.04234/5.207, allocations: 15.99 MB / 1.334 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/5.207, allocations: 0 / 1.334 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02356/5.23, allocations: 7.434 MB / 1.341 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01218/5.243, allocations: 1.221 MB / 1.342 GB, free: 101.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8092/6.052, allocations: 266.8 MB / 1.603 GB, free: 60.01 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01927/6.071, allocations: 6.343 MB / 1.609 GB, free: 59.09 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01252/6.084, allocations: 4.491 MB / 1.613 GB, free: 57.2 MB / 0.573 GB Notification: Performance of SimCode: time 2.024e-06/6.084, allocations: 0 / 1.613 GB, free: 57.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.621/15.71, allocations: 0.6205 GB / 2.234 GB, free: 71.88 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat