Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001368/0.001368, allocations: 176.7 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.3 MB / 213.7 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008978/0.0008977, allocations: 90.62 kB / 261.7 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2101/0.2101, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.47e-05/1.473e-05, allocations: 4 kB / 418.3 MB, free: 28.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1224, allocations: 58.85 MB / 477.1 MB, free: 1.617 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4279/0.5504, allocations: 108.4 MB / 0.5718 GB, free: 3.355 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.5507, allocations: 84.64 kB / 0.5718 GB, free: 3.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.236/0.7867, allocations: 97.58 MB / 0.6671 GB, free: 9.586 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.7867, allocations: 0 / 0.6671 GB, free: 9.586 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001602/0.7869, allocations: 96 kB / 0.6672 GB, free: 9.492 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01754/0.8044, allocations: 4.698 MB / 0.6718 GB, free: 4.727 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.8045, allocations: 8.031 kB / 0.6718 GB, free: 4.719 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01596/0.8205, allocations: 3.632 MB / 0.6754 GB, free: 1.074 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01411/0.8346, allocations: 4.925 MB / 0.6802 GB, free: 12.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.8349, allocations: 164 kB / 0.6803 GB, free: 11.94 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002397/0.8373, allocations: 299.9 kB / 0.6806 GB, free: 11.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01662/0.854, allocations: 8.521 MB / 0.6889 GB, free: 3.117 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02838/0.8824, allocations: 11.25 MB / 0.6999 GB, free: 7.336 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002104/0.8826, allocations: 35.66 kB / 0.7 GB, free: 7.301 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00129/0.8839, allocations: 16 kB / 0.7 GB, free: 7.285 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001919/0.8859, allocations: 1.33 MB / 0.7013 GB, free: 5.953 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3499/1.236, allocations: 39.9 MB / 0.7403 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005098/1.241, allocations: 4.363 MB / 0.7445 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002758/1.244, allocations: 2.322 MB / 0.7468 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001097/1.245, allocations: 1.653 MB / 0.7484 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/1.245, allocations: 59.44 kB / 0.7484 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=272): time 4.659e-06/1.245, allocations: 7.109 kB / 0.7485 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=291): time 0.0312/1.276, allocations: 17.09 MB / 0.7651 GB, free: 99.82 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/1.276, allocations: 105.8 kB / 0.7652 GB, free: 99.72 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003617/1.28, allocations: 2.6 MB / 0.7678 GB, free: 98.75 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002836/1.28, allocations: 25.7 kB / 0.7678 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001875/1.282, allocations: 3.322 MB / 0.7711 GB, free: 96.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/1.283, allocations: 1.05 MB / 0.7721 GB, free: 95.72 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/1.283, allocations: 2.703 kB / 0.7721 GB, free: 95.72 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003554/1.284, allocations: 0.5911 MB / 0.7727 GB, free: 95.29 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002839/1.287, allocations: 2.429 MB / 0.775 GB, free: 94.46 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004905/1.291, allocations: 6.042 MB / 0.7809 GB, free: 88.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005555/1.297, allocations: 3.861 MB / 0.7847 GB, free: 87.64 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001132/1.297, allocations: 38.28 kB / 0.7847 GB, free: 87.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=884) (initialization): time 0.0202/1.317, allocations: 9.58 MB / 0.7941 GB, free: 84.92 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-05/1.317, allocations: 66.03 kB / 0.7942 GB, free: 84.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001459/1.318, allocations: 130.3 kB / 0.7943 GB, free: 84.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008353/1.326, allocations: 2.347 MB / 0.7966 GB, free: 84.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005081/1.331, allocations: 1.479 MB / 0.798 GB, free: 84.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01331/1.344, allocations: 9.818 MB / 0.8076 GB, free: 76.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00499/1.349, allocations: 214.6 kB / 0.8078 GB, free: 76.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/1.351, allocations: 391.4 kB / 0.8082 GB, free: 76.42 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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.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.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: 586 * Number of states: 0 () * Number of discrete variables: 30 (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.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 (802): * Single equations (assignments): 794 * 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.001086/1.352, allocations: 444 kB / 0.8086 GB, free: 75.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004854/1.352, allocations: 311.9 kB / 0.8089 GB, free: 75.68 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006805/1.359, allocations: 4.993 MB / 0.8138 GB, free: 71.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.384e-05/1.359, allocations: 52.36 kB / 0.8138 GB, free: 71.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/1.359, allocations: 3.953 kB / 0.8138 GB, free: 71.47 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.402e-05/1.359, allocations: 11.3 kB / 0.8138 GB, free: 71.47 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/1.375, allocations: 11.17 MB / 0.8247 GB, free: 62.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/1.375, allocations: 8 kB / 0.8248 GB, free: 62.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/1.377, allocations: 485.4 kB / 0.8252 GB, free: 61.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00181/1.379, allocations: 0.6985 MB / 0.8259 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000181/1.379, allocations: 31.8 kB / 0.8259 GB, free: 61.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001978/1.381, allocations: 2.34 MB / 0.8282 GB, free: 59.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/1.381, allocations: 15.94 kB / 0.8282 GB, free: 59 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008525/1.39, allocations: 8.369 MB / 0.8364 GB, free: 51.06 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008685/1.39, allocations: 363.1 kB / 0.8368 GB, free: 50.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003635/1.391, allocations: 20 kB / 0.8368 GB, free: 50.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/1.392, allocations: 109.6 kB / 0.8369 GB, free: 50.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/1.392, allocations: 182.2 kB / 0.8371 GB, free: 50.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/1.393, allocations: 87.31 kB / 0.8371 GB, free: 50.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002291/1.395, allocations: 1.699 MB / 0.8388 GB, free: 48.94 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.395, allocations: 0 / 0.8388 GB, free: 48.94 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005091/1.4, allocations: 1.008 MB / 0.8398 GB, free: 47.94 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 (241): * Single equations (assignments): 232 * 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.0005138/1.401, allocations: 176 kB / 0.8399 GB, free: 47.77 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161: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 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable freeMotionScalarInit.angle_1 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:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.008651/1.409, allocations: 6.108 MB / 0.8459 GB, free: 42.26 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.409, allocations: 4.062 kB / 0.8459 GB, free: 42.26 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00369/1.413, allocations: 2.644 MB / 0.8485 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/1.415, allocations: 307.3 kB / 0.8488 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/1.431, allocations: 9.913 MB / 0.8585 GB, free: 30.69 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003508/1.435, allocations: 3.899 MB / 0.8623 GB, free: 27.72 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005152/1.44, allocations: 2.295 MB / 0.8645 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008885/1.441, allocations: 251.9 kB / 0.8648 GB, free: 26.04 MB / 0.4948 GB Notification: Performance of SimCode: time 1.874e-06/1.441, allocations: 0 / 0.8648 GB, free: 26.04 MB / 0.4948 GB Notification: Performance of Templates: time 0.06506/1.506, allocations: 35.91 MB / 0.8998 GB, free: 6.852 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit4/FreeMotionScalarInit4.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches