Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") [: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.001428/0.001428, allocations: 173.7 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.304/1.304, allocations: 221.4 MB / 230.3 MB, free: 7.691 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.0009758/0.0009761, allocations: 90.22 kB / 281.2 MB, free: 5.496 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.1718/0.1718, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.646e-06/8.686e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1331, allocations: 61.91 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.4456, allocations: 104.6 MB / 0.5963 GB, free: 8.148 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.4459, allocations: 75.97 kB / 0.5963 GB, free: 8.074 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.225/0.6709, allocations: 87.68 MB / 0.6819 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001753/0.6711, allocations: 80 kB / 0.682 GB, free: 15.63 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: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.01801/0.6891, allocations: 4.054 MB / 0.686 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.6892, allocations: 11.97 kB / 0.686 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01464/0.7038, allocations: 2.825 MB / 0.6888 GB, free: 8.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0133/0.7172, allocations: 4.522 MB / 0.6932 GB, free: 4.086 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002206/0.7174, allocations: 140 kB / 0.6933 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002171/0.7196, allocations: 247.9 kB / 0.6935 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1876/0.9073, allocations: 7.742 MB / 0.7011 GB, free: 177.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/0.9249, allocations: 10.1 MB / 0.711 GB, free: 176.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001407/0.925, allocations: 23.59 kB / 0.711 GB, free: 176.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007253/0.9258, allocations: 14.94 kB / 0.711 GB, free: 176.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001255/0.927, allocations: 1.263 MB / 0.7122 GB, free: 176.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04718/0.9742, allocations: 34.45 MB / 0.7459 GB, free: 161 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003311/0.9776, allocations: 2.635 MB / 0.7484 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002238/0.9798, allocations: 2.172 MB / 0.7506 GB, free: 159.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.9921, allocations: 9.33 MB / 0.7597 GB, free: 154.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.9922, allocations: 47.16 kB / 0.7597 GB, free: 154.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=204): time 5.14e-06/0.9922, allocations: 0 / 0.7597 GB, free: 154.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=231): time 0.02272/1.015, allocations: 10.15 MB / 0.7696 GB, free: 151 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/1.015, allocations: 74.12 kB / 0.7697 GB, free: 150.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00559/1.021, allocations: 2.598 MB / 0.7722 GB, free: 149.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005181/1.021, allocations: 25.7 kB / 0.7723 GB, free: 149.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001706/1.023, allocations: 2.925 MB / 0.7751 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001264/1.024, allocations: 0.8561 MB / 0.776 GB, free: 146 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007205/1.025, allocations: 0 / 0.776 GB, free: 146 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004755/1.025, allocations: 0.5653 MB / 0.7765 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003117/1.029, allocations: 2.352 MB / 0.7788 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004351/1.033, allocations: 5.64 MB / 0.7843 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004683/1.038, allocations: 3.72 MB / 0.788 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-05/1.038, allocations: 32 kB / 0.788 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=803) (initialization): time 0.01693/1.055, allocations: 8.053 MB / 0.7958 GB, free: 126.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/1.055, allocations: 4 kB / 0.7959 GB, free: 126.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003108/1.055, allocations: 120 kB / 0.796 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003922/1.059, allocations: 0.9277 MB / 0.7969 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005192/1.064, allocations: 1.375 MB / 0.7982 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/1.067, allocations: 2.353 MB / 0.8005 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004696/1.071, allocations: 164.2 kB / 0.8007 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/1.073, allocations: 364.5 kB / 0.801 GB, free: 122 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 532 * 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],freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (750): * Single equations (assignments): 741 * 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.001667/1.074, allocations: 404.9 kB / 0.8014 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007925/1.075, allocations: 287.6 kB / 0.8017 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00891/1.084, allocations: 4.576 MB / 0.8061 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.717e-05/1.084, allocations: 36 kB / 0.8062 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.272e-05/1.084, allocations: 7.562 kB / 0.8062 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.972e-05/1.084, allocations: 6.844 kB / 0.8062 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/1.105, allocations: 8.908 MB / 0.8149 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/1.105, allocations: 0 / 0.8149 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/1.107, allocations: 342.1 kB / 0.8152 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003427/1.11, allocations: 0.7612 MB / 0.816 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005987/1.111, allocations: 27.39 kB / 0.816 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/1.113, allocations: 2.135 MB / 0.8181 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.413e-06/1.113, allocations: 6.625 kB / 0.8181 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01221/1.125, allocations: 6.938 MB / 0.8249 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/1.126, allocations: 329.3 kB / 0.8252 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.127, allocations: 8 kB / 0.8252 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001964/1.129, allocations: 57.67 kB / 0.8252 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003916/1.13, allocations: 103.3 kB / 0.8253 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.13, allocations: 61.89 kB / 0.8254 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003745/1.134, allocations: 1.716 MB / 0.8271 GB, free: 99.25 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006534/1.14, allocations: 0.8797 MB / 0.8279 GB, free: 98.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 174 * 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.0008478/1.141, allocations: 151.1 kB / 0.8281 GB, free: 98.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01054/1.152, allocations: 5.953 MB / 0.8339 GB, free: 92.32 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/1.152, allocations: 4.062 kB / 0.8339 GB, free: 92.32 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004081/1.156, allocations: 2.391 MB / 0.8362 GB, free: 89.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/1.158, allocations: 283.8 kB / 0.8365 GB, free: 89.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01986/1.178, allocations: 8.77 MB / 0.8451 GB, free: 80.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006953/1.185, allocations: 3.797 MB / 0.8488 GB, free: 77.01 MB / 0.4948 GB Notification: Performance of SimCode: time 1.172e-06/1.185, allocations: 0 / 0.8488 GB, free: 77.01 MB / 0.4948 GB Notification: Performance of Templates: time 0.06722/1.252, allocations: 36.76 MB / 0.8847 GB, free: 41.24 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit/FreeMotionScalarInit.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches