Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",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.0009912/0.0009912, allocations: 187.6 kB / 8.525 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.164/1.164, 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.0008986/0.0008987, allocations: 84.73 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.1551/0.1551, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1664/0.3216, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08715/0.4087, allocations: 61.92 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2569/0.6657, allocations: 104.6 MB / 0.5963 GB, free: 8.125 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.6659, allocations: 78.92 kB / 0.5964 GB, free: 8.051 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: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.2333/0.8992, allocations: 91.81 MB / 0.6861 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.8992, allocations: 15.94 kB / 0.6861 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01372/0.913, allocations: 2.821 MB / 0.6888 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.9247, allocations: 4.518 MB / 0.6933 GB, free: 4.062 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.9249, allocations: 136 kB / 0.6934 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001601/0.9265, allocations: 251.9 kB / 0.6936 GB, free: 3.684 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1739/1.1, allocations: 7.738 MB / 0.7012 GB, free: 99.13 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/1.113, allocations: 10.1 MB / 0.711 GB, free: 97.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.667e-05/1.113, allocations: 33.48 kB / 0.7111 GB, free: 97.83 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004962/1.114, allocations: 11.41 kB / 0.7111 GB, free: 97.83 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001054/1.115, allocations: 1.265 MB / 0.7123 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03578/1.151, allocations: 34.45 MB / 0.746 GB, free: 85.09 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003041/1.154, allocations: 2.636 MB / 0.7485 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002213/1.156, allocations: 2.163 MB / 0.7507 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/1.168, allocations: 9.341 MB / 0.7598 GB, free: 81.17 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/1.168, allocations: 47.59 kB / 0.7598 GB, free: 81.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=204): time 3.767e-06/1.168, allocations: 0 / 0.7598 GB, free: 81.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=231): time 0.02104/1.189, allocations: 10.14 MB / 0.7697 GB, free: 78.03 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/1.189, allocations: 78.66 kB / 0.7698 GB, free: 77.96 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003477/1.192, allocations: 2.599 MB / 0.7723 GB, free: 77.02 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001918/1.193, allocations: 25.7 kB / 0.7724 GB, free: 76.98 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001097/1.194, allocations: 2.922 MB / 0.7752 GB, free: 74.76 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005758/1.194, allocations: 0.8576 MB / 0.7761 GB, free: 74.13 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/1.195, allocations: 0 / 0.7761 GB, free: 74.13 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002499/1.195, allocations: 0.5672 MB / 0.7766 GB, free: 73.71 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002988/1.198, allocations: 2.345 MB / 0.7789 GB, free: 72.94 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003984/1.202, allocations: 5.644 MB / 0.7844 GB, free: 67.74 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004417/1.206, allocations: 3.712 MB / 0.788 GB, free: 65.75 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.137e-05/1.206, allocations: 41.09 kB / 0.7881 GB, free: 65.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=803) (initialization): time 0.01288/1.219, allocations: 8.053 MB / 0.7959 GB, free: 58.76 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/1.219, allocations: 4 kB / 0.7959 GB, free: 58.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.471e-05/1.219, allocations: 116 kB / 0.7961 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003412/1.223, allocations: 0.9389 MB / 0.797 GB, free: 57.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007439/1.23, allocations: 1.363 MB / 0.7983 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003111/1.233, allocations: 2.348 MB / 0.8006 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004356/1.238, allocations: 171.5 kB / 0.8008 GB, free: 54.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005313/1.238, allocations: 369.1 kB / 0.8011 GB, free: 54.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 532 * Number of states: 0 () * Number of discrete variables: 26 (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 (750): * Single equations (assignments): 741 * 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 prepare postOptimizeDAE: time 0.0006922/1.239, allocations: 404.4 kB / 0.8015 GB, free: 53.67 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004962/1.239, allocations: 276.3 kB / 0.8018 GB, free: 53.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007829/1.247, allocations: 4.588 MB / 0.8062 GB, free: 49.61 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.995e-05/1.247, allocations: 35.61 kB / 0.8063 GB, free: 49.58 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/1.247, allocations: 4 kB / 0.8063 GB, free: 49.58 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/1.247, allocations: 10.69 kB / 0.8063 GB, free: 49.58 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0154/1.263, allocations: 8.917 MB / 0.815 GB, free: 42.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/1.263, allocations: 0 / 0.815 GB, free: 42.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/1.265, allocations: 339.1 kB / 0.8153 GB, free: 41.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003249/1.268, allocations: 0.763 MB / 0.8161 GB, free: 41.45 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002264/1.268, allocations: 31.11 kB / 0.8161 GB, free: 41.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/1.27, allocations: 2.13 MB / 0.8182 GB, free: 39.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.27, allocations: 7.391 kB / 0.8182 GB, free: 39.41 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009822/1.28, allocations: 6.927 MB / 0.8249 GB, free: 33.29 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01209/1.292, allocations: 9.837 MB / 0.8346 GB, free: 24.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008042/1.293, allocations: 329.4 kB / 0.8349 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007194/1.294, allocations: 11.94 kB / 0.8349 GB, free: 24.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/1.295, allocations: 55.91 kB / 0.8349 GB, free: 24.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002436/1.295, allocations: 109.7 kB / 0.835 GB, free: 23.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001749/1.295, allocations: 63.33 kB / 0.8351 GB, free: 23.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002356/1.298, allocations: 1.712 MB / 0.8368 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004915/1.303, allocations: 0.8796 MB / 0.8376 GB, free: 21.31 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 174 * 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.000431/1.303, allocations: 144.2 kB / 0.8378 GB, free: 21.17 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008376/1.312, allocations: 5.943 MB / 0.8436 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-05/1.312, allocations: 4.125 kB / 0.8436 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003726/1.315, allocations: 2.399 MB / 0.8459 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/1.317, allocations: 275.2 kB / 0.8462 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/1.332, allocations: 8.794 MB / 0.8548 GB, free: 3.676 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004788/1.337, allocations: 3.823 MB / 0.8585 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of SimCode: time 7.62e-07/1.337, allocations: 0 / 0.8585 GB, free: 15.83 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1)