Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.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.FreeMotionScalarInit5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit1.r_rel_a_1|freeMotionScalarInit1.r_rel_a_2|freeMotionScalarInit1.r_rel_a_3|freeMotionScalarInit1.v_rel_a_1|freeMotionScalarInit1.v_rel_a_2|freeMotionScalarInit1.v_rel_a_3|freeMotionScalarInit2.angle_1|freeMotionScalarInit2.angle_2|freeMotionScalarInit2.angle_3|freeMotionScalarInit2.angle_d_1|freeMotionScalarInit2.angle_d_2|freeMotionScalarInit2.angle_d_3",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit1.r_rel_a_1|freeMotionScalarInit1.r_rel_a_2|freeMotionScalarInit1.r_rel_a_3|freeMotionScalarInit1.v_rel_a_1|freeMotionScalarInit1.v_rel_a_2|freeMotionScalarInit1.v_rel_a_3|freeMotionScalarInit2.angle_1|freeMotionScalarInit2.angle_2|freeMotionScalarInit2.angle_3|freeMotionScalarInit2.angle_d_1|freeMotionScalarInit2.angle_d_2|freeMotionScalarInit2.angle_d_3",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001355/0.001356, allocations: 180.5 kB / 17.41 MB, free: 4.406 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.383/1.383, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.000789/0.0007891, allocations: 89.36 kB / 271.9 MB, free: 8.25 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.2994/0.2994, allocations: 43.55 MB / 363.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003319, allocations: 12 kB / 432.6 MB, free: 5.898 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1041, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3596/0.4637, allocations: 104.7 MB / 0.5822 GB, free: 13.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/0.4641, allocations: 79.95 kB / 0.5823 GB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4181/0.8822, allocations: 94.52 MB / 0.6746 GB, free: 90.61 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.998e-06/0.8823, allocations: 0 / 0.6746 GB, free: 90.61 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002327/0.8825, allocations: 91.45 kB / 0.6747 GB, free: 90.61 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: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.01729/0.8998, allocations: 4.549 MB / 0.6791 GB, free: 89.84 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.8999, allocations: 10.44 kB / 0.6791 GB, free: 89.84 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01522/0.9151, allocations: 3.562 MB / 0.6826 GB, free: 89.53 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009823/0.925, allocations: 3.767 MB / 0.6863 GB, free: 89.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005258/0.9256, allocations: 359.7 kB / 0.6866 GB, free: 89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002693/0.9283, allocations: 472.3 kB / 0.6871 GB, free: 89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.027/0.9553, allocations: 11.45 MB / 0.6983 GB, free: 87.64 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002648/0.9556, allocations: 30.19 kB / 0.6983 GB, free: 87.64 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002007/0.9576, allocations: 211.9 kB / 0.6985 GB, free: 87.64 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001532/0.9592, allocations: 1.249 MB / 0.6997 GB, free: 87.62 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02091/0.9801, allocations: 10.89 MB / 0.7103 GB, free: 87.58 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06015/1.04, allocations: 38.54 MB / 0.748 GB, free: 66.42 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007321/1.048, allocations: 4.383 MB / 0.7523 GB, free: 64.26 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002608/1.05, allocations: 2.162 MB / 0.7544 GB, free: 63.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009086/1.051, allocations: 1.323 MB / 0.7557 GB, free: 62.26 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/1.051, allocations: 51.44 kB / 0.7557 GB, free: 62.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=244): time 6.773e-06/1.051, allocations: 0 / 0.7557 GB, free: 62.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=265): time 0.0361/1.087, allocations: 13.77 MB / 0.7692 GB, free: 58.06 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/1.087, allocations: 79.81 kB / 0.7692 GB, free: 57.99 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005249/1.093, allocations: 2.997 MB / 0.7722 GB, free: 56.86 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005426/1.093, allocations: 56.98 kB / 0.7722 GB, free: 56.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001908/1.095, allocations: 3.111 MB / 0.7752 GB, free: 54.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001333/1.097, allocations: 0.9784 MB / 0.7762 GB, free: 53.71 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007776/1.097, allocations: 116.3 kB / 0.7763 GB, free: 53.62 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000615/1.098, allocations: 0.561 MB / 0.7769 GB, free: 53.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003989/1.102, allocations: 2.37 MB / 0.7792 GB, free: 52.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006052/1.108, allocations: 5.682 MB / 0.7847 GB, free: 47.26 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009748/1.118, allocations: 8.841 MB / 0.7934 GB, free: 40.05 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001402/1.118, allocations: 36 kB / 0.7934 GB, free: 40.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=796) (initialization): time 0.01589/1.134, allocations: 8.738 MB / 0.8019 GB, free: 32.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/1.134, allocations: 56 kB / 0.802 GB, free: 32.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002031/1.134, allocations: 123.4 kB / 0.8021 GB, free: 32.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003265/1.138, allocations: 1.044 MB / 0.8031 GB, free: 31.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004511/1.142, allocations: 1.374 MB / 0.8045 GB, free: 30.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/1.145, allocations: 2.476 MB / 0.8069 GB, free: 28.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004198/1.149, allocations: 315.5 kB / 0.8072 GB, free: 27.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/1.15, allocations: 355.8 kB / 0.8075 GB, free: 27.49 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * Number of states: 0 () * Number of discrete variables: 27 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (743): * 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): 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 prepare postOptimizeDAE: time 0.005214/1.155, allocations: 2.367 MB / 0.8098 GB, free: 25.43 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007306/1.156, allocations: 311 kB / 0.8101 GB, free: 25.13 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009337/1.165, allocations: 5.08 MB / 0.8151 GB, free: 20.95 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.629e-05/1.165, allocations: 51.75 kB / 0.8151 GB, free: 20.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/1.165, allocations: 0 / 0.8151 GB, free: 20.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.432e-05/1.165, allocations: 7.734 kB / 0.8151 GB, free: 20.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0214/1.187, allocations: 11.81 MB / 0.8267 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/1.187, allocations: 5.969 kB / 0.8267 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/1.189, allocations: 430.3 kB / 0.8271 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002894/1.192, allocations: 0.912 MB / 0.828 GB, free: 10.15 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003454/1.192, allocations: 55.56 kB / 0.828 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/1.194, allocations: 2.273 MB / 0.8303 GB, free: 7.965 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/1.194, allocations: 11.94 kB / 0.8303 GB, free: 7.953 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01099/1.205, allocations: 7.534 MB / 0.8376 GB, free: 1.285 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008685/1.206, allocations: 341.1 kB / 0.8379 GB, free: 0.9297 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007173/1.207, allocations: 51.98 kB / 0.838 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/1.208, allocations: 143.1 kB / 0.8381 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003289/1.209, allocations: 161.5 kB / 0.8383 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/1.209, allocations: 75.98 kB / 0.8384 GB, free: 0.5117 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003523/1.212, allocations: 1.82 MB / 0.8401 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/1.212, allocations: 0 / 0.8401 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005726/1.218, allocations: 1.046 MB / 0.8412 GB, free: 13.65 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_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 (216): * Single equations (assignments): 207 * 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.0007286/1.219, allocations: 193.2 kB / 0.8413 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01157/1.231, allocations: 6.232 MB / 0.8474 GB, free: 7.191 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.231, allocations: 0 / 0.8474 GB, free: 7.191 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004798/1.235, allocations: 2.603 MB / 0.85 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005398/1.241, allocations: 497.1 kB / 0.8504 GB, free: 4.082 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02216/1.263, allocations: 14.1 MB / 0.8642 GB, free: 5.934 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004217/1.267, allocations: 3.675 MB / 0.8678 GB, free: 2.254 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/1.269, allocations: 302.2 kB / 0.8681 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of SimCode: time 9.42e-07/1.269, allocations: 4 kB / 0.8681 GB, free: 1.957 MB / 0.5105 GB Notification: Performance of Templates: time 0.3234/1.592, allocations: 126.1 MB / 0.9913 GB, free: 59.4 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit5/FreeMotionScalarInit5.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches