Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 169.5 kB / 8.738 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.5 MB / 230.7 MB, free: 7.504 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000868/0.0008681, allocations: 94.11 kB / 281.6 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1927/0.1927, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.677e-05/1.679e-05, allocations: 4.219 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1284, allocations: 61.91 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4662/0.5947, allocations: 102.8 MB / 0.5951 GB, free: 9.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.595, allocations: 75.95 kB / 0.5951 GB, free: 9.605 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2197/0.8147, allocations: 85.01 MB / 0.6782 GB, free: 3.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.8148, allocations: 4 kB / 0.6782 GB, free: 3.906 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002011/0.815, allocations: 64 kB / 0.6782 GB, free: 3.844 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: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.01328/0.8283, allocations: 3.615 MB / 0.6817 GB, free: 172 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.8283, allocations: 15.98 kB / 0.6818 GB, free: 156 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01656/0.8449, allocations: 3.625 MB / 0.6853 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01469/0.8596, allocations: 4.756 MB / 0.6899 GB, free: 7.707 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004921/0.8602, allocations: 120 kB / 0.6901 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00326/0.8635, allocations: 212 kB / 0.6903 GB, free: 7.383 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01341/0.8769, allocations: 7.071 MB / 0.6972 GB, free: 316 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3677/1.245, allocations: 9.33 MB / 0.7063 GB, free: 119.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002262/1.245, allocations: 26.88 kB / 0.7063 GB, free: 119.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001115/1.246, allocations: 14.12 kB / 0.7063 GB, free: 119.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001983/1.248, allocations: 1.163 MB / 0.7075 GB, free: 119.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05743/1.305, allocations: 33.37 MB / 0.74 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004556/1.31, allocations: 3.948 MB / 0.7439 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002624/1.313, allocations: 2.085 MB / 0.7459 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001028/1.314, allocations: 1.324 MB / 0.7472 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/1.314, allocations: 52.72 kB / 0.7473 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=238): time 4.468e-06/1.314, allocations: 0 / 0.7473 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=256): time 0.03733/1.351, allocations: 15.46 MB / 0.7624 GB, free: 95.59 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/1.351, allocations: 72.41 kB / 0.7624 GB, free: 95.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/1.355, allocations: 2.325 MB / 0.7647 GB, free: 94.66 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006164/1.355, allocations: 25.7 kB / 0.7647 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001441/1.357, allocations: 2.755 MB / 0.7674 GB, free: 92.67 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001086/1.358, allocations: 0.915 MB / 0.7683 GB, free: 91.98 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002032/1.358, allocations: 0 / 0.7683 GB, free: 91.98 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002835/1.359, allocations: 0.5583 MB / 0.7689 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002583/1.361, allocations: 2.319 MB / 0.7711 GB, free: 90.81 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003963/1.365, allocations: 5.492 MB / 0.7765 GB, free: 85.79 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004226/1.369, allocations: 3.603 MB / 0.78 GB, free: 84.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.045e-05/1.369, allocations: 31.06 kB / 0.78 GB, free: 84.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=777) (initialization): time 0.01915/1.389, allocations: 8.854 MB / 0.7887 GB, free: 80.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.243e-05/1.389, allocations: 59.52 kB / 0.7887 GB, free: 80.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01176/1.4, allocations: 4.428 MB / 0.7931 GB, free: 77.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/1.411, allocations: 2.053 MB / 0.7951 GB, free: 76.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/1.415, allocations: 1.331 MB / 0.7964 GB, free: 74.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005431/1.421, allocations: 4.794 MB / 0.8011 GB, free: 70.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004801/1.425, allocations: 291.3 kB / 0.8013 GB, free: 70.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.427, allocations: 339.9 kB / 0.8017 GB, free: 70.09 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 26 (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.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (715): * Single equations (assignments): 703 * 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.000995/1.428, allocations: 394.8 kB / 0.802 GB, free: 69.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005963/1.428, allocations: 280.3 kB / 0.8023 GB, free: 69.43 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008628/1.437, allocations: 5.152 MB / 0.8073 GB, free: 65.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007669/1.445, allocations: 4.455 MB / 0.8117 GB, free: 61.68 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/1.445, allocations: 4 kB / 0.8117 GB, free: 61.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.593e-05/1.445, allocations: 10.08 kB / 0.8117 GB, free: 61.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02072/1.465, allocations: 13.35 MB / 0.8247 GB, free: 49.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/1.465, allocations: 8 kB / 0.8247 GB, free: 49.63 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/1.467, allocations: 411.3 kB / 0.8251 GB, free: 49.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004065/1.471, allocations: 1.186 MB / 0.8263 GB, free: 48.03 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000389/1.472, allocations: 27.97 kB / 0.8263 GB, free: 48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003606/1.475, allocations: 4.337 MB / 0.8306 GB, free: 43.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006694/1.476, allocations: 1.4 MB / 0.8319 GB, free: 41.92 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01182/1.488, allocations: 8.652 MB / 0.8404 GB, free: 32.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009745/1.489, allocations: 333.5 kB / 0.8407 GB, free: 32.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003528/1.489, allocations: 23.98 kB / 0.8407 GB, free: 32.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/1.491, allocations: 155.8 kB / 0.8409 GB, free: 32.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000278/1.491, allocations: 168.8 kB / 0.841 GB, free: 32.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/1.491, allocations: 91.06 kB / 0.8411 GB, free: 32.07 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002025/1.493, allocations: 1.52 MB / 0.8426 GB, free: 30.55 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.7e-07/1.493, allocations: 3.938 kB / 0.8426 GB, free: 30.54 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00419/1.497, allocations: 0.9472 MB / 0.8435 GB, free: 29.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 186 * 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.0004443/1.498, allocations: 166 kB / 0.8437 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008326/1.506, allocations: 6.175 MB / 0.8497 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/1.506, allocations: 0 / 0.8497 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004222/1.51, allocations: 2.788 MB / 0.8524 GB, free: 20.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/1.512, allocations: 260.2 kB / 0.8527 GB, free: 20.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/1.526, allocations: 8.911 MB / 0.8614 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002978/1.529, allocations: 3.323 MB / 0.8646 GB, free: 7.738 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004369/1.533, allocations: 2.185 MB / 0.8668 GB, free: 5.551 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006792/1.534, allocations: 219.4 kB / 0.867 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of SimCode: time 1.172e-06/1.534, allocations: 0 / 0.867 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of Templates: time 0.3528/1.887, allocations: 30.49 MB / 0.8967 GB, free: 119 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches