Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001741/0.001741, allocations: 175.1 kB / 8.145 MB, free: 2.066 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001302/0.001302, allocations: 89.14 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2578/0.2578, allocations: 43.49 MB / 353.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.026e-05/1.043e-05, allocations: 4 kB / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2875, allocations: 58.83 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.4724, allocations: 108.3 MB / 0.5711 GB, free: 6.754 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.4727, allocations: 75.45 kB / 0.5712 GB, free: 6.684 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5863/1.059, allocations: 96.41 MB / 0.6654 GB, free: 108.9 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002063/1.059, allocations: 87.62 kB / 0.6654 GB, free: 108.9 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.02394/1.083, allocations: 4.601 MB / 0.6699 GB, free: 106.9 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/1.083, allocations: 10.47 kB / 0.6699 GB, free: 106.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0258/1.109, allocations: 2.915 MB / 0.6728 GB, free: 106.6 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01896/1.128, allocations: 4.963 MB / 0.6776 GB, free: 105.9 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003078/1.129, allocations: 163.5 kB / 0.6778 GB, free: 105.9 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002884/1.131, allocations: 301.8 kB / 0.6781 GB, free: 105.9 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02406/1.156, allocations: 8.719 MB / 0.6866 GB, free: 104.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07104/1.227, allocations: 11.44 MB / 0.6978 GB, free: 99.46 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003357/1.227, allocations: 38.44 kB / 0.6978 GB, free: 99.43 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002656/1.23, allocations: 22.61 kB / 0.6978 GB, free: 99.43 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003865/1.234, allocations: 1.408 MB / 0.6992 GB, free: 99.19 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08723/1.321, allocations: 40.41 MB / 0.7387 GB, free: 66.46 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006922/1.328, allocations: 2.973 MB / 0.7416 GB, free: 63.47 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005739/1.334, allocations: 2.448 MB / 0.744 GB, free: 61.01 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03111/1.365, allocations: 10.44 MB / 0.7542 GB, free: 50.02 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.002e-05/1.365, allocations: 56.55 kB / 0.7542 GB, free: 49.96 MB / 474.7 MB Notification: Performance of pre-optimization done (n=237): time 1.022e-05/1.365, allocations: 2.906 kB / 0.7542 GB, free: 49.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=264): time 0.07378/1.439, allocations: 15.63 MB / 0.7695 GB, free: 34.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/1.439, allocations: 73.41 kB / 0.7695 GB, free: 34.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005765/1.445, allocations: 2.857 MB / 0.7723 GB, free: 31.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000594/1.445, allocations: 25.7 kB / 0.7724 GB, free: 31.22 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001849/1.447, allocations: 3.294 MB / 0.7756 GB, free: 27.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001352/1.449, allocations: 0.9752 MB / 0.7765 GB, free: 26.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005139/1.449, allocations: 0 / 0.7765 GB, free: 26.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004295/1.449, allocations: 0.6 MB / 0.7771 GB, free: 26.28 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005603/1.455, allocations: 2.583 MB / 0.7796 GB, free: 23.69 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007643/1.463, allocations: 6.216 MB / 0.7857 GB, free: 15.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00871/1.472, allocations: 4.091 MB / 0.7897 GB, free: 11.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.335e-05/1.472, allocations: 36 kB / 0.7897 GB, free: 11.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=892) (initialization): time 0.03427/1.506, allocations: 9.684 MB / 0.7992 GB, free: 1.871 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/1.506, allocations: 8 kB / 0.7992 GB, free: 1.863 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/1.506, allocations: 128 kB / 0.7993 GB, free: 1.738 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01763/1.524, allocations: 2.155 MB / 0.8014 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01022/1.534, allocations: 1.482 MB / 0.8029 GB, free: 14.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03009/1.564, allocations: 9.578 MB / 0.8122 GB, free: 4.391 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006181/1.57, allocations: 175.8 kB / 0.8124 GB, free: 4.219 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001271/1.572, allocations: 399.9 kB / 0.8128 GB, free: 3.828 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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.e_rel_0[1]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] 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: 0 * Non-linear torn systems: 2 {4 5,3 24} Notification: Performance of prepare postOptimizeDAE: time 0.001432/1.573, allocations: 366.6 kB / 0.8131 GB, free: 3.469 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008447/1.574, allocations: 315.9 kB / 0.8134 GB, free: 3.156 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01561/1.59, allocations: 4.857 MB / 0.8182 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001394/1.59, allocations: 36 kB / 0.8182 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/1.59, allocations: 4 kB / 0.8182 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.524e-05/1.59, allocations: 19.86 kB / 0.8182 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03117/1.621, allocations: 9.684 MB / 0.8277 GB, free: 4.434 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.129e-05/1.621, allocations: 0 / 0.8277 GB, free: 4.434 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005156/1.626, allocations: 416.4 kB / 0.8281 GB, free: 4.027 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005935/1.632, allocations: 0.6461 MB / 0.8287 GB, free: 3.371 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008646/1.633, allocations: 27.97 kB / 0.8287 GB, free: 3.344 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006426/1.64, allocations: 2.305 MB / 0.831 GB, free: 0.9258 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/1.64, allocations: 0 / 0.831 GB, free: 0.9258 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.194/1.834, allocations: 7.48 MB / 0.8383 GB, free: 177.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/1.835, allocations: 360.1 kB / 0.8386 GB, free: 177.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001736/1.837, allocations: 12.34 kB / 0.8387 GB, free: 177.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003845/1.841, allocations: 74.56 kB / 0.8387 GB, free: 177.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008564/1.842, allocations: 121.4 kB / 0.8388 GB, free: 177.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003536/1.842, allocations: 76.56 kB / 0.8389 GB, free: 177.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.005457/1.848, allocations: 1.874 MB / 0.8407 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008785/1.856, allocations: 1.022 MB / 0.8417 GB, free: 177.4 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 (217): * Single equations (assignments): 208 * 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.001107/1.858, allocations: 165.5 kB / 0.8419 GB, free: 177.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01735/1.875, allocations: 6.246 MB / 0.848 GB, free: 177.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.875, allocations: 0 / 0.848 GB, free: 177.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008485/1.884, allocations: 2.572 MB / 0.8505 GB, free: 176.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/1.887, allocations: 302.1 kB / 0.8508 GB, free: 176.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03559/1.923, allocations: 10.25 MB / 0.8608 GB, free: 175.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01214/1.935, allocations: 4.235 MB / 0.8649 GB, free: 174.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.754e-06/1.935, allocations: 3.938 kB / 0.8649 GB, free: 174.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.1875/2.122, allocations: 115.5 MB / 0.9777 GB, free: 87.72 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1)