Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 185.3 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.938/1.938, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001138/0.001138, allocations: 92.41 kB / 270.9 MB, free: 8.395 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.5311/0.5311, allocations: 43.55 MB / 362.7 MB, free: 51.83 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004562/0.0004562, allocations: 12 kB / 431.4 MB, free: 5.965 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1225, allocations: 58.85 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4784/0.601, allocations: 102.4 MB / 0.5787 GB, free: 180 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.6013, allocations: 75.95 kB / 0.5788 GB, free: 104 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3672/0.9686, allocations: 87.53 MB / 0.6643 GB, free: 7.934 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.55e-06/0.9686, allocations: 3.984 kB / 0.6643 GB, free: 7.93 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002034/0.9688, allocations: 76 kB / 0.6643 GB, free: 7.855 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: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.0154/0.9843, allocations: 3.882 MB / 0.6681 GB, free: 3.906 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.9843, allocations: 8.031 kB / 0.6681 GB, free: 3.898 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02872/1.013, allocations: 3.648 MB / 0.6717 GB, free: 244 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3531/1.366, allocations: 4.963 MB / 0.6765 GB, free: 95.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004446/1.367, allocations: 296.8 kB / 0.6768 GB, free: 95.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002726/1.369, allocations: 389.6 kB / 0.6772 GB, free: 95.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03036/1.4, allocations: 10.36 MB / 0.6873 GB, free: 93.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002191/1.4, allocations: 29.16 kB / 0.6873 GB, free: 93.92 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002074/1.402, allocations: 181.2 kB / 0.6875 GB, free: 93.92 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002486/1.405, allocations: 1.192 MB / 0.6887 GB, free: 93.91 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02704/1.432, allocations: 10.16 MB / 0.6986 GB, free: 93.87 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07471/1.507, allocations: 36.57 MB / 0.7343 GB, free: 73.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01212/1.519, allocations: 4.405 MB / 0.7386 GB, free: 71.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001579/1.52, allocations: 1.321 MB / 0.7399 GB, free: 70.04 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/1.52, allocations: 51.38 kB / 0.74 GB, free: 69.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 7.023e-06/1.52, allocations: 3 kB / 0.74 GB, free: 69.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=261): time 0.0643/1.585, allocations: 17.3 MB / 0.7569 GB, free: 63.97 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001377/1.586, allocations: 1.544 MB / 0.7584 GB, free: 62.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004818/1.591, allocations: 2.488 MB / 0.7608 GB, free: 61.54 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005912/1.592, allocations: 59.02 kB / 0.7608 GB, free: 61.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/1.594, allocations: 2.732 MB / 0.7635 GB, free: 59.35 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001432/1.595, allocations: 0.9563 MB / 0.7645 GB, free: 58.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006657/1.596, allocations: 108.8 kB / 0.7646 GB, free: 58.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003722/1.596, allocations: 0.556 MB / 0.7651 GB, free: 58.14 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005585/1.602, allocations: 2.435 MB / 0.7675 GB, free: 57.39 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008142/1.61, allocations: 5.466 MB / 0.7728 GB, free: 52.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008157/1.618, allocations: 3.644 MB / 0.7764 GB, free: 51.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.652e-05/1.618, allocations: 31.53 kB / 0.7764 GB, free: 51.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.03508/1.653, allocations: 9.424 MB / 0.7856 GB, free: 47.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.634e-05/1.653, allocations: 55.95 kB / 0.7857 GB, free: 47.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02236/1.676, allocations: 4.591 MB / 0.7901 GB, free: 44.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01908/1.695, allocations: 2.056 MB / 0.7921 GB, free: 43.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007752/1.703, allocations: 1.296 MB / 0.7934 GB, free: 42.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/1.714, allocations: 5.161 MB / 0.7985 GB, free: 37.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00647/1.72, allocations: 390.3 kB / 0.7988 GB, free: 37.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001343/1.722, allocations: 323.3 kB / 0.7991 GB, free: 36.78 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 482 * Number of states: 0 () * Number of discrete variables: 24 (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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (691): * Single equations (assignments): 679 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.005768/1.728, allocations: 2.122 MB / 0.8012 GB, free: 34.94 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007743/1.728, allocations: 280.3 kB / 0.8015 GB, free: 34.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01863/1.747, allocations: 5.384 MB / 0.8067 GB, free: 30.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01633/1.763, allocations: 4.644 MB / 0.8113 GB, free: 26.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.496e-05/1.764, allocations: 4.703 kB / 0.8113 GB, free: 26.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.783e-05/1.764, allocations: 11.2 kB / 0.8113 GB, free: 26.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0423/1.806, allocations: 14.65 MB / 0.8256 GB, free: 14.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.22e-05/1.806, allocations: 12.25 kB / 0.8256 GB, free: 14.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003744/1.81, allocations: 427.3 kB / 0.826 GB, free: 13.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007776/1.818, allocations: 1.185 MB / 0.8272 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007004/1.818, allocations: 64.81 kB / 0.8272 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006945/1.825, allocations: 4.53 MB / 0.8316 GB, free: 7.867 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001138/1.827, allocations: 1.491 MB / 0.8331 GB, free: 6.242 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02381/1.85, allocations: 8.854 MB / 0.8418 GB, free: 12.97 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/1.852, allocations: 333.4 kB / 0.8421 GB, free: 12.62 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001171/1.853, allocations: 55.98 kB / 0.8421 GB, free: 12.57 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003421/1.856, allocations: 195.7 kB / 0.8423 GB, free: 12.38 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009039/1.857, allocations: 172.8 kB / 0.8425 GB, free: 12.21 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003264/1.858, allocations: 79.97 kB / 0.8426 GB, free: 12.13 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004873/1.862, allocations: 1.701 MB / 0.8442 GB, free: 10.42 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.72e-07/1.862, allocations: 0 / 0.8442 GB, free: 10.42 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007124/1.87, allocations: 1.063 MB / 0.8453 GB, free: 9.363 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.001023/1.871, allocations: 214.3 kB / 0.8455 GB, free: 9.16 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01885/1.89, allocations: 6.485 MB / 0.8518 GB, free: 2.625 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/1.89, allocations: 0.8125 kB / 0.8518 GB, free: 2.625 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01033/1.9, allocations: 2.894 MB / 0.8546 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003216/1.903, allocations: 357.2 kB / 0.855 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03458/1.938, allocations: 13.05 MB / 0.8677 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3539/2.292, allocations: 3.398 MB / 0.871 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002099/2.294, allocations: 273.9 kB / 0.8713 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.042e-06/2.294, allocations: 0 / 0.8713 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.2172/2.511, allocations: 126.4 MB / 0.9947 GB, free: 59.64 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches