Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.0009965/0.0009965, allocations: 170.2 kB / 8.514 MB, free: 1.855 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.14/1.14, allocations: 221.4 MB / 230.3 MB, free: 7.656 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.0009162/0.0009161, allocations: 82.17 kB / 281.2 MB, free: 5.457 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.155/0.155, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.164/0.319, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08688/0.4059, allocations: 61.92 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2469/0.6529, allocations: 104.6 MB / 0.5963 GB, free: 8.141 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.6531, allocations: 79.23 kB / 0.5964 GB, free: 8.066 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: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.2325/0.8856, allocations: 92.2 MB / 0.6865 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.8857, allocations: 15.94 kB / 0.6865 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01352/0.8992, allocations: 2.856 MB / 0.6893 GB, free: 8.238 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.9104, allocations: 4.526 MB / 0.6937 GB, free: 3.66 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.9106, allocations: 147.8 kB / 0.6938 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/0.9117, allocations: 248 kB / 0.6941 GB, free: 3.273 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.132/1.044, allocations: 7.891 MB / 0.7018 GB, free: 176.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01132/1.055, allocations: 10.27 MB / 0.7118 GB, free: 175 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.555e-05/1.055, allocations: 30.59 kB / 0.7118 GB, free: 175 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005156/1.056, allocations: 17.3 kB / 0.7118 GB, free: 175 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001093/1.057, allocations: 1.295 MB / 0.7131 GB, free: 175 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03552/1.092, allocations: 35.13 MB / 0.7474 GB, free: 159.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/1.095, allocations: 2.703 MB / 0.75 GB, free: 158.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002068/1.097, allocations: 2.258 MB / 0.7523 GB, free: 157.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01107/1.108, allocations: 9.585 MB / 0.7616 GB, free: 152 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/1.108, allocations: 55.31 kB / 0.7617 GB, free: 151.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=204): time 4.037e-06/1.108, allocations: 0 / 0.7617 GB, free: 151.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=225): time 0.0237/1.132, allocations: 11.12 MB / 0.7725 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.22e-05/1.132, allocations: 69.41 kB / 0.7726 GB, free: 148 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003118/1.135, allocations: 2.603 MB / 0.7751 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001272/1.135, allocations: 25.7 kB / 0.7752 GB, free: 145.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001059/1.136, allocations: 2.953 MB / 0.778 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000523/1.137, allocations: 0.8299 MB / 0.7789 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/1.137, allocations: 0 / 0.7789 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002319/1.137, allocations: 0.5681 MB / 0.7794 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/1.14, allocations: 2.307 MB / 0.7817 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003402/1.143, allocations: 5.6 MB / 0.7871 GB, free: 133 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003917/1.147, allocations: 3.676 MB / 0.7907 GB, free: 130.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.78e-05/1.147, allocations: 32 kB / 0.7907 GB, free: 130 MB / 0.4948 GB Notification: Performance of matching and sorting (n=797) (initialization): time 0.01176/1.159, allocations: 7.928 MB / 0.7985 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/1.159, allocations: 8 kB / 0.7985 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.593e-05/1.159, allocations: 119.8 kB / 0.7986 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003265/1.162, allocations: 0.9018 MB / 0.7995 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003898/1.166, allocations: 1.36 MB / 0.8008 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/1.168, allocations: 2.353 MB / 0.8031 GB, free: 119 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/1.172, allocations: 166.4 kB / 0.8033 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004379/1.172, allocations: 358.9 kB / 0.8036 GB, free: 118.5 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 (744): * Single equations (assignments): 735 * 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 {(3,100.0%),(2,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.0006008/1.173, allocations: 411.5 kB / 0.804 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/1.173, allocations: 276.3 kB / 0.8043 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007196/1.18, allocations: 4.46 MB / 0.8086 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.685e-05/1.18, allocations: 35.14 kB / 0.8087 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/1.18, allocations: 4 kB / 0.8087 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/1.18, allocations: 7.078 kB / 0.8087 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/1.194, allocations: 8.633 MB / 0.8171 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/1.194, allocations: 7.906 kB / 0.8171 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/1.196, allocations: 329.9 kB / 0.8174 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002711/1.198, allocations: 0.5406 MB / 0.818 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001685/1.199, allocations: 19.03 kB / 0.818 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001618/1.2, allocations: 1.942 MB / 0.8199 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.2, allocations: 2.25 kB / 0.8199 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008402/1.209, allocations: 6.634 MB / 0.8264 GB, free: 98.39 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01043/1.219, allocations: 9.417 MB / 0.8355 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005071/1.22, allocations: 329.3 kB / 0.8359 GB, free: 89 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004463/1.22, allocations: 12 kB / 0.8359 GB, free: 88.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/1.221, allocations: 51.92 kB / 0.8359 GB, free: 88.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/1.222, allocations: 101.8 kB / 0.836 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/1.222, allocations: 63.97 kB / 0.8361 GB, free: 88.78 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001945/1.224, allocations: 1.704 MB / 0.8377 GB, free: 87.07 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004284/1.228, allocations: 0.8772 MB / 0.8386 GB, free: 86.2 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,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 168 * 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.0003417/1.228, allocations: 164.5 kB / 0.8388 GB, free: 86.04 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00673/1.235, allocations: 5.775 MB / 0.8444 GB, free: 80.23 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.235, allocations: 0.5625 kB / 0.8444 GB, free: 80.23 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002877/1.238, allocations: 2.223 MB / 0.8466 GB, free: 77.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/1.239, allocations: 290.3 kB / 0.8468 GB, free: 77.69 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/1.251, allocations: 8.737 MB / 0.8554 GB, free: 68.92 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003921/1.255, allocations: 3.841 MB / 0.8591 GB, free: 65.06 MB / 0.4948 GB Notification: Performance of SimCode: time 5.01e-07/1.255, allocations: 0 / 0.8591 GB, free: 65.06 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1)