Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 170.4 kB / 8.74 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.487/1.487, allocations: 221.5 MB / 230.7 MB, free: 7.508 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.0008249/0.0008246, allocations: 82 kB / 281.6 MB, free: 5.262 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.2125/0.2125, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.578e-05, allocations: 4 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1442, allocations: 61.92 MB / 0.4947 GB, free: 1.242 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4923/0.6366, allocations: 109.7 MB / 0.6018 GB, free: 2.809 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.6369, allocations: 75.95 kB / 0.6018 GB, free: 2.734 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5878/1.225, allocations: 115.8 MB / 0.7149 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.074e-06/1.225, allocations: 3 kB / 0.7149 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006175/1.225, allocations: 119.8 kB / 0.715 GB, free: 106.5 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.0258/1.251, allocations: 5.85 MB / 0.7207 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/1.251, allocations: 15.95 kB / 0.7207 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02889/1.28, allocations: 6.975 MB / 0.7275 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01996/1.3, allocations: 7.425 MB / 0.7348 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003785/1.301, allocations: 186.6 kB / 0.735 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003109/1.304, allocations: 341.2 kB / 0.7353 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01697/1.321, allocations: 8.006 MB / 0.7431 GB, free: 103 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02923/1.35, allocations: 12.17 MB / 0.755 GB, free: 98.12 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005356/1.351, allocations: 84.28 kB / 0.7551 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002978/1.354, allocations: 42.3 kB / 0.7551 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001972/1.356, allocations: 1.286 MB / 0.7564 GB, free: 97.87 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06788/1.424, allocations: 58.74 MB / 0.8137 GB, free: 54.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005271/1.429, allocations: 4.802 MB / 0.8184 GB, free: 49.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003206/1.432, allocations: 3.173 MB / 0.8215 GB, free: 46.84 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006038/1.433, allocations: 0.6782 MB / 0.8222 GB, free: 46.12 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/1.433, allocations: 56.56 kB / 0.8222 GB, free: 46.05 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 4.96e-06/1.433, allocations: 0 / 0.8222 GB, free: 46.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=315): time 0.0608/1.494, allocations: 29.37 MB / 0.8509 GB, free: 20.85 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/1.494, allocations: 268.9 kB / 0.8512 GB, free: 20.54 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006523/1.5, allocations: 3.856 MB / 0.8549 GB, free: 16.84 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001141/1.501, allocations: 29.64 kB / 0.855 GB, free: 16.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002365/1.504, allocations: 4.033 MB / 0.8589 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001581/1.505, allocations: 1.133 MB / 0.86 GB, free: 11.56 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005241/1.506, allocations: 4 kB / 0.86 GB, free: 11.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003718/1.506, allocations: 0.6365 MB / 0.8606 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003729/1.51, allocations: 3.143 MB / 0.8637 GB, free: 7.773 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006251/1.516, allocations: 7.412 MB / 0.8709 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007559/1.524, allocations: 4.777 MB / 0.8756 GB, free: 9.449 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001491/1.524, allocations: 44 kB / 0.8757 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1013) (initialization): time 0.02721/1.551, allocations: 11.52 MB / 0.8869 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002409/1.552, allocations: 73.41 kB / 0.887 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00032/1.552, allocations: 148 kB / 0.8871 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005994/1.558, allocations: 2.156 MB / 0.8892 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00707/1.565, allocations: 1.778 MB / 0.891 GB, free: 9.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3581/1.923, allocations: 13.18 MB / 0.9038 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007056/1.93, allocations: 304.1 kB / 0.9041 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003028/1.933, allocations: 459.9 kB / 0.9046 GB, free: 119.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (937): * Single equations (assignments): 932 * Array equations: 3 * 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: 2 {(6,55.6%) 21,(6,55.6%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004083/1.938, allocations: 0.4934 MB / 0.905 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001785/1.939, allocations: 448.7 kB / 0.9055 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01532/1.955, allocations: 6.753 MB / 0.9121 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.567e-05/1.955, allocations: 36.45 kB / 0.9121 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.15e-05/1.955, allocations: 10 kB / 0.9121 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.75e-05/1.955, allocations: 15.61 kB / 0.9121 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03301/1.988, allocations: 14.65 MB / 0.9264 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.948e-05/1.988, allocations: 7.688 kB / 0.9264 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002689/1.991, allocations: 499.4 kB / 0.9269 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004648/1.995, allocations: 1.864 MB / 0.9287 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006722/1.996, allocations: 11.38 kB / 0.9288 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/2.011, allocations: 11.94 MB / 0.9404 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-05/2.011, allocations: 11.66 kB / 0.9404 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01811/2.03, allocations: 11.73 MB / 0.9519 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001874/2.031, allocations: 490.7 kB / 0.9523 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001881/2.033, allocations: 11.75 kB / 0.9524 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004342/2.038, allocations: 165.8 kB / 0.9525 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009254/2.039, allocations: 204.2 kB / 0.9527 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005728/2.039, allocations: 86.59 kB / 0.9528 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006447/2.046, allocations: 2.615 MB / 0.9553 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.032e-06/2.046, allocations: 0 / 0.9553 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01128/2.057, allocations: 1.268 MB / 0.9566 GB, free: 107.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * Array equations: 3 * 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: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002109/2.059, allocations: 174.3 kB / 0.9567 GB, free: 107 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0182/2.077, allocations: 8.154 MB / 0.9647 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/2.078, allocations: 3.719 kB / 0.9647 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007573/2.085, allocations: 3.78 MB / 0.9684 GB, free: 103 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004435/2.09, allocations: 0.5177 MB / 0.9689 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02904/2.119, allocations: 11.9 MB / 0.9805 GB, free: 98.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009272/2.128, allocations: 4.441 MB / 0.9849 GB, free: 96.94 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007615/2.136, allocations: 2.483 MB / 0.9873 GB, free: 96.78 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001857/2.138, allocations: 332.8 kB / 0.9876 GB, free: 96.77 MB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/2.138, allocations: 3.812 kB / 0.9876 GB, free: 96.77 MB / 0.5261 GB Notification: Performance of Templates: time 0.1296/2.267, allocations: 53.95 MB / 1.04 GB, free: 52.95 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches