Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 177.1 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 241 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000884/0.000884, allocations: 95.98 kB / 292.1 MB, free: 10.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3707/0.3707, allocations: 44.21 MB / 387.5 MB, free: 38.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003974, allocations: 8 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3768, allocations: 61.9 MB / 0.5096 GB, free: 37.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.5196, allocations: 103.3 MB / 0.6105 GB, free: 7.762 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.5199, allocations: 87.92 kB / 0.6106 GB, free: 7.68 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4984/1.018, allocations: 84.65 MB / 0.6933 GB, free: 99.47 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.933e-06/1.018, allocations: 0 / 0.6933 GB, free: 99.47 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001224/1.018, allocations: 66.59 kB / 0.6933 GB, free: 99.47 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.01533/1.034, allocations: 4.005 MB / 0.6972 GB, free: 97.76 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/1.034, allocations: 10.34 kB / 0.6973 GB, free: 97.76 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00291/1.037, allocations: 0.7576 MB / 0.698 GB, free: 97.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02158/1.058, allocations: 5.872 MB / 0.7037 GB, free: 97.42 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01565/1.074, allocations: 5.192 MB / 0.7088 GB, free: 96.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004211/1.075, allocations: 283.9 kB / 0.7091 GB, free: 96.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002678/1.077, allocations: 374.3 kB / 0.7094 GB, free: 96.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02404/1.101, allocations: 10.42 MB / 0.7196 GB, free: 95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/1.102, allocations: 35.31 kB / 0.7196 GB, free: 94.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005862/1.102, allocations: 176.4 kB / 0.7198 GB, free: 94.89 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001688/1.104, allocations: 1.154 MB / 0.7209 GB, free: 94.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/1.123, allocations: 10.11 MB / 0.7308 GB, free: 91.72 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05225/1.175, allocations: 37.41 MB / 0.7673 GB, free: 68.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/1.185, allocations: 5.596 MB / 0.7728 GB, free: 66.04 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001386/1.187, allocations: 1.878 MB / 0.7746 GB, free: 64.28 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/1.187, allocations: 52.78 kB / 0.7747 GB, free: 64.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 6.152e-06/1.187, allocations: 0 / 0.7747 GB, free: 64.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.03306/1.22, allocations: 15.45 MB / 0.7898 GB, free: 51.11 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001077/1.221, allocations: 1.526 MB / 0.7913 GB, free: 49.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004445/1.225, allocations: 2.5 MB / 0.7937 GB, free: 47.37 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005891/1.226, allocations: 53.7 kB / 0.7938 GB, free: 47.31 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/1.228, allocations: 2.68 MB / 0.7964 GB, free: 44.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/1.229, allocations: 0.8541 MB / 0.7972 GB, free: 44.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006512/1.229, allocations: 107.8 kB / 0.7973 GB, free: 44.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004409/1.23, allocations: 0.5412 MB / 0.7978 GB, free: 43.58 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003581/1.234, allocations: 2.607 MB / 0.8004 GB, free: 41.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005221/1.239, allocations: 5.593 MB / 0.8059 GB, free: 34.13 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005364/1.244, allocations: 3.79 MB / 0.8096 GB, free: 30.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.244, allocations: 36 kB / 0.8096 GB, free: 30.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.07378/1.318, allocations: 18.97 MB / 0.8281 GB, free: 11.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000156/1.318, allocations: 52 kB / 0.8282 GB, free: 11.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05575/1.374, allocations: 12.01 MB / 0.8399 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04726/1.421, allocations: 10.31 MB / 0.85 GB, free: 4.875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004976/1.426, allocations: 1.252 MB / 0.8512 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03189/1.458, allocations: 17.25 MB / 0.868 GB, free: 2.113 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005202/1.464, allocations: 439.5 kB / 0.8684 GB, free: 1.684 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001109/1.465, allocations: 323.8 kB / 0.8688 GB, free: 1.371 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 477 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (652): * Single equations (assignments): 641 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.3394/1.804, allocations: 2.011 MB / 0.8707 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007676/1.805, allocations: 272.9 kB / 0.871 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009343/1.814, allocations: 5.101 MB / 0.876 GB, free: 121 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006901/1.821, allocations: 4.396 MB / 0.8803 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/1.821, allocations: 1.469 kB / 0.8803 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/1.821, allocations: 9.656 kB / 0.8803 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02239/1.844, allocations: 12.98 MB / 0.8929 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/1.844, allocations: 8.875 kB / 0.8929 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/1.845, allocations: 401.3 kB / 0.8933 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002882/1.848, allocations: 0.9404 MB / 0.8942 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002007/1.849, allocations: 48.59 kB / 0.8943 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007378/1.856, allocations: 5.557 MB / 0.8997 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009047/1.857, allocations: 1.472 MB / 0.9012 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01421/1.871, allocations: 8.345 MB / 0.9093 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/1.872, allocations: 332.7 kB / 0.9096 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003691/1.873, allocations: 40.67 kB / 0.9097 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/1.874, allocations: 203 kB / 0.9099 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004028/1.875, allocations: 142.8 kB / 0.91 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002213/1.875, allocations: 68.75 kB / 0.9101 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002613/1.877, allocations: 1.711 MB / 0.9117 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/1.877, allocations: 0 / 0.9117 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004998/1.882, allocations: 1.108 MB / 0.9128 GB, free: 110.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01027/1.893, allocations: 10.94 MB / 0.9235 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009465/1.902, allocations: 6.552 MB / 0.9299 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.902, allocations: 3.25 kB / 0.9299 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003076/1.905, allocations: 2.52 MB / 0.9324 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/1.907, allocations: 339.8 kB / 0.9327 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0996/2.007, allocations: 111.4 MB / 1.042 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006523/2.013, allocations: 3.245 MB / 1.045 GB, free: 1.328 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005368/2.019, allocations: 2.065 MB / 1.047 GB, free: 4 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007827/2.027, allocations: 2.001 MB / 1.049 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.112e-06/2.027, allocations: 0 / 1.049 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4427/2.469, allocations: 79.51 MB / 1.126 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/2.47, allocations: 200.5 kB / 1.126 GB, free: 124.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.775/6.244, allocations: 3.875 kB / 1.126 GB, free: 124.2 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat