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.002037/0.002037, allocations: 181.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.03/3.03, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0007792/0.0007791, allocations: 96.08 kB / 271.9 MB, free: 8.262 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.3618/0.3618, allocations: 43.56 MB / 363.8 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004146/0.0004148, allocations: 15.98 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1748, allocations: 58.85 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3489/0.5237, allocations: 109.3 MB / 0.5867 GB, free: 9.066 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.524, allocations: 79.97 kB / 0.5867 GB, free: 8.988 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4309/0.9549, allocations: 98.32 MB / 0.6828 GB, free: 91.73 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.955, allocations: 0 / 0.6828 GB, free: 91.73 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001722/0.9552, allocations: 92.53 kB / 0.6829 GB, free: 91.73 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.01585/0.9711, allocations: 4.754 MB / 0.6875 GB, free: 89.77 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.9711, allocations: 10.19 kB / 0.6875 GB, free: 89.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01469/0.9858, allocations: 3.596 MB / 0.691 GB, free: 89.44 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009252/0.9951, allocations: 3.862 MB / 0.6948 GB, free: 88.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003568/0.9955, allocations: 381.2 kB / 0.6952 GB, free: 88.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002537/0.9981, allocations: 0.4972 MB / 0.6956 GB, free: 88.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02499/1.023, allocations: 12.3 MB / 0.7076 GB, free: 87.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000269/1.023, allocations: 36.27 kB / 0.7077 GB, free: 87.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00148/1.025, allocations: 234 kB / 0.7079 GB, free: 87.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001873/1.027, allocations: 1.34 MB / 0.7092 GB, free: 87.28 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02481/1.052, allocations: 11.53 MB / 0.7205 GB, free: 87.13 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05367/1.105, allocations: 42.35 MB / 0.7618 GB, free: 61.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009046/1.114, allocations: 5.001 MB / 0.7667 GB, free: 59 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002854/1.117, allocations: 2.416 MB / 0.7691 GB, free: 58.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008951/1.126, allocations: 6.899 MB / 0.7758 GB, free: 54.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/1.126, allocations: 51.94 kB / 0.7759 GB, free: 54.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=238): time 5.811e-06/1.126, allocations: 0 / 0.7759 GB, free: 54.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=259): time 0.04313/1.17, allocations: 19.08 MB / 0.7945 GB, free: 45.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/1.17, allocations: 73.41 kB / 0.7946 GB, free: 45.01 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004078/1.174, allocations: 3.208 MB / 0.7977 GB, free: 42.32 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003344/1.174, allocations: 60.28 kB / 0.7978 GB, free: 42.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/1.175, allocations: 3.316 MB / 0.801 GB, free: 39.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008712/1.176, allocations: 0.9683 MB / 0.8019 GB, free: 38.44 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000258/1.177, allocations: 120 kB / 0.8021 GB, free: 38.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002914/1.177, allocations: 0.572 MB / 0.8026 GB, free: 37.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003134/1.18, allocations: 2.477 MB / 0.805 GB, free: 35.71 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004173/1.184, allocations: 5.891 MB / 0.8108 GB, free: 28.62 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008337/1.193, allocations: 9.113 MB / 0.8197 GB, free: 18.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.412e-05/1.193, allocations: 32 kB / 0.8197 GB, free: 18.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.01823/1.211, allocations: 10.1 MB / 0.8296 GB, free: 9.953 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.246e-05/1.211, allocations: 52 kB / 0.8296 GB, free: 9.902 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/1.211, allocations: 120 kB / 0.8297 GB, free: 9.785 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007719/1.219, allocations: 2.314 MB / 0.832 GB, free: 8.297 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004247/1.223, allocations: 1.37 MB / 0.8333 GB, free: 7.105 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01522/1.238, allocations: 10.67 MB / 0.8438 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/1.243, allocations: 333.4 kB / 0.8441 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009734/1.244, allocations: 356.7 kB / 0.8444 GB, free: 12.34 MB / 0.4948 GB 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.005063/1.249, allocations: 2.454 MB / 0.8468 GB, free: 9.883 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005981/1.25, allocations: 312 kB / 0.8471 GB, free: 9.574 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007871/1.257, allocations: 4.672 MB / 0.8517 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.179e-05/1.258, allocations: 49.55 kB / 0.8517 GB, free: 4.797 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/1.258, allocations: 4 kB / 0.8517 GB, free: 4.793 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/1.258, allocations: 11.95 kB / 0.8517 GB, free: 4.781 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02292/1.281, allocations: 11.02 MB / 0.8625 GB, free: 9.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/1.281, allocations: 4 kB / 0.8625 GB, free: 9.676 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001823/1.282, allocations: 431.4 kB / 0.8629 GB, free: 9.254 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/1.284, allocations: 0.6973 MB / 0.8636 GB, free: 8.551 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002631/1.285, allocations: 52.69 kB / 0.8636 GB, free: 8.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002618/1.287, allocations: 2.424 MB / 0.866 GB, free: 5.941 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/1.287, allocations: 7.938 kB / 0.866 GB, free: 5.934 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2437/1.531, allocations: 7.187 MB / 0.873 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/1.532, allocations: 355.3 kB / 0.8734 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008632/1.533, allocations: 53.39 kB / 0.8734 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/1.535, allocations: 141.5 kB / 0.8736 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000437/1.535, allocations: 146.5 kB / 0.8737 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/1.535, allocations: 68.86 kB / 0.8738 GB, free: 111 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003753/1.539, allocations: 1.951 MB / 0.8757 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.61e-07/1.539, allocations: 1.156 kB / 0.8757 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005777/1.545, allocations: 1.149 MB / 0.8768 GB, free: 110.9 MB / 0.5105 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.0005673/1.546, allocations: 203 kB / 0.877 GB, free: 110.8 MB / 0.5105 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.009867/1.555, allocations: 6.19 MB / 0.883 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.556, allocations: 3.188 kB / 0.883 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003832/1.559, allocations: 2.552 MB / 0.8855 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005057/1.564, allocations: 455 kB / 0.886 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02476/1.589, allocations: 14.2 MB / 0.8998 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005604/1.595, allocations: 3.806 MB / 0.9035 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/1.596, allocations: 295.2 kB / 0.9038 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.022e-06/1.596, allocations: 3.062 kB / 0.9038 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.1429/1.739, allocations: 120.1 MB / 1.021 GB, free: 40.07 MB / 0.5105 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