Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0008921/0.000892, allocations: 191 kB / 7.806 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9826/0.9826, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008243/0.0008243, allocations: 93.28 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1577/0.1577, allocations: 43.49 MB / 352.8 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.502e-06/6.532e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2236, allocations: 58.84 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1271/0.3508, allocations: 108.3 MB / 0.5711 GB, free: 6.617 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.3511, allocations: 79.47 kB / 0.5712 GB, free: 6.543 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3629/0.7141, allocations: 95.96 MB / 0.6649 GB, free: 109 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001436/0.7142, allocations: 91.72 kB / 0.665 GB, free: 109 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.01184/0.7261, allocations: 4.578 MB / 0.6695 GB, free: 107 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.7261, allocations: 14.59 kB / 0.6695 GB, free: 107 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0126/0.7388, allocations: 2.916 MB / 0.6723 GB, free: 106.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.7499, allocations: 4.955 MB / 0.6772 GB, free: 106 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.7501, allocations: 160.3 kB / 0.6773 GB, free: 106 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001924/0.7521, allocations: 293.3 kB / 0.6776 GB, free: 106 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01232/0.7644, allocations: 8.711 MB / 0.6861 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01989/0.7843, allocations: 11.41 MB / 0.6973 GB, free: 99.66 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/0.7845, allocations: 34.84 kB / 0.6973 GB, free: 99.64 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006159/0.7851, allocations: 14.91 kB / 0.6973 GB, free: 99.64 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001637/0.7868, allocations: 1.411 MB / 0.6987 GB, free: 99.39 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0509/0.8377, allocations: 40.32 MB / 0.7381 GB, free: 66.79 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003103/0.8408, allocations: 2.945 MB / 0.7409 GB, free: 63.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/0.8429, allocations: 2.445 MB / 0.7433 GB, free: 61.38 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.8542, allocations: 10.41 MB / 0.7535 GB, free: 50.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.8543, allocations: 56.47 kB / 0.7536 GB, free: 50.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=234): time 3.727e-06/0.8543, allocations: 0 / 0.7536 GB, free: 50.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=243): time 0.02054/0.8749, allocations: 12.63 MB / 0.7659 GB, free: 37.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.8749, allocations: 77.34 kB / 0.766 GB, free: 37.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003064/0.878, allocations: 2.858 MB / 0.7688 GB, free: 34.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.8781, allocations: 29.7 kB / 0.7688 GB, free: 34.64 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009864/0.8791, allocations: 3.28 MB / 0.772 GB, free: 31.31 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004746/0.8796, allocations: 0.8942 MB / 0.7729 GB, free: 30.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/0.8798, allocations: 0 / 0.7729 GB, free: 30.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002347/0.8801, allocations: 0.5832 MB / 0.7734 GB, free: 29.81 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002413/0.8825, allocations: 2.438 MB / 0.7758 GB, free: 27.37 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00347/0.886, allocations: 6.062 MB / 0.7817 GB, free: 19.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003707/0.8897, allocations: 3.907 MB / 0.7855 GB, free: 15.59 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.482e-05/0.8897, allocations: 43.89 kB / 0.7856 GB, free: 15.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.01117/0.9009, allocations: 8.564 MB / 0.7939 GB, free: 6.988 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.9009, allocations: 8 kB / 0.794 GB, free: 6.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.139e-05/0.901, allocations: 128 kB / 0.7941 GB, free: 6.855 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002898/0.9039, allocations: 1.071 MB / 0.7951 GB, free: 5.781 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003943/0.9079, allocations: 1.466 MB / 0.7966 GB, free: 4.312 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004325/0.9122, allocations: 4.446 MB / 0.8009 GB, free: 15.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003747/0.916, allocations: 183.8 kB / 0.8011 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005465/0.9165, allocations: 384 kB / 0.8014 GB, free: 15.16 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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[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.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: 586 * Number of states: 0 () * Number of discrete variables: 30 (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.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 (810): * Single equations (assignments): 802 * 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.0007322/0.9173, allocations: 438.3 kB / 0.8019 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003978/0.9177, allocations: 312 kB / 0.8022 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006566/0.9243, allocations: 4.433 MB / 0.8065 GB, free: 9.973 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.083e-05/0.9243, allocations: 35.98 kB / 0.8065 GB, free: 9.938 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.9244, allocations: 4 kB / 0.8065 GB, free: 9.934 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.9244, allocations: 11.95 kB / 0.8065 GB, free: 9.922 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/0.9386, allocations: 8.941 MB / 0.8153 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.9387, allocations: 7.906 kB / 0.8153 GB, free: 0.9297 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001689/0.9404, allocations: 363.5 kB / 0.8156 GB, free: 0.5742 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.9423, allocations: 0.5999 MB / 0.8162 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001755/0.9425, allocations: 27.53 kB / 0.8162 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.9447, allocations: 2.299 MB / 0.8185 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.9448, allocations: 7.938 kB / 0.8185 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008516/0.9533, allocations: 6.954 MB / 0.8253 GB, free: 6.438 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007753/0.9541, allocations: 356.9 kB / 0.8256 GB, free: 6.066 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004402/0.9545, allocations: 8 kB / 0.8256 GB, free: 6.059 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.9557, allocations: 63.91 kB / 0.8257 GB, free: 5.996 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.956, allocations: 105.8 kB / 0.8258 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/0.9561, allocations: 67.12 kB / 0.8258 GB, free: 5.832 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002469/0.9586, allocations: 1.879 MB / 0.8277 GB, free: 3.953 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004077/0.9627, allocations: 0.957 MB / 0.8286 GB, free: 2.996 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 (196): * Single equations (assignments): 187 * 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.0003851/0.9631, allocations: 162.9 kB / 0.8288 GB, free: 2.824 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.137/1.1, allocations: 5.843 MB / 0.8345 GB, free: 179.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.1, allocations: 3.531 kB / 0.8345 GB, free: 179.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003136/1.103, allocations: 2.357 MB / 0.8368 GB, free: 179.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/1.105, allocations: 296.8 kB / 0.8371 GB, free: 179.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/1.119, allocations: 9.54 MB / 0.8464 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004252/1.124, allocations: 4.157 MB / 0.8504 GB, free: 176.6 MB / 0.4948 GB Notification: Performance of SimCode: time 9.92e-07/1.124, allocations: 0 / 0.8504 GB, free: 176.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.06457/1.188, allocations: 38.64 MB / 0.8882 GB, free: 174.3 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches