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.001546/0.001546, allocations: 177.8 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 88.66 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.293/0.293, allocations: 43.48 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.052e-05/2.049e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4029/0.4029, allocations: 58.85 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1931/0.5961, allocations: 103.7 MB / 0.5671 GB, free: 11.62 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/0.5965, allocations: 79.95 kB / 0.5672 GB, free: 11.54 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6959/1.292, allocations: 90.34 MB / 0.6554 GB, free: 109 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.164e-06/1.292, allocations: 2.781 kB / 0.6554 GB, free: 109 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002555/1.293, allocations: 82.31 kB / 0.6555 GB, free: 109 MB / 475.1 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.02438/1.317, allocations: 4.309 MB / 0.6597 GB, free: 107.2 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/1.317, allocations: 9.156 kB / 0.6597 GB, free: 107.2 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0294/1.347, allocations: 3.574 MB / 0.6632 GB, free: 106.9 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0247/1.371, allocations: 4.722 MB / 0.6678 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004802/1.372, allocations: 145.2 kB / 0.668 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00379/1.376, allocations: 259.4 kB / 0.6682 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02788/1.404, allocations: 7.937 MB / 0.676 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04055/1.444, allocations: 10.38 MB / 0.6861 GB, free: 103 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003355/1.445, allocations: 25.16 kB / 0.6861 GB, free: 103 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003164/1.448, allocations: 14.28 kB / 0.6861 GB, free: 103 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004253/1.452, allocations: 1.256 MB / 0.6874 GB, free: 102.8 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1115/1.564, allocations: 35.46 MB / 0.722 GB, free: 81.25 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/1.574, allocations: 4.097 MB / 0.726 GB, free: 77.25 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006502/1.581, allocations: 2.166 MB / 0.7281 GB, free: 75.27 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002397/1.583, allocations: 1.326 MB / 0.7294 GB, free: 73.83 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.312e-05/1.583, allocations: 60.56 kB / 0.7295 GB, free: 73.76 MB / 475.1 MB Notification: Performance of pre-optimization done (n=246): time 1.121e-05/1.583, allocations: 0 / 0.7295 GB, free: 73.76 MB / 475.1 MB Notification: Performance of matching and sorting (n=258): time 0.06412/1.647, allocations: 10.48 MB / 0.7397 GB, free: 64.86 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/1.648, allocations: 77.41 kB / 0.7398 GB, free: 64.77 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008098/1.656, allocations: 2.429 MB / 0.7421 GB, free: 62.63 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007197/1.656, allocations: 25.7 kB / 0.7422 GB, free: 62.6 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003387/1.66, allocations: 3.06 MB / 0.7451 GB, free: 59.81 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001967/1.662, allocations: 0.928 MB / 0.7461 GB, free: 58.98 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008955/1.663, allocations: 0 / 0.7461 GB, free: 58.98 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0007271/1.664, allocations: 0.5775 MB / 0.7466 GB, free: 58.45 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007979/1.672, allocations: 2.195 MB / 0.7488 GB, free: 56.25 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01143/1.683, allocations: 5.584 MB / 0.7542 GB, free: 48.98 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/1.695, allocations: 3.545 MB / 0.7577 GB, free: 45.43 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001739/1.695, allocations: 39.95 kB / 0.7577 GB, free: 45.39 MB / 475.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.03606/1.731, allocations: 7.833 MB / 0.7654 GB, free: 37.54 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/1.732, allocations: 64.2 kB / 0.7654 GB, free: 37.48 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002488/1.732, allocations: 120 kB / 0.7655 GB, free: 37.36 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009763/1.742, allocations: 1.032 MB / 0.7665 GB, free: 36.32 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01299/1.755, allocations: 1.4 MB / 0.7679 GB, free: 34.92 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005587/1.76, allocations: 2.403 MB / 0.7703 GB, free: 32.4 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009993/1.77, allocations: 215.6 kB / 0.7705 GB, free: 32.19 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001998/1.772, allocations: 363.9 kB / 0.7708 GB, free: 31.84 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 548 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 751 * 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.002935/1.775, allocations: 409 kB / 0.7712 GB, free: 31.43 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/1.777, allocations: 284.3 kB / 0.7715 GB, free: 31.14 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02404/1.801, allocations: 4.728 MB / 0.7761 GB, free: 26.35 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001758/1.801, allocations: 47.88 kB / 0.7761 GB, free: 26.3 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.136e-05/1.801, allocations: 8 kB / 0.7761 GB, free: 26.3 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.646e-05/1.801, allocations: 7.969 kB / 0.7762 GB, free: 26.29 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04795/1.849, allocations: 10.3 MB / 0.7862 GB, free: 15.86 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-05/1.849, allocations: 12.03 kB / 0.7862 GB, free: 15.84 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005714/1.855, allocations: 415.3 kB / 0.7866 GB, free: 15.44 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007711/1.863, allocations: 0.5953 MB / 0.7872 GB, free: 14.84 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000784/1.863, allocations: 23.98 kB / 0.7872 GB, free: 14.81 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004516/1.868, allocations: 2.013 MB / 0.7892 GB, free: 12.69 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.227e-05/1.868, allocations: 15.94 kB / 0.7892 GB, free: 12.67 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02504/1.893, allocations: 7.605 MB / 0.7966 GB, free: 4.504 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/1.894, allocations: 337.3 kB / 0.7969 GB, free: 4.152 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/1.896, allocations: 15.94 kB / 0.797 GB, free: 4.137 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004169/1.9, allocations: 95.83 kB / 0.7971 GB, free: 4.043 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/1.901, allocations: 168.8 kB / 0.7972 GB, free: 3.879 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004618/1.902, allocations: 71.98 kB / 0.7973 GB, free: 3.809 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.005741/1.908, allocations: 1.593 MB / 0.7988 GB, free: 2.211 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.072e-06/1.908, allocations: 0 / 0.7988 GB, free: 2.211 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.01067/1.918, allocations: 0.8633 MB / 0.7997 GB, free: 1.348 MB / 475.1 MB 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 (209): * Single equations (assignments): 200 * 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.001253/1.92, allocations: 159.4 kB / 0.7998 GB, free: 1.188 MB / 475.1 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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02385/1.944, allocations: 5.756 MB / 0.8055 GB, free: 11.4 MB / 491.1 MB Notification: Performance of simCode: created event and clocks part: time 1.906e-05/1.944, allocations: 4 kB / 0.8055 GB, free: 11.39 MB / 491.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01072/1.954, allocations: 2.307 MB / 0.8077 GB, free: 9.035 MB / 491.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004331/1.959, allocations: 296.1 kB / 0.808 GB, free: 8.754 MB / 491.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04316/2.002, allocations: 9.721 MB / 0.8175 GB, free: 14.93 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01332/2.015, allocations: 3.624 MB / 0.821 GB, free: 11.27 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002826/2.018, allocations: 279.4 kB / 0.8213 GB, free: 11 MB / 0.4952 GB Notification: Performance of SimCode: time 2.054e-06/2.018, allocations: 0 / 0.8213 GB, free: 11 MB / 0.4952 GB Notification: Performance of Templates: time 0.6099/2.628, allocations: 113.1 MB / 0.9317 GB, free: 75.99 MB / 0.4952 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