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: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|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.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|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.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002285/0.002284, allocations: 181.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.199/3.199, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.001442/0.001442, allocations: 95.03 kB / 271.9 MB, free: 8.266 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.5932/0.5932, allocations: 43.55 MB / 363.8 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005677/0.0005678, allocations: 12 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.176, allocations: 58.85 MB / 491.5 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5676/0.7437, allocations: 104.5 MB / 0.582 GB, free: 13.84 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.7441, allocations: 79.97 kB / 0.5821 GB, free: 13.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2237/0.9678, allocations: 90.84 MB / 0.6708 GB, free: 2.297 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.9678, allocations: 0 / 0.6708 GB, free: 2.297 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001687/0.968, allocations: 80 kB / 0.6709 GB, free: 2.219 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.2273/1.195, allocations: 4.335 MB / 0.6751 GB, free: 91.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/1.195, allocations: 12.12 kB / 0.6751 GB, free: 91.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01511/1.21, allocations: 3.549 MB / 0.6786 GB, free: 91.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009007/1.22, allocations: 3.658 MB / 0.6822 GB, free: 91.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004137/1.22, allocations: 338.6 kB / 0.6825 GB, free: 91.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002399/1.222, allocations: 441.8 kB / 0.6829 GB, free: 91.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0233/1.246, allocations: 11.46 MB / 0.6941 GB, free: 89.96 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001663/1.246, allocations: 21.56 kB / 0.6941 GB, free: 89.96 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001033/1.247, allocations: 209.5 kB / 0.6943 GB, free: 89.95 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001463/1.248, allocations: 1.257 MB / 0.6956 GB, free: 89.94 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/1.268, allocations: 11 MB / 0.7063 GB, free: 89.89 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05451/1.323, allocations: 38.09 MB / 0.7435 GB, free: 69.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00767/1.331, allocations: 4.688 MB / 0.7481 GB, free: 66.82 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002668/1.333, allocations: 2.244 MB / 0.7503 GB, free: 65.97 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009248/1.334, allocations: 1.319 MB / 0.7515 GB, free: 64.79 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/1.334, allocations: 52.06 kB / 0.7516 GB, free: 64.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=244): time 6.442e-06/1.334, allocations: 3.469 kB / 0.7516 GB, free: 64.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=256): time 0.03498/1.369, allocations: 13.82 MB / 0.7651 GB, free: 60.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/1.369, allocations: 77.41 kB / 0.7652 GB, free: 60.67 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004477/1.374, allocations: 2.838 MB / 0.7679 GB, free: 59.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00033/1.374, allocations: 64.38 kB / 0.768 GB, free: 59.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001435/1.376, allocations: 2.956 MB / 0.7709 GB, free: 57.27 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009064/1.377, allocations: 0.9463 MB / 0.7718 GB, free: 56.57 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004074/1.377, allocations: 109.7 kB / 0.7719 GB, free: 56.48 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004068/1.378, allocations: 0.5587 MB / 0.7725 GB, free: 56.07 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003105/1.381, allocations: 2.278 MB / 0.7747 GB, free: 55.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004402/1.385, allocations: 5.449 MB / 0.78 GB, free: 50.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008081/1.393, allocations: 8.507 MB / 0.7883 GB, free: 43.95 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/1.393, allocations: 34.31 kB / 0.7883 GB, free: 43.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.01401/1.407, allocations: 8.409 MB / 0.7966 GB, free: 36.85 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/1.407, allocations: 52 kB / 0.7966 GB, free: 36.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001816/1.408, allocations: 112 kB / 0.7967 GB, free: 36.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003185/1.411, allocations: 1.014 MB / 0.7977 GB, free: 36.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/1.415, allocations: 1.323 MB / 0.799 GB, free: 34.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/1.417, allocations: 2.463 MB / 0.8014 GB, free: 32.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00372/1.421, allocations: 321.5 kB / 0.8017 GB, free: 32.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009186/1.422, allocations: 328.3 kB / 0.802 GB, free: 31.98 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.004704/1.427, allocations: 2.281 MB / 0.8042 GB, free: 30 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006687/1.427, allocations: 284.2 kB / 0.8045 GB, free: 29.72 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008549/1.436, allocations: 4.908 MB / 0.8093 GB, free: 25.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.529e-05/1.436, allocations: 43.23 kB / 0.8094 GB, free: 25.64 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/1.436, allocations: 4 kB / 0.8094 GB, free: 25.63 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/1.436, allocations: 14.86 kB / 0.8094 GB, free: 25.63 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.456, allocations: 11.52 MB / 0.8206 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/1.456, allocations: 12 kB / 0.8206 GB, free: 15.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001579/1.458, allocations: 409.7 kB / 0.821 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002555/1.46, allocations: 0.6125 MB / 0.8216 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002271/1.46, allocations: 57.14 kB / 0.8217 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/1.462, allocations: 2.064 MB / 0.8237 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/1.462, allocations: 15.94 kB / 0.8237 GB, free: 13.12 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00955/1.472, allocations: 6.96 MB / 0.8305 GB, free: 6.855 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007686/1.473, allocations: 338.2 kB / 0.8308 GB, free: 6.516 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006363/1.473, allocations: 44 kB / 0.8309 GB, free: 6.473 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/1.475, allocations: 135.7 kB / 0.831 GB, free: 6.383 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002994/1.475, allocations: 154.5 kB / 0.8311 GB, free: 6.281 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/1.475, allocations: 81.59 kB / 0.8312 GB, free: 6.211 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00283/1.478, allocations: 1.725 MB / 0.8329 GB, free: 4.793 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.478, allocations: 0 / 0.8329 GB, free: 4.793 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00446/1.483, allocations: 1.003 MB / 0.8339 GB, free: 3.801 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.0004915/1.483, allocations: 199.9 kB / 0.8341 GB, free: 3.609 MB / 490.7 MB [/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.009947/1.493, allocations: 5.973 MB / 0.8399 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/1.493, allocations: 0 / 0.8399 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004222/1.498, allocations: 2.385 MB / 0.8422 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005559/1.503, allocations: 418.1 kB / 0.8426 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02417/1.527, allocations: 13.53 MB / 0.8559 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004295/1.532, allocations: 3.527 MB / 0.8593 GB, free: 9.645 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/1.533, allocations: 279.4 kB / 0.8596 GB, free: 9.371 MB / 0.5105 GB Notification: Performance of SimCode: time 7.71e-07/1.533, allocations: 4 kB / 0.8596 GB, free: 9.367 MB / 0.5105 GB Notification: Performance of Templates: time 0.3598/1.893, allocations: 119.7 MB / 0.9764 GB, free: 71.41 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (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 & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit2/FreeMotionScalarInit2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches