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.002321/0.002326, allocations: 184.8 kB / 16.41 MB, free: 5.727 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.041/2.041, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001172/0.001171, allocations: 101.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5383/0.5383, allocations: 43.56 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005267/0.0005269, allocations: 16 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1395, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5108/0.6503, allocations: 104.4 MB / 0.5808 GB, free: 14.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/0.6507, allocations: 83.94 kB / 0.5809 GB, free: 14.03 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3985/1.049, allocations: 91.88 MB / 0.6706 GB, free: 1.523 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.552e-06/1.049, allocations: 0 / 0.6706 GB, free: 1.523 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002351/1.05, allocations: 87.92 kB / 0.6707 GB, free: 1.438 MB / 490.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.3711/1.421, allocations: 4.451 MB / 0.675 GB, free: 91.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/1.421, allocations: 9.219 kB / 0.675 GB, free: 91.97 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004886/1.426, allocations: 0.8694 MB / 0.6759 GB, free: 91.89 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02818/1.454, allocations: 3.582 MB / 0.6794 GB, free: 91.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01937/1.473, allocations: 4.736 MB / 0.684 GB, free: 91.33 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005947/1.474, allocations: 337.8 kB / 0.6843 GB, free: 91.32 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003285/1.477, allocations: 445.7 kB / 0.6847 GB, free: 91.32 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0384/1.516, allocations: 11.51 MB / 0.696 GB, free: 89.97 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003272/1.516, allocations: 31.67 kB / 0.696 GB, free: 89.97 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002791/1.519, allocations: 196.8 kB / 0.6962 GB, free: 89.97 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003044/1.522, allocations: 1.257 MB / 0.6974 GB, free: 89.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04704/1.569, allocations: 11.11 MB / 0.7083 GB, free: 89.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09423/1.663, allocations: 38.13 MB / 0.7455 GB, free: 68.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01353/1.677, allocations: 4.687 MB / 0.7501 GB, free: 66.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/1.678, allocations: 1.318 MB / 0.7514 GB, free: 65.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/1.679, allocations: 52.06 kB / 0.7514 GB, free: 65.17 MB / 490.7 MB Notification: Performance of pre-optimization done (n=244): time 7.754e-06/1.679, allocations: 0 / 0.7514 GB, free: 65.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=256): time 0.08707/1.766, allocations: 14.34 MB / 0.7654 GB, free: 60.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/1.766, allocations: 75.97 kB / 0.7655 GB, free: 60.53 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005269/1.771, allocations: 2.527 MB / 0.768 GB, free: 59.56 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005769/1.772, allocations: 61.58 kB / 0.768 GB, free: 59.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00224/1.774, allocations: 2.958 MB / 0.7709 GB, free: 57.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.775, allocations: 0.9385 MB / 0.7718 GB, free: 56.51 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007648/1.776, allocations: 113.8 kB / 0.7719 GB, free: 56.42 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004731/1.777, allocations: 0.5603 MB / 0.7725 GB, free: 56 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005687/1.782, allocations: 2.284 MB / 0.7747 GB, free: 55.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007769/1.79, allocations: 5.423 MB / 0.78 GB, free: 50.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008175/1.798, allocations: 3.53 MB / 0.7835 GB, free: 49.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.356e-05/1.799, allocations: 32.19 kB / 0.7835 GB, free: 49.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.02413/1.823, allocations: 8.35 MB / 0.7916 GB, free: 43.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.603e-05/1.823, allocations: 53.56 kB / 0.7917 GB, free: 43.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001276/1.823, allocations: 108 kB / 0.7918 GB, free: 42.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006225/1.829, allocations: 1.036 MB / 0.7928 GB, free: 42.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007945/1.837, allocations: 1.312 MB / 0.7941 GB, free: 41.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003784/1.841, allocations: 2.5 MB / 0.7965 GB, free: 38.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00552/1.847, allocations: 321.8 kB / 0.7968 GB, free: 38.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001258/1.848, allocations: 334.7 kB / 0.7972 GB, free: 38.16 MB / 490.7 MB 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.006566/1.855, allocations: 2.28 MB / 0.7994 GB, free: 36.18 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000847/1.855, allocations: 284.2 kB / 0.7997 GB, free: 35.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0175/1.873, allocations: 4.906 MB / 0.8045 GB, free: 31.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/1.873, allocations: 40 kB / 0.8045 GB, free: 31.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/1.873, allocations: 0 / 0.8045 GB, free: 31.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.123e-05/1.873, allocations: 14.22 kB / 0.8045 GB, free: 31.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03247/1.906, allocations: 11.52 MB / 0.8158 GB, free: 22.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.795e-05/1.906, allocations: 8.969 kB / 0.8158 GB, free: 22.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003585/1.909, allocations: 406.6 kB / 0.8161 GB, free: 21.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005975/1.915, allocations: 0.6199 MB / 0.8168 GB, free: 21.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005818/1.916, allocations: 59.33 kB / 0.8168 GB, free: 21.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003301/1.919, allocations: 2.097 MB / 0.8189 GB, free: 19.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/1.919, allocations: 15.94 kB / 0.8189 GB, free: 19.28 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01868/1.938, allocations: 7.735 MB / 0.8264 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009016/1.939, allocations: 328.4 kB / 0.8267 GB, free: 11.57 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.94, allocations: 51.8 kB / 0.8268 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002899/1.943, allocations: 129.6 kB / 0.8269 GB, free: 11.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007516/1.944, allocations: 164.8 kB / 0.8271 GB, free: 11.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002612/1.944, allocations: 75.94 kB / 0.8271 GB, free: 11.25 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004235/1.948, allocations: 1.721 MB / 0.8288 GB, free: 9.719 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.22e-07/1.948, allocations: 7.938 kB / 0.8288 GB, free: 9.711 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006614/1.955, allocations: 0.9975 MB / 0.8298 GB, free: 8.719 MB / 490.7 MB 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.02118/1.976, allocations: 10.68 MB / 0.8402 GB, free: 13.7 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.01766/1.994, allocations: 5.975 MB / 0.8461 GB, free: 7.695 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.61e-05/1.994, allocations: 4 kB / 0.8461 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008066/2.002, allocations: 2.38 MB / 0.8484 GB, free: 5.262 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003592/2.006, allocations: 395.6 kB / 0.8488 GB, free: 4.895 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4538/2.46, allocations: 108.8 MB / 0.955 GB, free: 50.85 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008202/2.468, allocations: 3.624 MB / 0.9585 GB, free: 50.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005646/2.474, allocations: 2 MB / 0.9605 GB, free: 50.04 MB / 0.5261 GB Notification: Performance of SimCode: time 2.154e-06/2.474, allocations: 0 / 0.9605 GB, free: 50.04 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.809/7.282, allocations: 139.7 MB / 1.097 GB, free: 125.9 MB / 0.5261 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