Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.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.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",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.001422/0.001422, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 221.5 MB / 230.7 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009064/0.0009063, allocations: 95.97 kB / 281.6 MB, free: 5.332 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.2095/0.2095, allocations: 44.14 MB / 376.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.117e-05/2.163e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1337, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4672/0.6009, allocations: 104.9 MB / 0.5972 GB, free: 7.469 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.6013, allocations: 71.97 kB / 0.5972 GB, free: 7.398 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2349/0.8361, allocations: 92.74 MB / 0.6878 GB, free: 9.965 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.853e-06/0.8362, allocations: 3.938 kB / 0.6878 GB, free: 9.961 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001777/0.8364, allocations: 88 kB / 0.6879 GB, free: 9.875 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.01566/0.852, allocations: 4.411 MB / 0.6922 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.8521, allocations: 15.98 kB / 0.6922 GB, free: 5.383 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01579/0.8679, allocations: 3.574 MB / 0.6957 GB, free: 1.797 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.8812, allocations: 4.624 MB / 0.7002 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003235/0.8815, allocations: 152 kB / 0.7004 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002714/0.8843, allocations: 263.9 kB / 0.7006 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01532/0.8996, allocations: 7.824 MB / 0.7083 GB, free: 4.883 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3309/1.231, allocations: 10.31 MB / 0.7183 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001916/1.231, allocations: 25.45 kB / 0.7184 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001011/1.232, allocations: 14.91 kB / 0.7184 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002161/1.234, allocations: 1.205 MB / 0.7195 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0564/1.29, allocations: 35.01 MB / 0.7537 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004912/1.295, allocations: 3.706 MB / 0.7574 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002403/1.298, allocations: 2.042 MB / 0.7594 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009753/1.299, allocations: 1.322 MB / 0.7606 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/1.299, allocations: 52.19 kB / 0.7607 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=237): time 4.358e-06/1.299, allocations: 3.094 kB / 0.7607 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=264): time 0.02157/1.32, allocations: 11.02 MB / 0.7715 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/1.32, allocations: 70.91 kB / 0.7715 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003808/1.324, allocations: 2.482 MB / 0.774 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006058/1.325, allocations: 29.58 kB / 0.774 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00175/1.327, allocations: 3.107 MB / 0.777 GB, free: 101 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001042/1.328, allocations: 0.9613 MB / 0.778 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/1.328, allocations: 3.75 kB / 0.778 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000257/1.328, allocations: 0.5712 MB / 0.7785 GB, free: 99.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002801/1.331, allocations: 2.296 MB / 0.7808 GB, free: 99.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/1.335, allocations: 5.719 MB / 0.7863 GB, free: 93.75 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004284/1.339, allocations: 3.668 MB / 0.7899 GB, free: 92.68 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.178e-05/1.339, allocations: 34 kB / 0.79 GB, free: 92.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=824) (initialization): time 0.01557/1.355, allocations: 8.191 MB / 0.798 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.113e-05/1.355, allocations: 53.81 kB / 0.798 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001273/1.355, allocations: 124.2 kB / 0.7981 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003691/1.359, allocations: 1.065 MB / 0.7992 GB, free: 89.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005024/1.364, allocations: 1.442 MB / 0.8006 GB, free: 89.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/1.366, allocations: 2.399 MB / 0.8029 GB, free: 88.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004703/1.371, allocations: 211.5 kB / 0.8031 GB, free: 88.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/1.372, allocations: 373.8 kB / 0.8035 GB, free: 88.27 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 29 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],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],freeMotionScalarInit1.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit1.arrow.headAtOrigin,freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (771): * Single equations (assignments): 762 * 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 prepare postOptimizeDAE: time 0.001083/1.373, allocations: 418.9 kB / 0.8039 GB, free: 87.93 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007681/1.381, allocations: 4.417 MB / 0.8082 GB, free: 86.58 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008037/1.381, allocations: 295.1 kB / 0.8085 GB, free: 86.42 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008819/1.39, allocations: 5.028 MB / 0.8134 GB, free: 83.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.528e-05/1.39, allocations: 43.8 kB / 0.8134 GB, free: 83.85 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/1.39, allocations: 0 / 0.8134 GB, free: 83.85 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.386e-05/1.39, allocations: 15.2 kB / 0.8134 GB, free: 83.84 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01806/1.409, allocations: 10.62 MB / 0.8238 GB, free: 75.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/1.409, allocations: 8 kB / 0.8238 GB, free: 75.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/1.411, allocations: 437.3 kB / 0.8242 GB, free: 74.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003331/1.414, allocations: 0.9052 MB / 0.8251 GB, free: 74.12 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004721/1.414, allocations: 31.31 kB / 0.8251 GB, free: 74.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/1.416, allocations: 2.202 MB / 0.8273 GB, free: 72.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/1.416, allocations: 8 kB / 0.8273 GB, free: 72.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/1.427, allocations: 8.176 MB / 0.8353 GB, free: 64.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007303/1.427, allocations: 336.6 kB / 0.8356 GB, free: 64.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004747/1.428, allocations: 26.38 kB / 0.8356 GB, free: 64.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/1.429, allocations: 104.6 kB / 0.8357 GB, free: 63.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/1.43, allocations: 160.8 kB / 0.8359 GB, free: 63.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/1.43, allocations: 86.72 kB / 0.836 GB, free: 63.81 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002286/1.432, allocations: 1.616 MB / 0.8375 GB, free: 62.41 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/1.432, allocations: 0 / 0.8375 GB, free: 62.41 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004599/1.437, allocations: 0.9058 MB / 0.8384 GB, free: 61.51 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 205 * 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.01113/1.448, allocations: 10.84 MB / 0.849 GB, free: 51.38 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01007/1.458, allocations: 6.037 MB / 0.8549 GB, free: 45.94 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.659e-05/1.458, allocations: 1 kB / 0.8549 GB, free: 45.94 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00405/1.462, allocations: 2.598 MB / 0.8574 GB, free: 43.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/1.464, allocations: 368.9 kB / 0.8578 GB, free: 43.33 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/1.484, allocations: 10.85 MB / 0.8684 GB, free: 32.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003145/1.487, allocations: 3.682 MB / 0.872 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004793/1.492, allocations: 2.232 MB / 0.8742 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/1.494, allocations: 2.05 MB / 0.8762 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of SimCode: time 1.423e-06/1.494, allocations: 4 kB / 0.8762 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4153/1.909, allocations: 72.37 MB / 0.9468 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001348/1.91, allocations: 152.7 kB / 0.947 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.025/5.935, allocations: 0 / 0.947 GB, free: 120.1 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat