Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.001638/0.001643, allocations: 181.3 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.138/2.138, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001093/0.001093, allocations: 86.64 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.2869/0.2869, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.697e-05/3.711e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1205, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5251/0.6457, allocations: 104.3 MB / 0.5748 GB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.646, allocations: 76.69 kB / 0.5748 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3936/1.04, allocations: 91.95 MB / 0.6646 GB, free: 11.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.04, allocations: 0 / 0.6646 GB, free: 11.21 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002354/1.04, allocations: 80 kB / 0.6647 GB, free: 11.14 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.02404/1.064, allocations: 4.314 MB / 0.6689 GB, free: 6.758 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/1.064, allocations: 8.031 kB / 0.6689 GB, free: 6.75 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004556/1.069, allocations: 0.8731 MB / 0.6698 GB, free: 5.867 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03002/1.099, allocations: 3.578 MB / 0.6733 GB, free: 2.277 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01987/1.119, allocations: 4.717 MB / 0.6779 GB, free: 13.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004916/1.119, allocations: 344.7 kB / 0.6782 GB, free: 13.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002882/1.122, allocations: 439.9 kB / 0.6786 GB, free: 12.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03723/1.159, allocations: 11.41 MB / 0.6898 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002297/1.16, allocations: 27.72 kB / 0.6898 GB, free: 0.8086 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00213/1.162, allocations: 199.9 kB / 0.69 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003018/1.165, allocations: 1.259 MB / 0.6912 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03488/1.2, allocations: 10.95 MB / 0.7019 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5525/1.752, allocations: 38.13 MB / 0.7391 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01343/1.766, allocations: 4.647 MB / 0.7437 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004869/1.771, allocations: 2.222 MB / 0.7459 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001572/1.772, allocations: 1.322 MB / 0.7471 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.211e-05/1.772, allocations: 50.22 kB / 0.7472 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=244): time 6.232e-06/1.772, allocations: 0 / 0.7472 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=256): time 0.05961/1.832, allocations: 11.28 MB / 0.7582 GB, free: 101 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/1.832, allocations: 76 kB / 0.7583 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005283/1.837, allocations: 2.512 MB / 0.7607 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006025/1.838, allocations: 55.67 kB / 0.7608 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002376/1.84, allocations: 2.956 MB / 0.7637 GB, free: 98.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001477/1.842, allocations: 0.9447 MB / 0.7646 GB, free: 98.28 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007246/1.843, allocations: 111.6 kB / 0.7647 GB, free: 98.19 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004969/1.843, allocations: 0.5588 MB / 0.7652 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005567/1.849, allocations: 2.235 MB / 0.7674 GB, free: 97.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007731/1.857, allocations: 5.383 MB / 0.7727 GB, free: 92.16 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007849/1.864, allocations: 3.516 MB / 0.7761 GB, free: 91.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/1.865, allocations: 32.62 kB / 0.7761 GB, free: 91.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=766) (initialization): time 0.02457/1.889, allocations: 8.259 MB / 0.7842 GB, free: 88.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.631e-05/1.889, allocations: 57.84 kB / 0.7843 GB, free: 88.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/1.89, allocations: 111.2 kB / 0.7844 GB, free: 88.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006468/1.896, allocations: 1.03 MB / 0.7854 GB, free: 88.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008331/1.904, allocations: 1.32 MB / 0.7867 GB, free: 88.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004074/1.909, allocations: 2.465 MB / 0.7891 GB, free: 86.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005998/1.915, allocations: 314.6 kB / 0.7894 GB, free: 86.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/1.916, allocations: 341.1 kB / 0.7897 GB, free: 86.67 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 503 * 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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (713): * Single equations (assignments): 704 * 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): 2 {(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * 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.001609/1.918, allocations: 0.518 MB / 0.7902 GB, free: 86.23 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007711/1.918, allocations: 290.1 kB / 0.7905 GB, free: 86.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/1.934, allocations: 4.852 MB / 0.7952 GB, free: 84.49 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/1.934, allocations: 50.27 kB / 0.7953 GB, free: 84.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/1.934, allocations: 0 / 0.7953 GB, free: 84.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.199e-05/1.934, allocations: 14.14 kB / 0.7953 GB, free: 84.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03303/1.967, allocations: 11.47 MB / 0.8065 GB, free: 76.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.472e-05/1.967, allocations: 15.06 kB / 0.8065 GB, free: 76.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003685/1.971, allocations: 417 kB / 0.8069 GB, free: 76.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005232/1.976, allocations: 0.6085 MB / 0.8075 GB, free: 76.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000612/1.977, allocations: 55.75 kB / 0.8075 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003091/1.98, allocations: 2.072 MB / 0.8096 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/1.98, allocations: 15.94 kB / 0.8096 GB, free: 73.95 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01784/1.998, allocations: 7.665 MB / 0.8171 GB, free: 66.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009927/1.999, allocations: 328.2 kB / 0.8174 GB, free: 66.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008988/2, allocations: 52 kB / 0.8174 GB, free: 66.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002592/2.002, allocations: 126.9 kB / 0.8176 GB, free: 66.11 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005044/2.003, allocations: 160.6 kB / 0.8177 GB, free: 66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002426/2.003, allocations: 74.64 kB / 0.8178 GB, free: 65.93 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003806/2.007, allocations: 1.699 MB / 0.8194 GB, free: 64.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.693e-06/2.007, allocations: 112 / 0.8194 GB, free: 64.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0064/2.014, allocations: 1.005 MB / 0.8204 GB, free: 63.43 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 198 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.01893/2.033, allocations: 10.62 MB / 0.8308 GB, free: 53.3 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_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:1913:5-1915:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01463/2.047, allocations: 5.904 MB / 0.8366 GB, free: 47.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/2.047, allocations: 0 / 0.8366 GB, free: 47.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006663/2.054, allocations: 2.359 MB / 0.8389 GB, free: 45.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003338/2.057, allocations: 391.8 kB / 0.8392 GB, free: 45.46 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03369/2.091, allocations: 11.29 MB / 0.8503 GB, free: 35.53 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007702/2.099, allocations: 3.619 MB / 0.8538 GB, free: 32.75 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005076/2.104, allocations: 2.003 MB / 0.8558 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of SimCode: time 1.853e-06/2.104, allocations: 0 / 0.8558 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.725/6.829, allocations: 140.3 MB / 0.9928 GB, free: 87.77 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat