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.002294/0.002294, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.208/2.208, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001163/0.001163, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4317/0.4317, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.33e-05/4.343e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.158, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5241/0.6821, allocations: 101.6 MB / 0.5721 GB, free: 1.801 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.6824, allocations: 70.94 kB / 0.5722 GB, free: 1.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.14/1.823, allocations: 173.2 MB / 0.7413 GB, free: 93.42 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.355e-06/1.823, allocations: 0 / 0.7413 GB, free: 93.42 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0009014/1.824, allocations: 177.2 kB / 0.7415 GB, free: 93.41 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.06708/1.891, allocations: 10.04 MB / 0.7513 GB, free: 90.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/1.891, allocations: 7.406 kB / 0.7513 GB, free: 90.2 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006894/1.898, allocations: 1.31 MB / 0.7526 GB, free: 90.11 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1535/2.052, allocations: 21.93 MB / 0.774 GB, free: 89.49 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0692/2.121, allocations: 19.9 MB / 0.7934 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007535/2.122, allocations: 0.5609 MB / 0.794 GB, free: 88.02 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004498/2.126, allocations: 0.7793 MB / 0.7947 GB, free: 88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05958/2.186, allocations: 19.15 MB / 0.8134 GB, free: 74.71 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008327/2.187, allocations: 137.8 kB / 0.8136 GB, free: 74.63 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003738/2.19, allocations: 368.3 kB / 0.8139 GB, free: 74.31 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003916/2.194, allocations: 1.642 MB / 0.8155 GB, free: 72.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05101/2.245, allocations: 15.9 MB / 0.8311 GB, free: 57.59 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6532/2.899, allocations: 90.17 MB / 0.9191 GB, free: 43.08 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04691/2.946, allocations: 8.74 MB / 0.9276 GB, free: 42.41 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01004/2.956, allocations: 4.809 MB / 0.9323 GB, free: 42.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002019/2.958, allocations: 1.004 MB / 0.9333 GB, free: 41.51 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.114e-05/2.958, allocations: 68.66 kB / 0.9334 GB, free: 41.46 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=322): time 8.205e-06/2.958, allocations: 0 / 0.9334 GB, free: 41.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=397): time 0.3165/3.275, allocations: 57.59 MB / 0.9896 GB, free: 35.83 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004684/3.279, allocations: 5.129 MB / 0.9946 GB, free: 31.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02096/3.3, allocations: 7.502 MB / 1.002 GB, free: 30.52 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001539/3.302, allocations: 86.69 kB / 1.002 GB, free: 30.45 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.006098/3.308, allocations: 5.732 MB / 1.008 GB, free: 26.31 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00337/3.311, allocations: 1.546 MB / 1.009 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002415/3.314, allocations: 225.5 kB / 1.009 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001246/3.315, allocations: 0.7763 MB / 1.01 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01486/3.33, allocations: 5.642 MB / 1.016 GB, free: 22.52 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01937/3.35, allocations: 11.94 MB / 1.027 GB, free: 9.887 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01889/3.368, allocations: 8.012 MB / 1.035 GB, free: 3.438 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002467/3.369, allocations: 60 kB / 1.035 GB, free: 3.379 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.1619/3.531, allocations: 35.94 MB / 1.07 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002069/3.531, allocations: 100 kB / 1.07 GB, free: 8.266 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1152/3.646, allocations: 23.91 MB / 1.094 GB, free: 268 kB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1163/3.763, allocations: 18.41 MB / 1.112 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01916/3.782, allocations: 2.725 MB / 1.114 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4942/4.276, allocations: 38.85 MB / 1.152 GB, free: 152.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01934/4.296, allocations: 1.142 MB / 1.153 GB, free: 152.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003255/4.299, allocations: 0.6697 MB / 1.154 GB, free: 152.9 MB / 0.5886 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.005603/4.305, allocations: 0.9371 MB / 1.155 GB, free: 152.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003432/4.308, allocations: 0.7881 MB / 1.156 GB, free: 152.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0557/4.364, allocations: 13.65 MB / 1.169 GB, free: 152.4 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04852/4.412, allocations: 12.16 MB / 1.181 GB, free: 150.7 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.276e-05/4.412, allocations: 16.75 kB / 1.181 GB, free: 150.7 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001163/4.413, allocations: 23.44 kB / 1.181 GB, free: 150.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1034/4.516, allocations: 29.2 MB / 1.21 GB, free: 140.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.868e-05/4.516, allocations: 3.953 kB / 1.21 GB, free: 140.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008996/4.525, allocations: 0.9005 MB / 1.21 GB, free: 140.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03319/4.558, allocations: 5.516 MB / 1.216 GB, free: 139.8 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001531/4.56, allocations: 110.8 kB / 1.216 GB, free: 139.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06174/4.622, allocations: 28.17 MB / 1.243 GB, free: 125.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004156/4.626, allocations: 4.683 MB / 1.248 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06288/4.689, allocations: 20.38 MB / 1.268 GB, free: 104.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003349/4.692, allocations: 0.8322 MB / 1.269 GB, free: 104 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00369/4.696, allocations: 88.8 kB / 1.269 GB, free: 104 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01095/4.707, allocations: 0.4994 MB / 1.269 GB, free: 103.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002361/4.709, allocations: 304.3 kB / 1.27 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001098/4.711, allocations: 118.8 kB / 1.27 GB, free: 103.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0148/4.725, allocations: 5.351 MB / 1.275 GB, free: 98.75 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.062e-06/4.725, allocations: 2.656 kB / 1.275 GB, free: 98.75 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01768/4.743, allocations: 2.786 MB / 1.278 GB, free: 95.98 MB / 0.5886 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.06959/4.813, allocations: 21.41 MB / 1.299 GB, free: 76.71 MB / 0.5886 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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.04015/4.853, allocations: 15.8 MB / 1.314 GB, free: 61.34 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/4.853, allocations: 0 / 1.314 GB, free: 61.34 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.02278/4.876, allocations: 7.353 MB / 1.321 GB, free: 53.81 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01154/4.887, allocations: 1.211 MB / 1.322 GB, free: 52.65 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09196/4.979, allocations: 24.48 MB / 1.346 GB, free: 28.38 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4691/5.449, allocations: 6.333 MB / 1.352 GB, free: 155 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01242/5.461, allocations: 4.493 MB / 1.357 GB, free: 154.9 MB / 0.5886 GB Notification: Performance of SimCode: time 1.583e-06/5.461, allocations: 0 / 1.357 GB, free: 154.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.291/14.75, allocations: 0.6213 GB / 1.978 GB, free: 129.2 MB / 0.5886 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