Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.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.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical",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.00173/0.001736, allocations: 188.8 kB / 16.4 MB, free: 5.625 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.131/2.131, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001169/0.001168, allocations: 98.84 kB / 270.9 MB, free: 13.38 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.2968/0.2968, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004716/0.0004717, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1254, allocations: 58.86 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.0252/0.1507, allocations: 15.43 MB / 0.4939 GB, free: 9.75 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.1626, allocations: 4.116 MB / 0.4979 GB, free: 5.621 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002851/0.1655, allocations: 71.81 kB / 0.498 GB, free: 5.551 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002817/0.1684, allocations: 0.7038 MB / 0.4987 GB, free: 4.844 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008754/0.1772, allocations: 2.166 MB / 0.5008 GB, free: 2.672 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.1787, allocations: 223.6 kB / 0.501 GB, free: 2.453 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00143/0.1802, allocations: 483.4 kB / 0.5015 GB, free: 1.98 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/0.1825, allocations: 1.051 MB / 0.5025 GB, free: 0.9023 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005382/0.1831, allocations: 247 kB / 0.5027 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009324/0.1841, allocations: 0.4908 MB / 0.5032 GB, free: 172 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.1843, allocations: 56 kB / 0.5033 GB, free: 116 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.1853, allocations: 391.4 kB / 0.5036 GB, free: 15.73 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006916/0.1861, allocations: 419 kB / 0.504 GB, free: 15.32 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000333/0.1864, allocations: 217 kB / 0.5042 GB, free: 15.1 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002236/0.1887, allocations: 1.325 MB / 0.5055 GB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1887, allocations: 0 / 0.5055 GB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1887, allocations: 0 / 0.5055 GB, free: 13.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.621e-05/0.1888, allocations: 4 kB / 0.5055 GB, free: 13.77 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.004971/0.1938, allocations: 1.459 MB / 0.507 GB, free: 12.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.219e-05/0.1938, allocations: 8.031 kB / 0.507 GB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000527/0.1944, allocations: 186.2 kB / 0.5071 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.1955, allocations: 162.3 kB / 0.5073 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.1973, allocations: 0.6229 MB / 0.5079 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.342e-05/0.1975, allocations: 57.97 kB / 0.508 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/0.1978, allocations: 79.97 kB / 0.508 GB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009368/0.2072, allocations: 2.715 MB / 0.5107 GB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.95e-05/0.2073, allocations: 7.938 kB / 0.5107 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/0.2074, allocations: 39.92 kB / 0.5107 GB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008471/0.2083, allocations: 389.7 kB / 0.5111 GB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009666/0.218, allocations: 2.4 MB / 0.5135 GB, free: 5.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3295/0.5476, allocations: 8.286 MB / 0.5215 GB, free: 41.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006828/0.5544, allocations: 0.9856 MB / 0.5225 GB, free: 41.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002147/0.5567, allocations: 1.738 MB / 0.5242 GB, free: 39.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.5568, allocations: 41.03 kB / 0.5242 GB, free: 39.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 3.497e-06/0.5568, allocations: 3.375 kB / 0.5242 GB, free: 39.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.02069/0.5775, allocations: 2.993 MB / 0.5272 GB, free: 39.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.5776, allocations: 62.97 kB / 0.5272 GB, free: 39.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.5794, allocations: 0.9009 MB / 0.5281 GB, free: 38.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.898e-05/0.5795, allocations: 35.92 kB / 0.5281 GB, free: 38.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004824/0.58, allocations: 0.6822 MB / 0.5288 GB, free: 38.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.5802, allocations: 216.4 kB / 0.529 GB, free: 38.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.299e-05/0.5803, allocations: 24.47 kB / 0.529 GB, free: 38.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5805, allocations: 366 kB / 0.5294 GB, free: 37.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009248/0.5814, allocations: 361.8 kB / 0.5297 GB, free: 37.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.5827, allocations: 0.9859 MB / 0.5307 GB, free: 36.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.5841, allocations: 0.5752 MB / 0.5313 GB, free: 36.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/0.5841, allocations: 7.312 kB / 0.5313 GB, free: 36.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.003281/0.5874, allocations: 1.351 MB / 0.5326 GB, free: 35.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.5875, allocations: 15.09 kB / 0.5326 GB, free: 35.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.532e-05/0.5875, allocations: 23.83 kB / 0.5326 GB, free: 35.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.331e-05/0.5876, allocations: 34.72 kB / 0.5327 GB, free: 35.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002243/0.5898, allocations: 320.8 kB / 0.533 GB, free: 35.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.5909, allocations: 1.361 MB / 0.5343 GB, free: 34.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.5923, allocations: 56 kB / 0.5343 GB, free: 34.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.5924, allocations: 71.97 kB / 0.5344 GB, free: 34.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 27 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001074/0.5935, allocations: 499.2 kB / 0.5349 GB, free: 34.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.5937, allocations: 89.92 kB / 0.535 GB, free: 34.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002665/0.594, allocations: 116.3 kB / 0.5351 GB, free: 34.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.594, allocations: 5.906 kB / 0.5351 GB, free: 34.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.5941, allocations: 3.938 kB / 0.5351 GB, free: 34.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.5941, allocations: 8.109 kB / 0.5351 GB, free: 34.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005809/0.5999, allocations: 2.174 MB / 0.5372 GB, free: 33.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/0.6, allocations: 6.406 kB / 0.5372 GB, free: 33.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009807/0.601, allocations: 127.5 kB / 0.5374 GB, free: 33.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.911e-05/0.601, allocations: 10.09 kB / 0.5374 GB, free: 33.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.967e-05/0.601, allocations: 18.06 kB / 0.5374 GB, free: 33.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008262/0.6019, allocations: 1.331 MB / 0.5387 GB, free: 31.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.6019, allocations: 14.77 kB / 0.5387 GB, free: 31.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.6035, allocations: 1.133 MB / 0.5398 GB, free: 30.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004298/0.604, allocations: 201.2 kB / 0.54 GB, free: 30.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.6041, allocations: 26.73 kB / 0.54 GB, free: 30.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005832/0.6047, allocations: 15.53 kB / 0.54 GB, free: 30.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.6048, allocations: 51.05 kB / 0.5401 GB, free: 30.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-05/0.6049, allocations: 21.25 kB / 0.5401 GB, free: 30.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001132/0.6061, allocations: 0.5952 MB / 0.5407 GB, free: 30.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6061, allocations: 0 / 0.5407 GB, free: 30.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001696/0.6078, allocations: 217.5 kB / 0.5409 GB, free: 30.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002166/0.61, allocations: 3.493 MB / 0.5443 GB, free: 26.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.6124, allocations: 0.8596 MB / 0.5451 GB, free: 26.56 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/0.6124, allocations: 4 kB / 0.5451 GB, free: 26.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008237/0.6133, allocations: 278.2 kB / 0.5454 GB, free: 26.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.6143, allocations: 122.8 kB / 0.5455 GB, free: 26.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01651/0.6308, allocations: 21.57 MB / 0.5666 GB, free: 6.164 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.632, allocations: 1.245 MB / 0.5678 GB, free: 4.898 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008025/0.6328, allocations: 403.3 kB / 0.5682 GB, free: 4.504 MB / 362.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6328, allocations: 0 / 0.5682 GB, free: 4.504 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.074/3.707, allocations: 21.7 MB / 0.5894 GB, free: 14.8 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat