Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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.FreeMotionScalarInit4") [: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.001437/0.001437, allocations: 178.3 kB / 8.518 MB, free: 1.84 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.29/1.29, allocations: 221.4 MB / 230.3 MB, free: 7.688 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.001005/0.001005, allocations: 85.98 kB / 281.2 MB, free: 5.504 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.177/0.177, allocations: 44.16 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.752e-06/6.842e-06, allocations: 4.156 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09473/0.09475, allocations: 61.91 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3197/0.4145, allocations: 109.6 MB / 0.6011 GB, free: 3.125 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/0.4147, allocations: 75.97 kB / 0.6012 GB, free: 3.051 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2354/0.6502, allocations: 95.35 MB / 0.6943 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001437/0.6504, allocations: 92 kB / 0.6944 GB, free: 2.875 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.1397/0.79, allocations: 4.5 MB / 0.6988 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.7901, allocations: 18.62 kB / 0.6988 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01263/0.8027, allocations: 2.89 MB / 0.7016 GB, free: 171.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0104/0.8131, allocations: 4.753 MB / 0.7063 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.8133, allocations: 162 kB / 0.7064 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001153/0.8145, allocations: 289.8 kB / 0.7067 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009757/0.8242, allocations: 8.491 MB / 0.715 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01307/0.8373, allocations: 11.16 MB / 0.7259 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00012/0.8374, allocations: 43.5 kB / 0.7259 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005718/0.838, allocations: 13.62 kB / 0.7259 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001225/0.8393, allocations: 1.377 MB / 0.7273 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04209/0.8814, allocations: 39.59 MB / 0.7659 GB, free: 148.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003805/0.8852, allocations: 2.93 MB / 0.7688 GB, free: 147.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002703/0.8879, allocations: 2.415 MB / 0.7712 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01245/0.9004, allocations: 10.3 MB / 0.7812 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.9005, allocations: 52.56 kB / 0.7813 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=228): time 4.308e-06/0.9005, allocations: 0 / 0.7813 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=255): time 0.02681/0.9273, allocations: 15.34 MB / 0.7963 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.9274, allocations: 73.41 kB / 0.7963 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003167/0.9305, allocations: 2.785 MB / 0.7991 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002331/0.9308, allocations: 33.55 kB / 0.7991 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.9321, allocations: 3.208 MB / 0.8022 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009452/0.9331, allocations: 0.9408 MB / 0.8031 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/0.9334, allocations: 0 / 0.8031 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002555/0.9336, allocations: 0.5848 MB / 0.8037 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002751/0.9364, allocations: 2.53 MB / 0.8062 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00373/0.9401, allocations: 6.06 MB / 0.8121 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004168/0.9443, allocations: 3.992 MB / 0.816 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.942e-05/0.9443, allocations: 36 kB / 0.816 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01733/0.9617, allocations: 9.548 MB / 0.8254 GB, free: 96.53 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.9617, allocations: 4 kB / 0.8254 GB, free: 96.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.9619, allocations: 124.6 kB / 0.8255 GB, free: 96.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009546/0.9714, allocations: 2.162 MB / 0.8276 GB, free: 94.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004962/0.9764, allocations: 1.426 MB / 0.829 GB, free: 93.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01442/0.9908, allocations: 9.329 MB / 0.8381 GB, free: 84.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004358/0.9952, allocations: 171.9 kB / 0.8383 GB, free: 84.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/0.9963, allocations: 391.5 kB / 0.8386 GB, free: 83.99 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring.e_rel_0[1]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[3]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[2]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 32 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],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 (785): * Single equations (assignments): 777 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 5,3 24} Notification: Performance of prepare postOptimizeDAE: time 0.00123/0.9975, allocations: 433.1 kB / 0.839 GB, free: 83.56 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005168/0.9981, allocations: 304.1 kB / 0.8393 GB, free: 83.26 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007231/1.005, allocations: 4.766 MB / 0.844 GB, free: 78.44 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.168e-05/1.005, allocations: 39.98 kB / 0.844 GB, free: 78.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-05/1.005, allocations: 0 / 0.844 GB, free: 78.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.393e-05/1.005, allocations: 7.969 kB / 0.844 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/1.023, allocations: 9.483 MB / 0.8533 GB, free: 68.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/1.023, allocations: 4 kB / 0.8533 GB, free: 68.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001974/1.025, allocations: 387.4 kB / 0.8537 GB, free: 68.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/1.027, allocations: 0.6424 MB / 0.8543 GB, free: 67.85 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003393/1.027, allocations: 31.91 kB / 0.8543 GB, free: 67.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002116/1.029, allocations: 2.31 MB / 0.8566 GB, free: 65.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.029, allocations: 4 kB / 0.8566 GB, free: 65.39 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009151/1.038, allocations: 7.338 MB / 0.8637 GB, free: 57.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000824/1.039, allocations: 353 kB / 0.8641 GB, free: 57.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009476/1.04, allocations: 12 kB / 0.8641 GB, free: 57.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002062/1.042, allocations: 67.8 kB / 0.8642 GB, free: 57.47 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003663/1.043, allocations: 109.8 kB / 0.8643 GB, free: 57.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002496/1.043, allocations: 83 kB / 0.8643 GB, free: 57.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003427/1.046, allocations: 1.827 MB / 0.8661 GB, free: 55.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005944/1.052, allocations: 1.004 MB / 0.8671 GB, free: 54.46 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 198 * 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.0006697/1.053, allocations: 159.2 kB / 0.8673 GB, free: 54.31 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008684/1.062, allocations: 6.117 MB / 0.8732 GB, free: 48.21 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.062, allocations: 0.5625 kB / 0.8732 GB, free: 48.21 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003817/1.066, allocations: 2.535 MB / 0.8757 GB, free: 45.63 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/1.067, allocations: 307.4 kB / 0.876 GB, free: 45.34 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/1.085, allocations: 9.43 MB / 0.8852 GB, free: 35.87 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006189/1.091, allocations: 4.119 MB / 0.8892 GB, free: 31.74 MB / 0.4948 GB Notification: Performance of SimCode: time 1.232e-06/1.091, allocations: 0 / 0.8892 GB, free: 31.74 MB / 0.4948 GB Notification: Performance of Templates: time 0.2201/1.311, allocations: 44.03 MB / 0.9322 GB, free: 148.4 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit4/FreeMotionScalarInit4.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches