Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 174.4 kB / 8.74 MB, free: 348 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.34/1.34, allocations: 221.5 MB / 230.7 MB, free: 7.578 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.0008764/0.0008763, allocations: 99.09 kB / 281.6 MB, free: 5.309 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.204/0.204, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.654e-05, allocations: 4.219 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1253, allocations: 61.92 MB / 0.4947 GB, free: 1.238 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.454/0.5794, allocations: 109.7 MB / 0.6018 GB, free: 2.789 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.5797, allocations: 71.97 kB / 0.6018 GB, free: 2.719 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2401/0.8198, allocations: 96.53 MB / 0.6961 GB, free: 1.461 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.934e-06/0.8198, allocations: 0 / 0.6961 GB, free: 1.461 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002083/0.82, allocations: 84 kB / 0.6962 GB, free: 1.379 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.3033/1.123, allocations: 4.601 MB / 0.7007 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.834e-05/1.123, allocations: 13.81 kB / 0.7007 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0192/1.143, allocations: 3.606 MB / 0.7042 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/1.157, allocations: 4.722 MB / 0.7088 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002882/1.158, allocations: 158.3 kB / 0.709 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001892/1.16, allocations: 295.4 kB / 0.7093 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01462/1.174, allocations: 8.301 MB / 0.7174 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02853/1.203, allocations: 10.98 MB / 0.7281 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002978/1.203, allocations: 37.78 kB / 0.7281 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002405/1.206, allocations: 17.75 kB / 0.7281 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002008/1.208, allocations: 1.294 MB / 0.7294 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0727/1.28, allocations: 39.08 MB / 0.7676 GB, free: 89.38 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006168/1.287, allocations: 4.273 MB / 0.7717 GB, free: 86.99 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003592/1.29, allocations: 2.282 MB / 0.774 GB, free: 86.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001486/1.292, allocations: 1.647 MB / 0.7756 GB, free: 84.62 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/1.292, allocations: 51.53 kB / 0.7756 GB, free: 84.57 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=263): time 8.206e-06/1.292, allocations: 2.531 kB / 0.7756 GB, free: 84.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=282): time 0.04497/1.337, allocations: 16.86 MB / 0.7921 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/1.337, allocations: 105.9 kB / 0.7922 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004828/1.342, allocations: 2.537 MB / 0.7947 GB, free: 72.45 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006158/1.342, allocations: 25.7 kB / 0.7947 GB, free: 72.41 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001922/1.344, allocations: 3.239 MB / 0.7979 GB, free: 69.48 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001324/1.346, allocations: 1.014 MB / 0.7989 GB, free: 68.57 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000351/1.346, allocations: 0 / 0.7989 GB, free: 68.57 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003842/1.346, allocations: 0.5894 MB / 0.7994 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00414/1.351, allocations: 2.367 MB / 0.8017 GB, free: 65.93 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006001/1.357, allocations: 5.902 MB / 0.8075 GB, free: 58.72 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006964/1.364, allocations: 3.776 MB / 0.8112 GB, free: 55.58 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.664e-05/1.364, allocations: 36 kB / 0.8112 GB, free: 55.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02647/1.39, allocations: 9.42 MB / 0.8204 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001696/1.39, allocations: 57.41 kB / 0.8205 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000227/1.391, allocations: 128 kB / 0.8206 GB, free: 47.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0121/1.403, allocations: 2.342 MB / 0.8229 GB, free: 46.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007019/1.41, allocations: 1.439 MB / 0.8243 GB, free: 44.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02174/1.432, allocations: 9.826 MB / 0.8339 GB, free: 36.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007258/1.439, allocations: 213.3 kB / 0.8341 GB, free: 36.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002041/1.441, allocations: 387.4 kB / 0.8345 GB, free: 35.91 MB / 0.4948 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.002728/1.444, allocations: 440.4 kB / 0.8349 GB, free: 35.47 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008914/1.445, allocations: 304.1 kB / 0.8352 GB, free: 35.17 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/1.455, allocations: 4.897 MB / 0.84 GB, free: 30.74 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.408e-05/1.456, allocations: 48 kB / 0.84 GB, free: 30.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/1.456, allocations: 0 / 0.84 GB, free: 30.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-05/1.456, allocations: 19.83 kB / 0.84 GB, free: 30.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/1.473, allocations: 10.98 MB / 0.8507 GB, free: 19.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/1.473, allocations: 8 kB / 0.8508 GB, free: 19.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001903/1.475, allocations: 463.4 kB / 0.8512 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001957/1.477, allocations: 0.7006 MB / 0.8519 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002761/1.477, allocations: 35.83 kB / 0.8519 GB, free: 18.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/1.479, allocations: 2.338 MB / 0.8542 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/1.479, allocations: 11.94 kB / 0.8542 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00895/1.488, allocations: 8.248 MB / 0.8623 GB, free: 7.164 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008809/1.489, allocations: 348.8 kB / 0.8626 GB, free: 6.805 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004474/1.489, allocations: 16 kB / 0.8626 GB, free: 6.789 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/1.491, allocations: 115.9 kB / 0.8627 GB, free: 6.676 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/1.491, allocations: 173.5 kB / 0.8629 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/1.491, allocations: 89.14 kB / 0.863 GB, free: 6.422 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002268/1.494, allocations: 1.66 MB / 0.8646 GB, free: 4.762 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.81e-07/1.494, allocations: 3.938 kB / 0.8646 GB, free: 4.758 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005431/1.499, allocations: 0.9868 MB / 0.8656 GB, free: 3.777 MB / 0.4948 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.0005562/1.5, allocations: 172.2 kB / 0.8657 GB, free: 3.605 MB / 0.4948 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 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: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 4.0.0+maint.om/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.009631/1.509, allocations: 5.991 MB / 0.8716 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/1.509, allocations: 4 kB / 0.8716 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004922/1.514, allocations: 2.615 MB / 0.8741 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/1.517, allocations: 326.6 kB / 0.8744 GB, free: 10.65 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/1.537, allocations: 9.665 MB / 0.8839 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00535/1.542, allocations: 3.821 MB / 0.8876 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006039/1.548, allocations: 2.253 MB / 0.8898 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/1.549, allocations: 239.4 kB / 0.89 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of SimCode: time 1.653e-06/1.55, allocations: 0 / 0.89 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of Templates: time 0.3484/1.898, allocations: 35.59 MB / 0.9248 GB, free: 123.3 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches