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: 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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009378/0.0009375, allocations: 172.9 kB / 8.742 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.446/1.446, allocations: 221.5 MB / 230.7 MB, free: 7.52 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.0009518/0.0009518, allocations: 100.4 kB / 281.6 MB, free: 5.254 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.1953/0.1953, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.786e-05/1.787e-05, allocations: 4 kB / 444.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1467, allocations: 61.92 MB / 0.4947 GB, free: 1.23 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.504/0.6507, allocations: 104.7 MB / 0.5969 GB, free: 7.746 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.651, allocations: 79.95 kB / 0.597 GB, free: 7.668 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2274/0.8784, allocations: 89.19 MB / 0.6841 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.244e-06/0.8785, allocations: 0 / 0.6841 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001801/0.8787, allocations: 79.98 kB / 0.6842 GB, free: 13.72 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.01647/0.8952, allocations: 4.211 MB / 0.6883 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/0.8953, allocations: 15.98 kB / 0.6883 GB, free: 9.426 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01668/0.9119, allocations: 3.558 MB / 0.6918 GB, free: 5.855 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/0.9254, allocations: 4.51 MB / 0.6962 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.9258, allocations: 140 kB / 0.6963 GB, free: 1.156 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002785/0.9285, allocations: 263.8 kB / 0.6965 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01505/0.9436, allocations: 7.71 MB / 0.7041 GB, free: 9.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3322/1.276, allocations: 10.09 MB / 0.7139 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001515/1.276, allocations: 25.25 kB / 0.7139 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000743/1.277, allocations: 13.53 kB / 0.714 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002491/1.279, allocations: 1.219 MB / 0.7152 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05954/1.339, allocations: 34.64 MB / 0.749 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00445/1.343, allocations: 3.986 MB / 0.7529 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002605/1.346, allocations: 2.129 MB / 0.755 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009417/1.347, allocations: 1.327 MB / 0.7563 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/1.347, allocations: 52.25 kB / 0.7563 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=237): time 5.731e-06/1.347, allocations: 0 / 0.7563 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=249): time 0.0234/1.37, allocations: 10.18 MB / 0.7662 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/1.371, allocations: 72.16 kB / 0.7663 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003498/1.374, allocations: 2.365 MB / 0.7686 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004936/1.375, allocations: 25.7 kB / 0.7686 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001389/1.376, allocations: 2.97 MB / 0.7715 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009392/1.377, allocations: 0.8907 MB / 0.7724 GB, free: 105 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/1.377, allocations: 0 / 0.7724 GB, free: 105 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002572/1.377, allocations: 0.5622 MB / 0.773 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/1.38, allocations: 2.145 MB / 0.7751 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003601/1.383, allocations: 5.44 MB / 0.7804 GB, free: 98.69 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003964/1.387, allocations: 3.45 MB / 0.7837 GB, free: 97.67 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.709e-05/1.387, allocations: 32.91 kB / 0.7838 GB, free: 97.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.01354/1.401, allocations: 7.711 MB / 0.7913 GB, free: 95.28 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.813e-05/1.401, allocations: 54.19 kB / 0.7914 GB, free: 95.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.401, allocations: 118.7 kB / 0.7915 GB, free: 95.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003411/1.405, allocations: 1.024 MB / 0.7925 GB, free: 95.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004698/1.409, allocations: 1.351 MB / 0.7938 GB, free: 95.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002229/1.412, allocations: 2.397 MB / 0.7961 GB, free: 93.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00414/1.416, allocations: 211 kB / 0.7963 GB, free: 93.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007733/1.417, allocations: 350.2 kB / 0.7967 GB, free: 93.48 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.0008105/1.417, allocations: 395.5 kB / 0.797 GB, free: 93.14 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004146/1.418, allocations: 279.9 kB / 0.7973 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00747/1.425, allocations: 4.613 MB / 0.8018 GB, free: 91.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.355e-05/1.425, allocations: 50.89 kB / 0.8019 GB, free: 91.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/1.425, allocations: 7.25 kB / 0.8019 GB, free: 91.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/1.425, allocations: 9.844 kB / 0.8019 GB, free: 91.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.441, allocations: 10.08 MB / 0.8117 GB, free: 87.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/1.441, allocations: 8 kB / 0.8117 GB, free: 87.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/1.443, allocations: 399.7 kB / 0.8121 GB, free: 86.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002749/1.446, allocations: 0.5941 MB / 0.8127 GB, free: 86.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002815/1.446, allocations: 23.8 kB / 0.8127 GB, free: 86.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/1.448, allocations: 2.012 MB / 0.8147 GB, free: 84.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/1.448, allocations: 11.94 kB / 0.8147 GB, free: 84.38 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008575/1.456, allocations: 7.451 MB / 0.822 GB, free: 77.37 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000742/1.457, allocations: 321.1 kB / 0.8223 GB, free: 77.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003571/1.458, allocations: 19.05 kB / 0.8223 GB, free: 77.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/1.459, allocations: 90.66 kB / 0.8224 GB, free: 76.97 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/1.459, allocations: 155.9 kB / 0.8225 GB, free: 76.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/1.459, allocations: 71.42 kB / 0.8226 GB, free: 76.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001936/1.461, allocations: 1.549 MB / 0.8241 GB, free: 75.45 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/1.461, allocations: 0 / 0.8241 GB, free: 75.45 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004528/1.466, allocations: 0.8461 MB / 0.8249 GB, free: 74.61 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.0004673/1.466, allocations: 164.8 kB / 0.8251 GB, free: 74.46 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.008182/1.474, allocations: 5.623 MB / 0.8306 GB, free: 69.39 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/1.474, allocations: 4 kB / 0.8306 GB, free: 69.39 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003196/1.478, allocations: 2.26 MB / 0.8328 GB, free: 67.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/1.479, allocations: 299.8 kB / 0.8331 GB, free: 67.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/1.494, allocations: 8.98 MB / 0.8418 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003347/1.497, allocations: 3.522 MB / 0.8453 GB, free: 56.26 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004439/1.502, allocations: 2.137 MB / 0.8474 GB, free: 54.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000624/1.502, allocations: 227 kB / 0.8476 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.172e-06/1.502, allocations: 0 / 0.8476 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.04752/1.55, allocations: 27.03 MB / 0.874 GB, free: 28.44 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit2/FreeMotionScalarInit2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches