Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") [: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.001033/0.001033, allocations: 175.6 kB / 8.517 MB, free: 1.859 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.25/1.25, allocations: 221.4 MB / 230.3 MB, free: 7.68 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.001007/0.001006, allocations: 92.84 kB / 281.2 MB, free: 5.492 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.2077/0.2077, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.264e-06/7.294e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 61.91 MB / 0.4941 GB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3709/0.491, allocations: 106.9 MB / 0.5985 GB, free: 5.895 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.4913, allocations: 75.95 kB / 0.5986 GB, free: 5.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4856/0.9769, allocations: 112.2 MB / 0.7082 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001999/0.9772, allocations: 82.12 kB / 0.7082 GB, free: 115.1 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01107/0.9882, allocations: 4.281 MB / 0.7124 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.9883, allocations: 13.66 kB / 0.7124 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01389/1.002, allocations: 2.906 MB / 0.7153 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01171/1.014, allocations: 4.653 MB / 0.7198 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/1.014, allocations: 155.6 kB / 0.72 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/1.016, allocations: 276 kB / 0.7202 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01177/1.028, allocations: 8.42 MB / 0.7284 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01726/1.045, allocations: 11.06 MB / 0.7392 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001465/1.045, allocations: 36.59 kB / 0.7393 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005991/1.046, allocations: 14.97 kB / 0.7393 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001537/1.047, allocations: 1.413 MB / 0.7407 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0527/1.1, allocations: 38.86 MB / 0.7786 GB, free: 88.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004675/1.105, allocations: 3.056 MB / 0.7816 GB, free: 86.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003194/1.108, allocations: 2.494 MB / 0.784 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/1.122, allocations: 9.861 MB / 0.7937 GB, free: 77.94 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/1.122, allocations: 60.53 kB / 0.7937 GB, free: 77.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=218): time 5.15e-06/1.122, allocations: 4 kB / 0.7937 GB, free: 77.87 MB / 0.4948 GB Notification: Performance of matching and sorting (n=245): time 0.03054/1.152, allocations: 16.44 MB / 0.8098 GB, free: 63.73 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/1.152, allocations: 69.41 kB / 0.8099 GB, free: 63.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/1.157, allocations: 2.829 MB / 0.8126 GB, free: 61.16 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003453/1.157, allocations: 28.94 kB / 0.8127 GB, free: 61.13 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001563/1.159, allocations: 3.168 MB / 0.8157 GB, free: 58.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001022/1.16, allocations: 0.8814 MB / 0.8166 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002729/1.16, allocations: 0 / 0.8166 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003403/1.16, allocations: 0.5786 MB / 0.8172 GB, free: 56.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003021/1.164, allocations: 2.516 MB / 0.8196 GB, free: 54.72 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004432/1.168, allocations: 6.001 MB / 0.8255 GB, free: 47.36 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005007/1.173, allocations: 3.954 MB / 0.8294 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.288e-05/1.173, allocations: 36.8 kB / 0.8294 GB, free: 43.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=842) (initialization): time 0.01429/1.187, allocations: 8.618 MB / 0.8378 GB, free: 36.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/1.187, allocations: 7.938 kB / 0.8378 GB, free: 36.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/1.188, allocations: 124.8 kB / 0.8379 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002983/1.191, allocations: 0.9992 MB / 0.8389 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005177/1.196, allocations: 1.415 MB / 0.8403 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006429/1.202, allocations: 4.779 MB / 0.845 GB, free: 29.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004611/1.207, allocations: 171.9 kB / 0.8451 GB, free: 29.01 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007017/1.208, allocations: 371.9 kB / 0.8455 GB, free: 28.65 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 563 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis2.color[3],axis2.color[2],axis2.color[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 (780): * Single equations (assignments): 773 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,76.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008211/1.208, allocations: 430.4 kB / 0.8459 GB, free: 28.22 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004533/1.209, allocations: 304 kB / 0.8462 GB, free: 27.92 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007401/1.216, allocations: 4.942 MB / 0.851 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-05/1.216, allocations: 35.98 kB / 0.851 GB, free: 22.93 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/1.216, allocations: 4 kB / 0.851 GB, free: 22.93 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/1.216, allocations: 7.969 kB / 0.851 GB, free: 22.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01594/1.232, allocations: 10.07 MB / 0.8609 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/1.232, allocations: 4 kB / 0.8609 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/1.234, allocations: 348.1 kB / 0.8612 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002542/1.237, allocations: 0.7966 MB / 0.862 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001762/1.237, allocations: 15.98 kB / 0.862 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004755/1.241, allocations: 4.159 MB / 0.8661 GB, free: 7.328 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/1.241, allocations: 4 kB / 0.8661 GB, free: 7.324 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01003/1.252, allocations: 7.943 MB / 0.8738 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/1.253, allocations: 353 kB / 0.8742 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/1.253, allocations: 8 kB / 0.8742 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/1.255, allocations: 67.89 kB / 0.8742 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002612/1.255, allocations: 105.8 kB / 0.8743 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/1.255, allocations: 63.98 kB / 0.8744 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003238/1.258, allocations: 1.859 MB / 0.8762 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005938/1.264, allocations: 0.9609 MB / 0.8772 GB, free: 11.73 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 181 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005259/1.265, allocations: 161.9 kB / 0.8773 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008933/1.274, allocations: 5.923 MB / 0.8831 GB, free: 5.664 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.274, allocations: 7.938 kB / 0.8831 GB, free: 5.656 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002778/1.277, allocations: 2.111 MB / 0.8852 GB, free: 3.539 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/1.278, allocations: 269.8 kB / 0.8854 GB, free: 3.277 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1907/1.469, allocations: 9.196 MB / 0.8944 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004614/1.474, allocations: 4.084 MB / 0.8984 GB, free: 172.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.142e-06/1.474, allocations: 0 / 0.8984 GB, free: 172.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.06399/1.538, allocations: 39.09 MB / 0.9366 GB, free: 170.9 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches