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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.001539/0.001539, allocations: 177.2 kB / 8.516 MB, free: 1.852 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.169/1.169, allocations: 221.4 MB / 230.3 MB, free: 7.762 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.0009058/0.0009058, allocations: 84.69 kB / 281.2 MB, free: 5.516 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.159/0.159, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1714/0.3304, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.422, allocations: 61.91 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2611/0.6831, allocations: 109.6 MB / 0.6012 GB, free: 3.148 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.6833, allocations: 75.97 kB / 0.6012 GB, free: 3.074 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.3818/1.065, allocations: 99.5 MB / 0.6984 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/1.065, allocations: 13.56 kB / 0.6984 GB, free: 172.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01343/1.079, allocations: 2.896 MB / 0.7012 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01047/1.089, allocations: 4.739 MB / 0.7059 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/1.089, allocations: 158.3 kB / 0.706 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009159/1.09, allocations: 290 kB / 0.7063 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009874/1.1, allocations: 8.475 MB / 0.7146 GB, free: 171.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01447/1.115, allocations: 11.13 MB / 0.7254 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/1.115, allocations: 40.28 kB / 0.7255 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006132/1.115, allocations: 21.25 kB / 0.7255 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001237/1.117, allocations: 1.372 MB / 0.7268 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0417/1.158, allocations: 39.51 MB / 0.7654 GB, free: 148.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003759/1.162, allocations: 2.902 MB / 0.7683 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002756/1.165, allocations: 2.41 MB / 0.7706 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01302/1.178, allocations: 10.27 MB / 0.7806 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/1.178, allocations: 52.56 kB / 0.7807 GB, free: 138 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=225): time 5.63e-06/1.178, allocations: 96 / 0.7807 GB, free: 138 MB / 0.4948 GB Notification: Performance of matching and sorting (n=234): time 0.0217/1.2, allocations: 12.46 MB / 0.7929 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.466e-05/1.2, allocations: 73.41 kB / 0.7929 GB, free: 127.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003181/1.203, allocations: 2.797 MB / 0.7957 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000232/1.203, allocations: 25.7 kB / 0.7957 GB, free: 124.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001007/1.204, allocations: 3.195 MB / 0.7988 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006403/1.205, allocations: 0.8707 MB / 0.7997 GB, free: 121 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/1.205, allocations: 0 / 0.7997 GB, free: 121 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002507/1.205, allocations: 0.5835 MB / 0.8002 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002547/1.208, allocations: 2.379 MB / 0.8026 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003517/1.211, allocations: 5.906 MB / 0.8083 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/1.216, allocations: 3.806 MB / 0.812 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.411e-05/1.216, allocations: 40 kB / 0.8121 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=846) (initialization): time 0.01171/1.227, allocations: 8.356 MB / 0.8202 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/1.227, allocations: 4.938 kB / 0.8202 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.947e-05/1.227, allocations: 127.9 kB / 0.8204 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/1.231, allocations: 1.077 MB / 0.8214 GB, free: 99.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00423/1.235, allocations: 1.415 MB / 0.8228 GB, free: 98.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004646/1.24, allocations: 4.439 MB / 0.8271 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003857/1.243, allocations: 178 kB / 0.8273 GB, free: 94.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005443/1.244, allocations: 370 kB / 0.8277 GB, free: 93.95 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.000716/1.245, allocations: 438.7 kB / 0.8281 GB, free: 93.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/1.245, allocations: 300.1 kB / 0.8284 GB, free: 93.23 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006425/1.252, allocations: 4.328 MB / 0.8326 GB, free: 89.59 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-05/1.252, allocations: 39.42 kB / 0.8326 GB, free: 89.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/1.252, allocations: 3.906 kB / 0.8326 GB, free: 89.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.086e-05/1.252, allocations: 12.95 kB / 0.8326 GB, free: 89.54 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/1.265, allocations: 8.743 MB / 0.8412 GB, free: 81.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.108e-06/1.265, allocations: 4 kB / 0.8412 GB, free: 81.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/1.266, allocations: 339.5 kB / 0.8415 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001838/1.268, allocations: 0.6035 MB / 0.8421 GB, free: 80.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001721/1.268, allocations: 19.98 kB / 0.8421 GB, free: 80.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001985/1.27, allocations: 2.294 MB / 0.8444 GB, free: 77.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/1.27, allocations: 4 kB / 0.8444 GB, free: 77.87 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007462/1.278, allocations: 6.824 MB / 0.851 GB, free: 70.92 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009673/1.287, allocations: 9.651 MB / 0.8604 GB, free: 61.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006274/1.288, allocations: 347.5 kB / 0.8608 GB, free: 60.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000455/1.289, allocations: 11.98 kB / 0.8608 GB, free: 60.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/1.29, allocations: 59.91 kB / 0.8608 GB, free: 60.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/1.29, allocations: 109.8 kB / 0.8609 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/1.29, allocations: 59.98 kB / 0.861 GB, free: 60.55 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002179/1.292, allocations: 1.823 MB / 0.8628 GB, free: 58.73 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004665/1.297, allocations: 0.9443 MB / 0.8637 GB, free: 57.79 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.0003981/1.297, allocations: 166.8 kB / 0.8639 GB, free: 57.62 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007138/1.305, allocations: 5.706 MB / 0.8694 GB, free: 51.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.305, allocations: 4.188 kB / 0.8694 GB, free: 51.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003234/1.308, allocations: 2.309 MB / 0.8717 GB, free: 49.56 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/1.31, allocations: 315.2 kB / 0.872 GB, free: 49.27 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/1.324, allocations: 9.311 MB / 0.8811 GB, free: 39.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004716/1.329, allocations: 4.086 MB / 0.8851 GB, free: 35.84 MB / 0.4948 GB Notification: Performance of SimCode: time 1.052e-06/1.329, allocations: 0 / 0.8851 GB, free: 35.84 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1)