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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) [: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.001069/0.001069, allocations: 174.8 kB / 8.518 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.173/1.173, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0009649/0.000965, allocations: 95.22 kB / 281.2 MB, free: 5.453 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.1613/0.1613, allocations: 44.15 MB / 376.1 MB, free: 2.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1768/0.3381, allocations: 68.03 MB / 444.1 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.4551, allocations: 61.9 MB / 0.4942 GB, free: 1.367 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2778/0.733, allocations: 109.6 MB / 0.6012 GB, free: 3.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.7333, allocations: 75.95 kB / 0.6013 GB, free: 3.086 MB / 410.7 MB 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.3784/1.112, allocations: 99.95 MB / 0.6989 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/1.112, allocations: 15.31 kB / 0.6989 GB, free: 172.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01348/1.125, allocations: 2.89 MB / 0.7017 GB, free: 172.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/1.137, allocations: 4.755 MB / 0.7064 GB, free: 171.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/1.137, allocations: 156.6 kB / 0.7065 GB, free: 171.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/1.138, allocations: 290.1 kB / 0.7068 GB, free: 171.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01043/1.148, allocations: 8.492 MB / 0.7151 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01398/1.162, allocations: 11.17 MB / 0.726 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001175/1.162, allocations: 33.25 kB / 0.726 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005529/1.163, allocations: 13.91 kB / 0.726 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001168/1.164, allocations: 1.378 MB / 0.7274 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04079/1.205, allocations: 39.59 MB / 0.766 GB, free: 148.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/1.209, allocations: 2.932 MB / 0.7689 GB, free: 147.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002857/1.212, allocations: 2.419 MB / 0.7713 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01346/1.225, allocations: 10.3 MB / 0.7813 GB, free: 138 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/1.225, allocations: 58.98 kB / 0.7814 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=228): time 4.218e-06/1.225, allocations: 0 / 0.7814 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=255): time 0.02775/1.253, allocations: 15.34 MB / 0.7964 GB, free: 124.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/1.253, allocations: 73.41 kB / 0.7964 GB, free: 124.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003376/1.256, allocations: 2.788 MB / 0.7991 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001488/1.257, allocations: 29.7 kB / 0.7992 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009923/1.258, allocations: 3.213 MB / 0.8023 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005409/1.258, allocations: 0.9363 MB / 0.8032 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/1.258, allocations: 0 / 0.8032 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002528/1.259, allocations: 0.5896 MB / 0.8038 GB, free: 117.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002717/1.261, allocations: 2.533 MB / 0.8063 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003897/1.265, allocations: 6.059 MB / 0.8122 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004009/1.269, allocations: 3.984 MB / 0.8161 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.57e-05/1.269, allocations: 36 kB / 0.8161 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01678/1.286, allocations: 9.548 MB / 0.8254 GB, free: 96.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/1.286, allocations: 4.516 kB / 0.8254 GB, free: 96.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.457e-05/1.286, allocations: 124 kB / 0.8256 GB, free: 96.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009549/1.296, allocations: 2.162 MB / 0.8277 GB, free: 95.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004566/1.3, allocations: 1.434 MB / 0.8291 GB, free: 93.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/1.314, allocations: 9.326 MB / 0.8382 GB, free: 84.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003927/1.318, allocations: 175.9 kB / 0.8383 GB, free: 84.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004677/1.319, allocations: 387.9 kB / 0.8387 GB, free: 84.13 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.0007259/1.32, allocations: 434.4 kB / 0.8391 GB, free: 83.71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003709/1.32, allocations: 304.1 kB / 0.8394 GB, free: 83.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006715/1.327, allocations: 4.769 MB / 0.8441 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.729e-05/1.327, allocations: 36 kB / 0.8441 GB, free: 78.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.327, allocations: 0 / 0.8441 GB, free: 78.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/1.327, allocations: 15.95 kB / 0.8441 GB, free: 78.53 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/1.34, allocations: 9.474 MB / 0.8534 GB, free: 69.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/1.34, allocations: 4 kB / 0.8534 GB, free: 69.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002014/1.343, allocations: 395.3 kB / 0.8538 GB, free: 68.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/1.345, allocations: 0.6424 MB / 0.8544 GB, free: 67.99 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/1.345, allocations: 31.95 kB / 0.8544 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/1.347, allocations: 2.302 MB / 0.8567 GB, free: 65.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.347, allocations: 4 kB / 0.8567 GB, free: 65.54 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00828/1.355, allocations: 7.349 MB / 0.8638 GB, free: 58.05 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01063/1.366, allocations: 10.43 MB / 0.874 GB, free: 47.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006748/1.366, allocations: 345.1 kB / 0.8744 GB, free: 47.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005081/1.367, allocations: 23.89 kB / 0.8744 GB, free: 47.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/1.368, allocations: 59.91 kB / 0.8744 GB, free: 47.04 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/1.369, allocations: 113.8 kB / 0.8745 GB, free: 46.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001836/1.369, allocations: 71.95 kB / 0.8746 GB, free: 46.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002164/1.371, allocations: 1.831 MB / 0.8764 GB, free: 45.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004758/1.376, allocations: 1.004 MB / 0.8774 GB, free: 44.04 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.0004063/1.376, allocations: 167.8 kB / 0.8775 GB, free: 43.87 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007402/1.384, allocations: 6.114 MB / 0.8835 GB, free: 37.77 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/1.384, allocations: 0 / 0.8835 GB, free: 37.77 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003546/1.387, allocations: 2.524 MB / 0.886 GB, free: 35.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/1.389, allocations: 320.7 kB / 0.8863 GB, free: 34.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/1.403, allocations: 9.437 MB / 0.8955 GB, free: 25.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004348/1.407, allocations: 4.163 MB / 0.8996 GB, free: 21.25 MB / 0.4948 GB Notification: Performance of SimCode: time 7.42e-07/1.407, allocations: 0 / 0.8996 GB, free: 21.25 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1)