Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_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.FreeMotionScalarInit3") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_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.FreeMotionScalarInit3") [: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.001917/0.001918, allocations: 182.4 kB / 8.521 MB, free: 1.832 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.271/1.271, allocations: 221.4 MB / 230.3 MB, free: 7.652 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.00103/0.00103, allocations: 91.97 kB / 281.2 MB, free: 5.457 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.2001/0.2001, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.506e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1229, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3285/0.4515, allocations: 109.6 MB / 0.6011 GB, free: 3.273 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.4517, allocations: 75.97 kB / 0.6012 GB, free: 3.199 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2358/0.6875, allocations: 94.91 MB / 0.6938 GB, free: 3.555 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001948/0.6877, allocations: 88 kB / 0.6939 GB, free: 3.469 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.1651/0.8528, allocations: 4.493 MB / 0.6983 GB, free: 172.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.8529, allocations: 11.22 kB / 0.6983 GB, free: 172.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01387/0.8667, allocations: 2.893 MB / 0.7012 GB, free: 172.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.878, allocations: 4.746 MB / 0.7058 GB, free: 172.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.8782, allocations: 157.4 kB / 0.7059 GB, free: 172.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001395/0.8796, allocations: 283.5 kB / 0.7062 GB, free: 172.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01045/0.89, allocations: 8.472 MB / 0.7145 GB, free: 172 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.9035, allocations: 11.13 MB / 0.7254 GB, free: 170.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001227/0.9037, allocations: 38.53 kB / 0.7254 GB, free: 170.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006101/0.9043, allocations: 16.41 kB / 0.7254 GB, free: 170.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001533/0.9059, allocations: 1.376 MB / 0.7267 GB, free: 170.5 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05022/0.9561, allocations: 39.5 MB / 0.7653 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004289/0.9604, allocations: 2.908 MB / 0.7682 GB, free: 148 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003038/0.9635, allocations: 2.407 MB / 0.7705 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01397/0.9775, allocations: 10.28 MB / 0.7806 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.9775, allocations: 52.56 kB / 0.7806 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=225): time 4.479e-06/0.9776, allocations: 0 / 0.7806 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=234): time 0.02199/0.9996, allocations: 12.45 MB / 0.7928 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.9996, allocations: 77.16 kB / 0.7928 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003351/1.003, allocations: 2.799 MB / 0.7956 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003256/1.003, allocations: 25.7 kB / 0.7956 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001173/1.004, allocations: 3.196 MB / 0.7987 GB, free: 122 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007437/1.005, allocations: 0.8614 MB / 0.7996 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/1.005, allocations: 3.938 kB / 0.7996 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002605/1.006, allocations: 0.5881 MB / 0.8001 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003437/1.009, allocations: 2.38 MB / 0.8025 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006923/1.016, allocations: 5.902 MB / 0.8082 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007688/1.024, allocations: 3.814 MB / 0.8119 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.803e-05/1.024, allocations: 36 kB / 0.812 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=846) (initialization): time 0.0242/1.048, allocations: 8.359 MB / 0.8201 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/1.048, allocations: 5 kB / 0.8201 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001882/1.048, allocations: 131.8 kB / 0.8203 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003722/1.052, allocations: 1.061 MB / 0.8213 GB, free: 99.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/1.057, allocations: 1.42 MB / 0.8227 GB, free: 98.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004768/1.062, allocations: 4.438 MB / 0.827 GB, free: 94.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004201/1.066, allocations: 176.1 kB / 0.8272 GB, free: 94.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008194/1.067, allocations: 369.9 kB / 0.8275 GB, free: 94.2 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[2]: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.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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.000792/1.068, allocations: 432 kB / 0.828 GB, free: 93.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/1.068, allocations: 303.2 kB / 0.8282 GB, free: 93.48 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006323/1.074, allocations: 4.336 MB / 0.8325 GB, free: 89.84 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.827e-05/1.075, allocations: 36 kB / 0.8325 GB, free: 89.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/1.075, allocations: 3.906 kB / 0.8325 GB, free: 89.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.981e-05/1.075, allocations: 9.938 kB / 0.8325 GB, free: 89.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/1.088, allocations: 8.745 MB / 0.8411 GB, free: 81.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/1.089, allocations: 4 kB / 0.8411 GB, free: 81.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/1.09, allocations: 339.8 kB / 0.8414 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00181/1.092, allocations: 0.6111 MB / 0.842 GB, free: 80.46 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001642/1.092, allocations: 19.92 kB / 0.842 GB, free: 80.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001975/1.094, allocations: 2.294 MB / 0.8443 GB, free: 78.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.094, allocations: 8.031 kB / 0.8443 GB, free: 78.03 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007802/1.102, allocations: 6.82 MB / 0.8509 GB, free: 71.09 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007236/1.103, allocations: 345.1 kB / 0.8513 GB, free: 70.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004727/1.103, allocations: 4 kB / 0.8513 GB, free: 70.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/1.104, allocations: 59.91 kB / 0.8513 GB, free: 70.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/1.105, allocations: 109.7 kB / 0.8514 GB, free: 70.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/1.105, allocations: 59.98 kB / 0.8515 GB, free: 70.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00227/1.107, allocations: 1.834 MB / 0.8533 GB, free: 68.67 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004611/1.112, allocations: 0.9343 MB / 0.8542 GB, free: 67.74 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 177 * 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.0004617/1.112, allocations: 165.8 kB / 0.8543 GB, free: 67.57 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007384/1.12, allocations: 5.699 MB / 0.8599 GB, free: 61.89 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.12, allocations: 0 / 0.8599 GB, free: 61.89 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003173/1.123, allocations: 2.314 MB / 0.8622 GB, free: 59.52 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/1.124, allocations: 309.2 kB / 0.8625 GB, free: 59.23 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/1.139, allocations: 9.304 MB / 0.8715 GB, free: 49.91 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004731/1.144, allocations: 4.05 MB / 0.8755 GB, free: 45.85 MB / 0.4948 GB Notification: Performance of SimCode: time 1.062e-06/1.144, allocations: 4 kB / 0.8755 GB, free: 45.85 MB / 0.4948 GB Notification: Performance of Templates: time 0.06564/1.209, allocations: 37.83 MB / 0.9124 GB, free: 9.062 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches