Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",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.002333/0.002332, 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.313/2.313, 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.001111/0.001111, allocations: 78.7 kB / 267.5 MB, free: 14.04 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.2903/0.2903, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.615e-05/3.63e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1258, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.536/0.6618, allocations: 102.3 MB / 0.5728 GB, free: 1.094 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.6622, allocations: 81.86 kB / 0.5729 GB, free: 1.055 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3836/1.046, allocations: 87.6 MB / 0.6584 GB, free: 1.461 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.046, allocations: 0 / 0.6584 GB, free: 1.461 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002153/1.046, allocations: 72 kB / 0.6585 GB, free: 1.391 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.01534/1.061, allocations: 3.71 MB / 0.6621 GB, free: 13.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/1.062, allocations: 12.03 kB / 0.6621 GB, free: 13.61 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003925/1.065, allocations: 0.7792 MB / 0.6629 GB, free: 12.82 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02945/1.095, allocations: 3.66 MB / 0.6664 GB, free: 9.145 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02047/1.115, allocations: 4.936 MB / 0.6713 GB, free: 4.16 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000544/1.116, allocations: 295.6 kB / 0.6715 GB, free: 3.871 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003177/1.119, allocations: 391.7 kB / 0.6719 GB, free: 3.488 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03514/1.154, allocations: 10.28 MB / 0.682 GB, free: 8.711 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002947/1.155, allocations: 35.75 kB / 0.682 GB, free: 8.676 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002718/1.158, allocations: 175.9 kB / 0.6822 GB, free: 8.504 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003386/1.161, allocations: 1.195 MB / 0.6833 GB, free: 7.309 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03244/1.193, allocations: 10.01 MB / 0.6931 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4266/1.62, allocations: 36.56 MB / 0.7288 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01335/1.634, allocations: 4.368 MB / 0.7331 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005207/1.639, allocations: 2.163 MB / 0.7352 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0017/1.641, allocations: 1.32 MB / 0.7365 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/1.641, allocations: 57.81 kB / 0.7365 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 5.971e-06/1.641, allocations: 0 / 0.7365 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=261): time 0.05743/1.698, allocations: 14.31 MB / 0.7505 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001334/1.699, allocations: 1.525 MB / 0.752 GB, free: 99.73 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005277/1.705, allocations: 2.466 MB / 0.7544 GB, free: 99.43 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006031/1.705, allocations: 59.39 kB / 0.7545 GB, free: 99.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002188/1.708, allocations: 2.729 MB / 0.7571 GB, free: 98.06 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001533/1.709, allocations: 0.9563 MB / 0.7581 GB, free: 97.49 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006768/1.71, allocations: 110.9 kB / 0.7582 GB, free: 97.49 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004319/1.71, allocations: 0.5625 MB / 0.7587 GB, free: 97.17 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005752/1.716, allocations: 2.377 MB / 0.761 GB, free: 97.15 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008066/1.724, allocations: 5.405 MB / 0.7663 GB, free: 92.87 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008051/1.732, allocations: 3.64 MB / 0.7699 GB, free: 91.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/1.733, allocations: 31.56 kB / 0.7699 GB, free: 91.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.03495/1.768, allocations: 9.329 MB / 0.779 GB, free: 89.39 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.44e-05/1.768, allocations: 54.19 kB / 0.7791 GB, free: 89.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0222/1.79, allocations: 4.543 MB / 0.7835 GB, free: 88.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01911/1.809, allocations: 2.059 MB / 0.7855 GB, free: 88.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008551/1.818, allocations: 1.29 MB / 0.7868 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/1.828, allocations: 4.964 MB / 0.7916 GB, free: 84.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006796/1.835, allocations: 389.9 kB / 0.792 GB, free: 84.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001439/1.837, allocations: 325.6 kB / 0.7923 GB, free: 84.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 482 * 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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (691): * Single equations (assignments): 679 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001325/1.838, allocations: 0.515 MB / 0.7928 GB, free: 84.32 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007529/1.839, allocations: 277 kB / 0.7931 GB, free: 84.17 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01669/1.856, allocations: 5.353 MB / 0.7983 GB, free: 82.49 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01516/1.871, allocations: 4.596 MB / 0.8028 GB, free: 80.58 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-05/1.871, allocations: 4 kB / 0.8028 GB, free: 80.58 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-05/1.871, allocations: 7.688 kB / 0.8028 GB, free: 80.58 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04189/1.913, allocations: 14.6 MB / 0.8171 GB, free: 68.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-05/1.913, allocations: 12 kB / 0.8171 GB, free: 68.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003854/1.917, allocations: 424 kB / 0.8175 GB, free: 68.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007912/1.925, allocations: 1.197 MB / 0.8186 GB, free: 67.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007507/1.926, allocations: 60.19 kB / 0.8187 GB, free: 67.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006784/1.932, allocations: 4.454 MB / 0.823 GB, free: 63.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00112/1.934, allocations: 1.46 MB / 0.8245 GB, free: 61.75 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02113/1.955, allocations: 8.782 MB / 0.833 GB, free: 53.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/1.956, allocations: 343.5 kB / 0.8334 GB, free: 53.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001027/1.957, allocations: 59.97 kB / 0.8334 GB, free: 53.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003261/1.96, allocations: 194 kB / 0.8336 GB, free: 53.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007113/1.961, allocations: 166.3 kB / 0.8338 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002703/1.961, allocations: 82.73 kB / 0.8339 GB, free: 53 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003748/1.965, allocations: 1.679 MB / 0.8355 GB, free: 51.52 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.11e-07/1.965, allocations: 0 / 0.8355 GB, free: 51.52 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006838/1.972, allocations: 1.074 MB / 0.8365 GB, free: 50.45 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02263/1.995, allocations: 11.93 MB / 0.8482 GB, free: 39.31 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01587/2.011, allocations: 6.391 MB / 0.8544 GB, free: 32.87 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.511e-05/2.011, allocations: 0 / 0.8544 GB, free: 32.87 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008027/2.019, allocations: 2.876 MB / 0.8572 GB, free: 29.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/2.022, allocations: 355.2 kB / 0.8576 GB, free: 29.59 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03139/2.053, allocations: 11.06 MB / 0.8684 GB, free: 18.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006306/2.06, allocations: 3.413 MB / 0.8717 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004735/2.064, allocations: 1.866 MB / 0.8735 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of SimCode: time 2.675e-06/2.064, allocations: 0 / 0.8735 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.962/7.027, allocations: 150.7 MB / 1.021 GB, free: 60.93 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat