Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.002239/0.002239, allocations: 186 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.95/1.95, allocations: 205.4 MB / 222.5 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 104.3 kB / 270.9 MB, free: 8.387 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.5489/0.5489, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004482/0.0004481, allocations: 12 kB / 431.4 MB, free: 6.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.129, allocations: 58.85 MB / 490.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.6167, allocations: 109.1 MB / 0.5853 GB, free: 9.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.617, allocations: 75.97 kB / 0.5854 GB, free: 9.508 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7705/1.388, allocations: 99.39 MB / 0.6824 GB, free: 92.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.388, allocations: 0 / 0.6824 GB, free: 92.11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002259/1.388, allocations: 90.78 kB / 0.6825 GB, free: 92.11 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.02524/1.413, allocations: 4.861 MB / 0.6873 GB, free: 90.15 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/1.413, allocations: 16.42 kB / 0.6873 GB, free: 90.15 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02739/1.441, allocations: 3.623 MB / 0.6908 GB, free: 89.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01927/1.46, allocations: 4.96 MB / 0.6957 GB, free: 89.27 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005097/1.46, allocations: 380.1 kB / 0.696 GB, free: 89.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003262/1.464, allocations: 0.498 MB / 0.6965 GB, free: 89.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04016/1.504, allocations: 12.37 MB / 0.7086 GB, free: 87.72 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003293/1.504, allocations: 35 kB / 0.7086 GB, free: 87.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002838/1.507, allocations: 225.9 kB / 0.7089 GB, free: 87.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003393/1.511, allocations: 1.338 MB / 0.7102 GB, free: 87.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03656/1.547, allocations: 11.65 MB / 0.7215 GB, free: 87.28 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08299/1.63, allocations: 42.41 MB / 0.763 GB, free: 61.43 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01646/1.647, allocations: 5 MB / 0.7678 GB, free: 59.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01588/1.663, allocations: 6.94 MB / 0.7746 GB, free: 55.14 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/1.663, allocations: 58.84 kB / 0.7747 GB, free: 55.08 MB / 490.7 MB Notification: Performance of pre-optimization done (n=238): time 6.212e-06/1.663, allocations: 0 / 0.7747 GB, free: 55.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=259): time 0.08471/1.748, allocations: 19.6 MB / 0.7938 GB, free: 45.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/1.748, allocations: 73.41 kB / 0.7939 GB, free: 45.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006665/1.754, allocations: 2.865 MB / 0.7967 GB, free: 43.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005824/1.755, allocations: 65.14 kB / 0.7967 GB, free: 43.13 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002386/1.757, allocations: 3.292 MB / 0.8 GB, free: 40.17 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001433/1.759, allocations: 0.9695 MB / 0.8009 GB, free: 39.32 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008649/1.76, allocations: 127.8 kB / 0.801 GB, free: 39.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000554/1.76, allocations: 0.5764 MB / 0.8016 GB, free: 38.68 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006273/1.767, allocations: 2.473 MB / 0.804 GB, free: 36.58 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008456/1.775, allocations: 5.865 MB / 0.8097 GB, free: 29.51 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008598/1.784, allocations: 3.806 MB / 0.8134 GB, free: 26.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001063/1.784, allocations: 36 kB / 0.8135 GB, free: 26.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.03328/1.817, allocations: 10.01 MB / 0.8233 GB, free: 17.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.882e-05/1.817, allocations: 56 kB / 0.8233 GB, free: 17.63 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001965/1.818, allocations: 120 kB / 0.8234 GB, free: 17.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0163/1.834, allocations: 2.332 MB / 0.8257 GB, free: 16.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008244/1.842, allocations: 1.375 MB / 0.827 GB, free: 14.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02842/1.871, allocations: 11.1 MB / 0.8379 GB, free: 3.996 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006316/1.877, allocations: 329 kB / 0.8382 GB, free: 3.676 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/1.879, allocations: 360.6 kB / 0.8385 GB, free: 3.324 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 541 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 734 * 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 27} Notification: Performance of prepare postOptimizeDAE: time 0.006489/1.885, allocations: 2.452 MB / 0.8409 GB, free: 0.8633 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007936/1.886, allocations: 311.9 kB / 0.8412 GB, free: 0.5547 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01558/1.901, allocations: 4.679 MB / 0.8458 GB, free: 11.82 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001225/1.902, allocations: 53.7 kB / 0.8459 GB, free: 11.77 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/1.902, allocations: 4 kB / 0.8459 GB, free: 11.76 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.174e-05/1.902, allocations: 7.969 kB / 0.8459 GB, free: 11.75 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03593/1.938, allocations: 11.03 MB / 0.8566 GB, free: 0.6484 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.833e-05/1.938, allocations: 4.594 kB / 0.8566 GB, free: 0.6445 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004067/1.942, allocations: 431.3 kB / 0.857 GB, free: 232 kB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.36/2.302, allocations: 0.6866 MB / 0.8577 GB, free: 96.16 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006288/2.303, allocations: 55.11 kB / 0.8578 GB, free: 96.16 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0046/2.307, allocations: 2.442 MB / 0.8602 GB, free: 94.92 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.484e-05/2.307, allocations: 9.203 kB / 0.8602 GB, free: 94.92 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01919/2.326, allocations: 7.611 MB / 0.8676 GB, free: 93.94 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/2.328, allocations: 360 kB / 0.8679 GB, free: 93.84 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001406/2.329, allocations: 48.94 kB / 0.868 GB, free: 93.84 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003379/2.332, allocations: 139 kB / 0.8681 GB, free: 93.84 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000847/2.333, allocations: 144 kB / 0.8683 GB, free: 93.84 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002971/2.334, allocations: 73.84 kB / 0.8683 GB, free: 93.84 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005308/2.339, allocations: 1.947 MB / 0.8702 GB, free: 93.7 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.11e-07/2.339, allocations: 0 / 0.8702 GB, free: 93.7 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007361/2.346, allocations: 1.15 MB / 0.8714 GB, free: 93.7 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 203 * 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.001012/2.347, allocations: 199.7 kB / 0.8715 GB, free: 93.61 MB / 0.4949 GB [/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 can't be selected as a state. [/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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01536/2.363, allocations: 6.191 MB / 0.8776 GB, free: 93.43 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/2.363, allocations: 0 / 0.8776 GB, free: 93.43 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.007334/2.37, allocations: 2.556 MB / 0.8801 GB, free: 93.11 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003531/2.374, allocations: 432.1 kB / 0.8805 GB, free: 93.1 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03376/2.408, allocations: 14.15 MB / 0.8943 GB, free: 87.86 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01015/2.418, allocations: 3.914 MB / 0.8981 GB, free: 87.06 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002008/2.42, allocations: 294.3 kB / 0.8984 GB, free: 87.05 MB / 0.4949 GB Notification: Performance of SimCode: time 1.223e-06/2.42, allocations: 4 kB / 0.8984 GB, free: 87.05 MB / 0.4949 GB Notification: Performance of Templates: time 0.1994/2.619, allocations: 114.9 MB / 1.011 GB, free: 22.25 MB / 0.4949 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches