Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001481/0.001481, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008963/0.0008964, allocations: 92.5 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1856/0.1856, allocations: 45.14 MB / 383.4 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1854/0.371, allocations: 69.36 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07721/0.4482, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2609/0.7092, allocations: 110.5 MB / 0.6118 GB, free: 8.574 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.7094, allocations: 80.2 kB / 0.6118 GB, free: 8.535 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.2613/0.9707, allocations: 100.9 MB / 0.7104 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.9708, allocations: 8 kB / 0.7104 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0144/0.9852, allocations: 2.902 MB / 0.7132 GB, free: 8.766 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01051/0.9957, allocations: 4.211 MB / 0.7173 GB, free: 4.504 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.9959, allocations: 160 kB / 0.7175 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001094/0.997, allocations: 287.9 kB / 0.7177 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01208/1.009, allocations: 8.501 MB / 0.7261 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01479/1.024, allocations: 11.16 MB / 0.7369 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001245/1.024, allocations: 39.59 kB / 0.737 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005947/1.025, allocations: 19.98 kB / 0.737 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001521/1.026, allocations: 1.369 MB / 0.7383 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1712/1.197, allocations: 39.57 MB / 0.777 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003201/1.201, allocations: 2.927 MB / 0.7798 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002292/1.203, allocations: 2.425 MB / 0.7822 GB, free: 173.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01208/1.215, allocations: 10.29 MB / 0.7923 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/1.215, allocations: 56.5 kB / 0.7923 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=228): time 3.918e-06/1.215, allocations: 0 / 0.7923 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=255): time 0.02783/1.243, allocations: 15.35 MB / 0.8073 GB, free: 168.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/1.243, allocations: 71.66 kB / 0.8074 GB, free: 168.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/1.246, allocations: 2.792 MB / 0.8101 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000154/1.247, allocations: 28.61 kB / 0.8101 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001116/1.248, allocations: 3.212 MB / 0.8133 GB, free: 165.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005528/1.248, allocations: 0.9409 MB / 0.8142 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/1.249, allocations: 0 / 0.8142 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002536/1.249, allocations: 0.5907 MB / 0.8148 GB, free: 164.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/1.252, allocations: 2.524 MB / 0.8172 GB, free: 163.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003825/1.256, allocations: 6.066 MB / 0.8231 GB, free: 157.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004153/1.26, allocations: 3.985 MB / 0.827 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.603e-05/1.26, allocations: 36.38 kB / 0.8271 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01752/1.277, allocations: 9.542 MB / 0.8364 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/1.277, allocations: 12.53 kB / 0.8364 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001242/1.277, allocations: 125.4 kB / 0.8365 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009794/1.287, allocations: 2.154 MB / 0.8386 GB, free: 154 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004467/1.292, allocations: 1.436 MB / 0.84 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01464/1.306, allocations: 9.322 MB / 0.8491 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004018/1.31, allocations: 176.5 kB / 0.8493 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000493/1.311, allocations: 386.5 kB / 0.8497 GB, free: 144.6 MB / 0.5261 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.0007188/1.312, allocations: 434.2 kB / 0.8501 GB, free: 144.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003511/1.312, allocations: 308 kB / 0.8504 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006786/1.319, allocations: 4.753 MB / 0.855 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.722e-05/1.319, allocations: 46.75 kB / 0.8551 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.319, allocations: 4 kB / 0.8551 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/1.319, allocations: 9.891 kB / 0.8551 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/1.333, allocations: 9.475 MB / 0.8643 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/1.333, allocations: 4.094 kB / 0.8643 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001991/1.335, allocations: 402.1 kB / 0.8647 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/1.337, allocations: 0.6427 MB / 0.8653 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/1.337, allocations: 36.7 kB / 0.8654 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002034/1.339, allocations: 2.292 MB / 0.8676 GB, free: 129 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/1.339, allocations: 0 / 0.8676 GB, free: 129 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008493/1.348, allocations: 7.346 MB / 0.8748 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01095/1.359, allocations: 10.43 MB / 0.885 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005433/1.359, allocations: 359.8 kB / 0.8853 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005192/1.36, allocations: 8 kB / 0.8853 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/1.361, allocations: 64.42 kB / 0.8854 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/1.361, allocations: 117.5 kB / 0.8855 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002144/1.362, allocations: 72.84 kB / 0.8856 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002185/1.364, allocations: 1.831 MB / 0.8874 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004717/1.369, allocations: 1.02 MB / 0.8884 GB, free: 109.8 MB / 0.5261 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.0003904/1.369, allocations: 156.2 kB / 0.8885 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007353/1.376, allocations: 6.119 MB / 0.8945 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.376, allocations: 0 / 0.8945 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003624/1.38, allocations: 2.53 MB / 0.8969 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/1.381, allocations: 314.1 kB / 0.8972 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/1.395, allocations: 9.446 MB / 0.9065 GB, free: 93.02 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004605/1.4, allocations: 4.155 MB / 0.9105 GB, free: 89.81 MB / 0.5261 GB Notification: Performance of SimCode: time 5.11e-07/1.4, allocations: 0 / 0.9105 GB, free: 89.81 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1)