Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_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.001811/0.00181, allocations: 183.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009148/0.0009146, allocations: 94.86 kB / 270.2 MB, free: 13.37 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.2434/0.2434, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.0004048, allocations: 12 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1443, allocations: 58.85 MB / 490.3 MB, free: 8.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4738/0.6181, allocations: 104.4 MB / 0.5808 GB, free: 11.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.6184, allocations: 77.62 kB / 0.5809 GB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2656/0.8841, allocations: 91.88 MB / 0.6706 GB, free: 7.426 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.899e-06/0.8841, allocations: 0 / 0.6706 GB, free: 7.426 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003168/0.8845, allocations: 80 kB / 0.6707 GB, free: 7.348 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.02247/0.907, allocations: 4.461 MB / 0.675 GB, free: 2.816 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.907, allocations: 12.03 kB / 0.6751 GB, free: 2.805 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005232/0.9123, allocations: 0.8731 MB / 0.6759 GB, free: 1.922 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01643/0.9287, allocations: 3.57 MB / 0.6794 GB, free: 14.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01692/0.9457, allocations: 4.745 MB / 0.684 GB, free: 9.539 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005427/0.9463, allocations: 340.8 kB / 0.6843 GB, free: 9.203 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003274/0.9496, allocations: 435.9 kB / 0.6848 GB, free: 8.777 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03358/0.9832, allocations: 11.52 MB / 0.696 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003038/0.9835, allocations: 31.8 kB / 0.696 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002628/0.9862, allocations: 195.9 kB / 0.6962 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00238/0.9886, allocations: 1.255 MB / 0.6975 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02517/1.014, allocations: 11.1 MB / 0.7083 GB, free: 188 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4038/1.418, allocations: 38.13 MB / 0.7455 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008363/1.426, allocations: 4.684 MB / 0.7501 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/1.427, allocations: 1.318 MB / 0.7514 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/1.427, allocations: 53.09 kB / 0.7514 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=244): time 6.021e-06/1.427, allocations: 0 / 0.7514 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=256): time 0.03497/1.462, allocations: 14.34 MB / 0.7655 GB, free: 99.36 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/1.462, allocations: 78.53 kB / 0.7655 GB, free: 99.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005308/1.468, allocations: 2.536 MB / 0.768 GB, free: 98.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007655/1.468, allocations: 61.47 kB / 0.7681 GB, free: 98.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002167/1.471, allocations: 2.966 MB / 0.771 GB, free: 96.17 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001205/1.472, allocations: 0.935 MB / 0.7719 GB, free: 95.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002439/1.472, allocations: 110.8 kB / 0.772 GB, free: 95.39 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002954/1.472, allocations: 0.5539 MB / 0.7725 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002937/1.475, allocations: 2.278 MB / 0.7747 GB, free: 94.27 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004407/1.48, allocations: 5.431 MB / 0.78 GB, free: 89.36 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004178/1.484, allocations: 3.523 MB / 0.7835 GB, free: 88.22 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.046e-05/1.484, allocations: 37.09 kB / 0.7835 GB, free: 88.22 MB / 0.4948 GB Notification: Performance of matching and sorting (n=766) (initialization): time 0.0135/1.497, allocations: 8.412 MB / 0.7917 GB, free: 85.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.496e-05/1.498, allocations: 51.44 kB / 0.7918 GB, free: 85.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/1.498, allocations: 110.6 kB / 0.7919 GB, free: 85.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003291/1.501, allocations: 1.034 MB / 0.7929 GB, free: 85.33 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005106/1.506, allocations: 1.322 MB / 0.7942 GB, free: 85.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002821/1.509, allocations: 2.489 MB / 0.7966 GB, free: 83.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005334/1.514, allocations: 323.1 kB / 0.7969 GB, free: 83.53 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001543/1.516, allocations: 330.6 kB / 0.7972 GB, free: 83.48 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 () * Number of clocked 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.00638/1.522, allocations: 2.276 MB / 0.7995 GB, free: 82.46 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009698/1.523, allocations: 287.9 kB / 0.7997 GB, free: 82.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01058/1.534, allocations: 4.896 MB / 0.8045 GB, free: 80.65 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.207e-05/1.534, allocations: 52.73 kB / 0.8046 GB, free: 80.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.758e-05/1.534, allocations: 2.062 kB / 0.8046 GB, free: 80.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.997e-05/1.534, allocations: 14.44 kB / 0.8046 GB, free: 80.64 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02313/1.557, allocations: 11.52 MB / 0.8158 GB, free: 71.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.991e-05/1.557, allocations: 12 kB / 0.8158 GB, free: 71.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/1.559, allocations: 413.5 kB / 0.8162 GB, free: 71.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002539/1.562, allocations: 0.6088 MB / 0.8168 GB, free: 70.73 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003679/1.562, allocations: 56.44 kB / 0.8169 GB, free: 70.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/1.564, allocations: 2.101 MB / 0.8189 GB, free: 68.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.564, allocations: 14.56 kB / 0.819 GB, free: 68.65 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/1.574, allocations: 7.735 MB / 0.8265 GB, free: 61.26 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.576, allocations: 328.4 kB / 0.8268 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008326/1.577, allocations: 53.88 kB / 0.8269 GB, free: 60.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/1.578, allocations: 131.1 kB / 0.827 GB, free: 60.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/1.579, allocations: 158.1 kB / 0.8272 GB, free: 60.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001952/1.579, allocations: 77.19 kB / 0.8272 GB, free: 60.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003453/1.582, allocations: 1.725 MB / 0.8289 GB, free: 59.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.71e-07/1.582, allocations: 0 / 0.8289 GB, free: 59.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006193/1.589, allocations: 1.002 MB / 0.8299 GB, free: 58.21 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 () * Number of clocked 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.01464/1.603, allocations: 10.69 MB / 0.8403 GB, free: 48.08 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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01044/1.614, allocations: 5.965 MB / 0.8462 GB, free: 42.83 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.614, allocations: 7.938 kB / 0.8462 GB, free: 42.82 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00383/1.618, allocations: 2.371 MB / 0.8485 GB, free: 40.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/1.62, allocations: 397.9 kB / 0.8489 GB, free: 40.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3612/1.981, allocations: 108.2 MB / 0.9546 GB, free: 88.53 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005791/1.987, allocations: 3.614 MB / 0.9581 GB, free: 87.73 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005183/1.993, allocations: 2.078 MB / 0.9601 GB, free: 87.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003016/1.996, allocations: 1.954 MB / 0.962 GB, free: 87.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.292e-06/1.996, allocations: 0 / 0.962 GB, free: 87.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.115/2.111, allocations: 69.96 MB / 1.03 GB, free: 58.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/2.111, allocations: 214 kB / 1.031 GB, free: 58.29 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.854/5.965, allocations: 0 / 1.031 GB, free: 58.29 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat