Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001717/0.001717, allocations: 199.7 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008343/0.0008343, allocations: 95.25 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1707/0.1707, allocations: 45.15 MB / 383.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1851/0.3559, allocations: 69.36 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0775/0.4334, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2632/0.6966, allocations: 110.5 MB / 0.6117 GB, free: 8.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.6969, allocations: 80.95 kB / 0.6118 GB, free: 8.691 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.2587/0.9555, allocations: 100.4 MB / 0.7099 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.9556, allocations: 15.98 kB / 0.7099 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01453/0.9701, allocations: 2.891 MB / 0.7127 GB, free: 9.316 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.9813, allocations: 4.203 MB / 0.7168 GB, free: 5.062 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.9815, allocations: 160 kB / 0.717 GB, free: 4.906 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001487/0.983, allocations: 283.9 kB / 0.7173 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01362/0.9967, allocations: 8.478 MB / 0.7255 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02021/1.017, allocations: 11.14 MB / 0.7364 GB, free: 484 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001591/1.017, allocations: 35.73 kB / 0.7364 GB, free: 448 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008208/1.018, allocations: 12 kB / 0.7365 GB, free: 436 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001634/1.02, allocations: 1.369 MB / 0.7378 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2293/1.249, allocations: 39.51 MB / 0.7764 GB, free: 80 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003773/1.253, allocations: 2.907 MB / 0.7792 GB, free: 79.95 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002626/1.255, allocations: 2.408 MB / 0.7816 GB, free: 79.93 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01325/1.269, allocations: 10.27 MB / 0.7916 GB, free: 76.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/1.269, allocations: 55.97 kB / 0.7916 GB, free: 76.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=225): time 4.969e-06/1.269, allocations: 0 / 0.7916 GB, free: 76.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=234): time 0.02252/1.291, allocations: 12.45 MB / 0.8038 GB, free: 74.68 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.588e-05/1.291, allocations: 72 kB / 0.8039 GB, free: 74.61 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/1.295, allocations: 2.796 MB / 0.8066 GB, free: 74.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002397/1.295, allocations: 25.7 kB / 0.8066 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001201/1.296, allocations: 3.2 MB / 0.8097 GB, free: 72.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006605/1.297, allocations: 0.8722 MB / 0.8106 GB, free: 71.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/1.297, allocations: 0 / 0.8106 GB, free: 71.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002731/1.297, allocations: 0.579 MB / 0.8112 GB, free: 71.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002801/1.3, allocations: 2.379 MB / 0.8135 GB, free: 71.49 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003978/1.304, allocations: 5.912 MB / 0.8193 GB, free: 66.95 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004216/1.308, allocations: 3.806 MB / 0.823 GB, free: 66.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.116e-05/1.308, allocations: 40.56 kB / 0.823 GB, free: 66.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=846) (initialization): time 0.01291/1.321, allocations: 8.355 MB / 0.8312 GB, free: 65.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/1.321, allocations: 3.938 kB / 0.8312 GB, free: 65.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.764e-05/1.321, allocations: 125.9 kB / 0.8313 GB, free: 65.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003432/1.325, allocations: 1.066 MB / 0.8323 GB, free: 65.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004445/1.329, allocations: 1.417 MB / 0.8337 GB, free: 65.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005022/1.334, allocations: 4.442 MB / 0.8381 GB, free: 62.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00396/1.338, allocations: 174.9 kB / 0.8382 GB, free: 62.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005224/1.339, allocations: 376.3 kB / 0.8386 GB, free: 62.7 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[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.0007304/1.34, allocations: 434.2 kB / 0.839 GB, free: 62.35 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003753/1.34, allocations: 297.8 kB / 0.8393 GB, free: 62.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00642/1.346, allocations: 4.336 MB / 0.8435 GB, free: 60.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.468e-05/1.347, allocations: 38.11 kB / 0.8436 GB, free: 60.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/1.347, allocations: 0 / 0.8436 GB, free: 60.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.086e-05/1.347, allocations: 13.88 kB / 0.8436 GB, free: 60.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/1.361, allocations: 8.739 MB / 0.8521 GB, free: 57.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.361, allocations: 10.58 kB / 0.8521 GB, free: 57.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/1.363, allocations: 344.7 kB / 0.8524 GB, free: 57.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/1.365, allocations: 0.6042 MB / 0.853 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/1.365, allocations: 15.5 kB / 0.853 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00235/1.368, allocations: 2.298 MB / 0.8553 GB, free: 56.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/1.368, allocations: 9.672 kB / 0.8553 GB, free: 56.29 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00928/1.377, allocations: 6.816 MB / 0.862 GB, free: 53.71 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01179/1.389, allocations: 9.661 MB / 0.8714 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007042/1.389, allocations: 345.5 kB / 0.8717 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005378/1.39, allocations: 9.375 kB / 0.8717 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/1.391, allocations: 68.69 kB / 0.8718 GB, free: 49.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/1.392, allocations: 96.08 kB / 0.8719 GB, free: 49.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002038/1.392, allocations: 61.98 kB / 0.8719 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.00284/1.395, allocations: 1.831 MB / 0.8737 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00561/1.4, allocations: 0.9459 MB / 0.8747 GB, free: 48.91 MB / 0.5261 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.0004586/1.401, allocations: 156.5 kB / 0.8748 GB, free: 48.79 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007889/1.409, allocations: 5.714 MB / 0.8804 GB, free: 45.05 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.409, allocations: 0 / 0.8804 GB, free: 45.05 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003367/1.412, allocations: 2.306 MB / 0.8826 GB, free: 42.93 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/1.414, allocations: 316.7 kB / 0.8829 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/1.429, allocations: 9.314 MB / 0.892 GB, free: 34.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004698/1.433, allocations: 4.084 MB / 0.896 GB, free: 31.17 MB / 0.5261 GB Notification: Performance of SimCode: time 5.61e-07/1.433, allocations: 0 / 0.896 GB, free: 31.17 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1)