Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009854/0.0009854, allocations: 94.3 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1841/0.1841, allocations: 45.15 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.15e-05/1.152e-05, allocations: 4 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 63.26 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.418/0.5246, allocations: 105.6 MB / 0.6075 GB, free: 13.23 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.5248, allocations: 74.16 kB / 0.6076 GB, free: 13.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2236/0.7485, allocations: 90.04 MB / 0.6955 GB, free: 11.16 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.7485, allocations: 0 / 0.6955 GB, free: 11.16 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002199/0.7488, allocations: 79.98 kB / 0.6956 GB, free: 11.09 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: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.01599/0.7648, allocations: 4.316 MB / 0.6998 GB, free: 6.703 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.7648, allocations: 8.031 kB / 0.6998 GB, free: 6.695 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01524/0.7801, allocations: 3.566 MB / 0.7033 GB, free: 3.117 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01134/0.7915, allocations: 4.007 MB / 0.7072 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003369/0.7919, allocations: 136 kB / 0.7073 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002722/0.7946, allocations: 255.9 kB / 0.7076 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01435/0.809, allocations: 7.706 MB / 0.7151 GB, free: 6.957 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02313/0.8321, allocations: 10.11 MB / 0.7249 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002396/0.8324, allocations: 23.81 kB / 0.725 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001803/0.8343, allocations: 12 kB / 0.725 GB, free: 12.35 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001894/0.8362, allocations: 1.22 MB / 0.7262 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3088/1.145, allocations: 34.65 MB / 0.76 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004445/1.149, allocations: 3.989 MB / 0.7639 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002845/1.152, allocations: 2.13 MB / 0.766 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001131/1.153, allocations: 1.317 MB / 0.7673 GB, free: 123 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/1.154, allocations: 53.98 kB / 0.7673 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=237): time 4.539e-06/1.154, allocations: 0.9688 kB / 0.7673 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=249): time 0.0225/1.176, allocations: 10.18 MB / 0.7773 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/1.176, allocations: 76.69 kB / 0.7773 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/1.179, allocations: 2.365 MB / 0.7796 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002855/1.179, allocations: 25.7 kB / 0.7797 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001091/1.18, allocations: 2.968 MB / 0.7826 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000692/1.181, allocations: 0.8924 MB / 0.7834 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/1.181, allocations: 2.688 kB / 0.7834 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002368/1.182, allocations: 0.5601 MB / 0.784 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/1.184, allocations: 2.145 MB / 0.7861 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003516/1.187, allocations: 5.433 MB / 0.7914 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003605/1.191, allocations: 3.446 MB / 0.7948 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.623e-05/1.191, allocations: 31.78 kB / 0.7948 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.01183/1.203, allocations: 7.712 MB / 0.8023 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.875e-05/1.203, allocations: 55.41 kB / 0.8024 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001171/1.203, allocations: 114.1 kB / 0.8025 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003544/1.207, allocations: 1.023 MB / 0.8035 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003944/1.211, allocations: 1.356 MB / 0.8048 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/1.212, allocations: 2.396 MB / 0.8071 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003237/1.216, allocations: 213.1 kB / 0.8073 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004353/1.216, allocations: 350.5 kB / 0.8077 GB, free: 113.1 MB / 0.5261 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.0006257/1.217, allocations: 403.6 kB / 0.8081 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003452/1.217, allocations: 271.5 kB / 0.8083 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007371/1.225, allocations: 4.62 MB / 0.8128 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.379e-05/1.225, allocations: 44.72 kB / 0.8129 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/1.225, allocations: 3.062 kB / 0.8129 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.697e-05/1.225, allocations: 17.31 kB / 0.8129 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01826/1.243, allocations: 10.08 MB / 0.8227 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/1.243, allocations: 13.78 kB / 0.8227 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/1.245, allocations: 390.9 kB / 0.8231 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002668/1.247, allocations: 0.6044 MB / 0.8237 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/1.247, allocations: 29.81 kB / 0.8237 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/1.249, allocations: 2.001 MB / 0.8257 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/1.249, allocations: 19.03 kB / 0.8257 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009545/1.259, allocations: 7.445 MB / 0.833 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007728/1.26, allocations: 329.2 kB / 0.8333 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005937/1.26, allocations: 20.94 kB / 0.8333 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/1.262, allocations: 88.28 kB / 0.8334 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/1.262, allocations: 160.4 kB / 0.8336 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/1.262, allocations: 77.14 kB / 0.8336 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002637/1.265, allocations: 1.537 MB / 0.8351 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.7e-07/1.265, allocations: 4 kB / 0.8351 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004455/1.269, allocations: 0.845 MB / 0.836 GB, free: 100.7 MB / 0.5261 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.0004858/1.27, allocations: 174.8 kB / 0.8361 GB, free: 100.5 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 $DER.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: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.007567/1.277, allocations: 5.614 MB / 0.8416 GB, free: 95.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.277, allocations: 4 kB / 0.8416 GB, free: 95.47 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002989/1.28, allocations: 2.261 MB / 0.8438 GB, free: 93.42 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001793/1.282, allocations: 303.5 kB / 0.8441 GB, free: 93.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/1.296, allocations: 8.965 MB / 0.8529 GB, free: 85.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003782/1.3, allocations: 3.528 MB / 0.8563 GB, free: 82.39 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004419/1.304, allocations: 2.138 MB / 0.8584 GB, free: 81.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007392/1.305, allocations: 219.3 kB / 0.8586 GB, free: 80.83 MB / 0.5261 GB Notification: Performance of SimCode: time 6.91e-07/1.305, allocations: 4 kB / 0.8586 GB, free: 80.83 MB / 0.5261 GB Notification: Performance of Templates: time 0.0436/1.349, allocations: 27.04 MB / 0.885 GB, free: 61.05 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches