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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 179.4 kB / 8.517 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.4 MB / 230.3 MB, free: 7.738 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.001174/0.001174, allocations: 92.67 kB / 281.2 MB, free: 5.477 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.1652/0.1652, allocations: 44.14 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.504e-06/7.545e-06, allocations: 4 kB / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 61.91 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.297/0.411, allocations: 109.6 MB / 0.6011 GB, free: 3.199 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.4113, allocations: 79.95 kB / 0.6012 GB, free: 3.121 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4648/0.8761, allocations: 114.4 MB / 0.7129 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002735/0.8764, allocations: 121.5 kB / 0.713 GB, free: 105.3 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.01461/0.891, allocations: 5.805 MB / 0.7186 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.8911, allocations: 10.84 kB / 0.7187 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02489/0.916, allocations: 6.607 MB / 0.7251 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01697/0.933, allocations: 7.514 MB / 0.7324 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002829/0.9333, allocations: 181.8 kB / 0.7326 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002175/0.9355, allocations: 344.5 kB / 0.7329 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01342/0.9489, allocations: 8.258 MB / 0.741 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02051/0.9695, allocations: 12.41 MB / 0.7531 GB, free: 97.46 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002628/0.9698, allocations: 92.95 kB / 0.7532 GB, free: 97.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001074/0.9708, allocations: 34.38 kB / 0.7532 GB, free: 97.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00129/0.9721, allocations: 1.369 MB / 0.7546 GB, free: 97.21 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05849/1.031, allocations: 59.99 MB / 0.8132 GB, free: 53.36 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005386/1.036, allocations: 5.017 MB / 0.8181 GB, free: 48.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003366/1.039, allocations: 3.497 MB / 0.8215 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01441/1.054, allocations: 9.637 MB / 0.8309 GB, free: 37.33 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/1.054, allocations: 64.5 kB / 0.831 GB, free: 37.26 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=239): time 5.42e-06/1.054, allocations: 0 / 0.831 GB, free: 37.26 MB / 0.4948 GB Notification: Performance of matching and sorting (n=306): time 0.0581/1.112, allocations: 28.21 MB / 0.8585 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/1.112, allocations: 261.3 kB / 0.8588 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005296/1.118, allocations: 3.92 MB / 0.8626 GB, free: 8.195 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000649/1.118, allocations: 25.7 kB / 0.8626 GB, free: 8.164 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001494/1.12, allocations: 3.627 MB / 0.8662 GB, free: 4.48 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001157/1.121, allocations: 1.106 MB / 0.8672 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003302/1.121, allocations: 4 kB / 0.8672 GB, free: 3.355 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002926/1.121, allocations: 0.6363 MB / 0.8679 GB, free: 2.715 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003699/1.125, allocations: 3.166 MB / 0.871 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007172/1.132, allocations: 7.419 MB / 0.8782 GB, free: 6.004 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007998/1.14, allocations: 4.848 MB / 0.8829 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/1.141, allocations: 44 kB / 0.883 GB, free: 1.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.02533/1.166, allocations: 11.4 MB / 0.8941 GB, free: 5.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/1.166, allocations: 4 kB / 0.8941 GB, free: 5.656 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000185/1.166, allocations: 152 kB / 0.8943 GB, free: 5.508 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005711/1.172, allocations: 2.093 MB / 0.8963 GB, free: 3.414 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006813/1.179, allocations: 1.723 MB / 0.898 GB, free: 1.688 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2033/1.382, allocations: 13.19 MB / 0.9109 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006091/1.388, allocations: 245.5 kB / 0.9111 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/1.389, allocations: 460.7 kB / 0.9115 GB, free: 171.6 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 (928): * Single equations (assignments): 923 * 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%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00108/1.391, allocations: 497.2 kB / 0.912 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008169/1.391, allocations: 447.9 kB / 0.9124 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/1.402, allocations: 6.675 MB / 0.919 GB, free: 171.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.633e-05/1.402, allocations: 31.56 kB / 0.919 GB, free: 171.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/1.402, allocations: 9.562 kB / 0.919 GB, free: 171.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-05/1.402, allocations: 18.52 kB / 0.919 GB, free: 171.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02552/1.428, allocations: 14.14 MB / 0.9328 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/1.428, allocations: 6.5 kB / 0.9328 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/1.43, allocations: 462.5 kB / 0.9333 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004544/1.434, allocations: 1.77 MB / 0.935 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000407/1.435, allocations: 20.17 kB / 0.935 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01423/1.449, allocations: 11.43 MB / 0.9462 GB, free: 164.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/1.449, allocations: 11.81 kB / 0.9462 GB, free: 164.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01538/1.465, allocations: 11.63 MB / 0.9575 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.466, allocations: 486.4 kB / 0.958 GB, free: 158.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008279/1.467, allocations: 17.78 kB / 0.958 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/1.469, allocations: 113.8 kB / 0.9581 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003581/1.47, allocations: 155.3 kB / 0.9583 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/1.47, allocations: 84.72 kB / 0.9584 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.005019/1.475, allocations: 2.663 MB / 0.961 GB, free: 157.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00817/1.483, allocations: 1.245 MB / 0.9622 GB, free: 157.8 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 (244): * Single equations (assignments): 239 * 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%) 18,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007914/1.484, allocations: 170.1 kB / 0.9623 GB, free: 157.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01379/1.498, allocations: 8.228 MB / 0.9704 GB, free: 155.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.498, allocations: 3.969 kB / 0.9704 GB, free: 155.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006265/1.504, allocations: 3.444 MB / 0.9737 GB, free: 153.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/1.507, allocations: 0.4962 MB / 0.9742 GB, free: 153.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02612/1.533, allocations: 11.96 MB / 0.9859 GB, free: 149.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008946/1.542, allocations: 4.778 MB / 0.9906 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.082e-06/1.542, allocations: 0 / 0.9906 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.1039/1.646, allocations: 59.22 MB / 1.048 GB, free: 98.28 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