Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008955/0.0008954, allocations: 95.34 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2612/0.2612, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.382e-05/1.384e-05, allocations: 4 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1012, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3865/0.4877, allocations: 110.6 MB / 0.6123 GB, free: 8.359 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001678/0.488, allocations: 79.14 kB / 0.6124 GB, free: 8.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.235/0.723, allocations: 97.39 MB / 0.7075 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.502e-06/0.723, allocations: 0 / 0.7075 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001952/0.7232, allocations: 87.94 kB / 0.7076 GB, free: 14.73 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.01872/0.742, allocations: 4.705 MB / 0.7122 GB, free: 9.961 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.742, allocations: 12.03 kB / 0.7122 GB, free: 9.949 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01534/0.7574, allocations: 3.612 MB / 0.7157 GB, free: 6.324 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01235/0.7698, allocations: 4.21 MB / 0.7199 GB, free: 2.062 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.7701, allocations: 160 kB / 0.72 GB, free: 1.906 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002464/0.7726, allocations: 288 kB / 0.7203 GB, free: 1.625 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01435/0.7869, allocations: 8.29 MB / 0.7284 GB, free: 9.328 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02284/0.8098, allocations: 10.99 MB / 0.7391 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002233/0.8101, allocations: 27.75 kB / 0.7391 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001664/0.8117, allocations: 16 kB / 0.7392 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001898/0.8136, allocations: 1.303 MB / 0.7404 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3082/1.122, allocations: 39.08 MB / 0.7786 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005122/1.127, allocations: 4.263 MB / 0.7828 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002916/1.13, allocations: 2.287 MB / 0.785 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001143/1.131, allocations: 1.639 MB / 0.7866 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/1.131, allocations: 57.55 kB / 0.7866 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=263): time 5.09e-06/1.131, allocations: 3.969 kB / 0.7866 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282): time 0.028/1.159, allocations: 16.86 MB / 0.8031 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/1.159, allocations: 101.8 kB / 0.8032 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003811/1.163, allocations: 2.547 MB / 0.8057 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002003/1.163, allocations: 28.23 kB / 0.8057 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001443/1.165, allocations: 3.238 MB / 0.8089 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000762/1.166, allocations: 1.013 MB / 0.8099 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003397/1.166, allocations: 3.5 kB / 0.8099 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003666/1.166, allocations: 0.5824 MB / 0.8104 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002795/1.169, allocations: 2.375 MB / 0.8128 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004015/1.173, allocations: 5.901 MB / 0.8185 GB, free: 99.98 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004236/1.177, allocations: 3.776 MB / 0.8222 GB, free: 98.87 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-05/1.177, allocations: 34.59 kB / 0.8222 GB, free: 98.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=859) (initialization): time 0.01667/1.194, allocations: 9.412 MB / 0.8314 GB, free: 96.55 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.379e-05/1.194, allocations: 61.59 kB / 0.8315 GB, free: 96.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000153/1.194, allocations: 125 kB / 0.8316 GB, free: 96.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007821/1.202, allocations: 2.349 MB / 0.8339 GB, free: 96.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004116/1.206, allocations: 1.434 MB / 0.8353 GB, free: 96.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/1.219, allocations: 9.829 MB / 0.8449 GB, free: 91.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005006/1.225, allocations: 210.3 kB / 0.8451 GB, free: 91.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.226, allocations: 378.7 kB / 0.8455 GB, free: 91.6 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring.e_rel_0[1]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[2]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[3]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 32 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (777): * Single equations (assignments): 769 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 5,3 24} Notification: Performance of prepare postOptimizeDAE: time 0.00174/1.228, allocations: 437.7 kB / 0.8459 GB, free: 91.23 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008295/1.228, allocations: 317 kB / 0.8462 GB, free: 91.06 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007346/1.236, allocations: 4.895 MB / 0.851 GB, free: 88.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.955e-05/1.236, allocations: 49.11 kB / 0.851 GB, free: 88.65 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/1.236, allocations: 4 kB / 0.851 GB, free: 88.65 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.256e-05/1.236, allocations: 15.33 kB / 0.851 GB, free: 88.64 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/1.252, allocations: 10.98 MB / 0.8618 GB, free: 79.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.848e-05/1.252, allocations: 12 kB / 0.8618 GB, free: 79.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001761/1.253, allocations: 459.7 kB / 0.8622 GB, free: 79.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/1.255, allocations: 0.6991 MB / 0.8629 GB, free: 78.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/1.255, allocations: 35.73 kB / 0.8629 GB, free: 78.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001863/1.257, allocations: 2.349 MB / 0.8652 GB, free: 76.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/1.257, allocations: 15.59 kB / 0.8652 GB, free: 76.37 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008165/1.266, allocations: 8.244 MB / 0.8733 GB, free: 68.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006042/1.266, allocations: 349.6 kB / 0.8736 GB, free: 68.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004926/1.267, allocations: 27.61 kB / 0.8736 GB, free: 68.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/1.268, allocations: 105.6 kB / 0.8737 GB, free: 68.09 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/1.268, allocations: 175.4 kB / 0.8739 GB, free: 67.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/1.269, allocations: 86.03 kB / 0.874 GB, free: 67.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002223/1.271, allocations: 1.659 MB / 0.8756 GB, free: 66.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/1.271, allocations: 0 / 0.8756 GB, free: 66.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004163/1.275, allocations: 0.9891 MB / 0.8766 GB, free: 65.48 MB / 0.5261 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 222 * 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.000413/1.275, allocations: 180.3 kB / 0.8767 GB, free: 65.32 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:80:3-82:159:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.006987/1.282, allocations: 5.979 MB / 0.8826 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.282, allocations: 4.312 kB / 0.8826 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003346/1.286, allocations: 2.608 MB / 0.8851 GB, free: 57.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/1.287, allocations: 333.9 kB / 0.8855 GB, free: 57.32 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/1.301, allocations: 9.668 MB / 0.8949 GB, free: 48.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003765/1.305, allocations: 3.823 MB / 0.8986 GB, free: 45.67 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00453/1.31, allocations: 2.258 MB / 0.9008 GB, free: 44.24 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007185/1.31, allocations: 246.3 kB / 0.9011 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of SimCode: time 6.31e-07/1.31, allocations: 0 / 0.9011 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of Templates: time 0.05222/1.363, allocations: 35.58 MB / 0.9358 GB, free: 11.3 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit4/FreeMotionScalarInit4.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches