Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.0009676/0.0009674, allocations: 172.3 kB / 8.741 MB, free: 344 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.475/1.475, allocations: 221.5 MB / 230.7 MB, free: 7.566 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.0008143/0.0008144, allocations: 94.3 kB / 281.6 MB, free: 5.32 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.2015/0.2015, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.128e-05/2.131e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.137, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.5888, allocations: 104.7 MB / 0.597 GB, free: 7.648 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.5891, allocations: 71.97 kB / 0.5971 GB, free: 7.578 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2346/0.8237, allocations: 89.18 MB / 0.6842 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.796e-06/0.8238, allocations: 0 / 0.6842 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002201/0.824, allocations: 80 kB / 0.6842 GB, free: 13.63 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: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.01597/0.84, allocations: 4.218 MB / 0.6884 GB, free: 9.352 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.8401, allocations: 15.97 kB / 0.6884 GB, free: 9.336 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01598/0.856, allocations: 3.554 MB / 0.6918 GB, free: 5.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.8681, allocations: 4.518 MB / 0.6963 GB, free: 1.199 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/0.8684, allocations: 143.9 kB / 0.6964 GB, free: 1.059 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00235/0.8707, allocations: 251.9 kB / 0.6966 GB, free: 0.8125 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01744/0.8882, allocations: 7.71 MB / 0.7042 GB, free: 9.094 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4189/1.307, allocations: 10.09 MB / 0.714 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002025/1.307, allocations: 25.25 kB / 0.714 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001473/1.309, allocations: 14.47 kB / 0.7141 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002165/1.311, allocations: 1.217 MB / 0.7152 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0612/1.372, allocations: 34.65 MB / 0.7491 GB, free: 114 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004712/1.377, allocations: 3.976 MB / 0.753 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002663/1.38, allocations: 2.136 MB / 0.7551 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009397/1.381, allocations: 1.322 MB / 0.7563 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/1.381, allocations: 48.19 kB / 0.7564 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=237): time 5.44e-06/1.381, allocations: 0 / 0.7564 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=249): time 0.02354/1.404, allocations: 10.18 MB / 0.7663 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/1.404, allocations: 79.53 kB / 0.7664 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004977/1.409, allocations: 2.356 MB / 0.7687 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005346/1.41, allocations: 29.08 kB / 0.7687 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001774/1.412, allocations: 2.97 MB / 0.7716 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0012/1.413, allocations: 0.8959 MB / 0.7725 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000664/1.414, allocations: 0 / 0.7725 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006214/1.414, allocations: 0.5592 MB / 0.7731 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003335/1.418, allocations: 2.148 MB / 0.7752 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006457/1.424, allocations: 5.427 MB / 0.7805 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005331/1.429, allocations: 3.458 MB / 0.7838 GB, free: 97.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/1.43, allocations: 36.44 kB / 0.7839 GB, free: 97.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.01466/1.444, allocations: 7.708 MB / 0.7914 GB, free: 94.99 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/1.444, allocations: 54 kB / 0.7914 GB, free: 94.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/1.445, allocations: 120.8 kB / 0.7916 GB, free: 94.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003593/1.448, allocations: 1.027 MB / 0.7926 GB, free: 94.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00462/1.453, allocations: 1.356 MB / 0.7939 GB, free: 94.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/1.455, allocations: 2.388 MB / 0.7962 GB, free: 93.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004162/1.459, allocations: 206.5 kB / 0.7964 GB, free: 93.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/1.461, allocations: 348.1 kB / 0.7967 GB, free: 93.19 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 532 * Number of states: 0 () * Number of discrete variables: 26 (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.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (735): * Single equations (assignments): 726 * 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.001674/1.462, allocations: 407.7 kB / 0.7971 GB, free: 92.85 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008089/1.47, allocations: 4.113 MB / 0.8012 GB, free: 91.64 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005897/1.471, allocations: 273.6 kB / 0.8014 GB, free: 91.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008613/1.48, allocations: 4.613 MB / 0.8059 GB, free: 90.06 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-05/1.48, allocations: 49.33 kB / 0.806 GB, free: 90.06 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/1.48, allocations: 0.8438 kB / 0.806 GB, free: 90.06 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-05/1.48, allocations: 14.78 kB / 0.806 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0238/1.504, allocations: 10.08 MB / 0.8158 GB, free: 83.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.458e-05/1.504, allocations: 8 kB / 0.8158 GB, free: 83.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001821/1.506, allocations: 401.6 kB / 0.8162 GB, free: 83.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002929/1.508, allocations: 0.5957 MB / 0.8168 GB, free: 82.63 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004485/1.509, allocations: 31.75 kB / 0.8168 GB, free: 82.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001864/1.511, allocations: 2.008 MB / 0.8188 GB, free: 80.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.511, allocations: 11.94 kB / 0.8188 GB, free: 80.67 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009904/1.521, allocations: 7.458 MB / 0.8261 GB, free: 73.65 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/1.522, allocations: 325.1 kB / 0.8264 GB, free: 73.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008148/1.523, allocations: 12 kB / 0.8264 GB, free: 73.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/1.525, allocations: 96.06 kB / 0.8265 GB, free: 73.26 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/1.525, allocations: 155.9 kB / 0.8266 GB, free: 73.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001961/1.525, allocations: 71.56 kB / 0.8267 GB, free: 73.08 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003389/1.528, allocations: 1.544 MB / 0.8282 GB, free: 71.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.71e-07/1.528, allocations: 0 / 0.8282 GB, free: 71.74 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005942/1.534, allocations: 0.8503 MB / 0.829 GB, free: 70.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (199): * Single equations (assignments): 190 * 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.01161/1.546, allocations: 10.5 MB / 0.8393 GB, free: 60.91 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159: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 4.0.0+maint.om/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159: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.008525/1.555, allocations: 5.618 MB / 0.8448 GB, free: 55.85 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/1.555, allocations: 8 kB / 0.8448 GB, free: 55.84 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003672/1.558, allocations: 2.257 MB / 0.847 GB, free: 53.79 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/1.561, allocations: 310.1 kB / 0.8473 GB, free: 53.53 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02779/1.588, allocations: 10.29 MB / 0.8573 GB, free: 44.46 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00649/1.595, allocations: 3.524 MB / 0.8608 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00577/1.601, allocations: 2.137 MB / 0.8629 GB, free: 38.97 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003284/1.604, allocations: 1.895 MB / 0.8647 GB, free: 37.07 MB / 0.5105 GB Notification: Performance of SimCode: time 1.102e-06/1.604, allocations: 0 / 0.8647 GB, free: 37.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4287/2.033, allocations: 66.12 MB / 0.9293 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/2.033, allocations: 144.9 kB / 0.9294 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.738/5.771, allocations: 0 / 0.9294 GB, free: 123.1 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat