Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",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.001463/0.001463, allocations: 181.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.202/1.202, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.001015/0.001015, allocations: 86.3 kB / 281.2 MB, free: 5.477 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.168/0.168, allocations: 44.14 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.172/0.34, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0901/0.4301, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.269/0.6992, allocations: 106.1 MB / 0.5978 GB, free: 6.562 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.6995, allocations: 75.95 kB / 0.5979 GB, free: 6.488 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.4921/1.192, allocations: 130.6 MB / 0.7254 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/1.192, allocations: 11.78 kB / 0.7254 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02293/1.215, allocations: 5.568 MB / 0.7309 GB, free: 107.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01723/1.232, allocations: 8.035 MB / 0.7387 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002308/1.232, allocations: 189.6 kB / 0.7389 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00229/1.234, allocations: 339.3 kB / 0.7392 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01502/1.249, allocations: 10.82 MB / 0.7498 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02512/1.275, allocations: 13.94 MB / 0.7634 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003754/1.275, allocations: 55.44 kB / 0.7634 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002403/1.277, allocations: 20.62 kB / 0.7635 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002931/1.28, allocations: 1.775 MB / 0.7652 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07738/1.358, allocations: 54.23 MB / 0.8182 GB, free: 57.22 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007023/1.365, allocations: 5.779 MB / 0.8238 GB, free: 52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006105/1.371, allocations: 5.138 MB / 0.8288 GB, free: 46.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0259/1.397, allocations: 18.21 MB / 0.8466 GB, free: 27.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/1.397, allocations: 68.81 kB / 0.8467 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=336): time 6.853e-06/1.397, allocations: 0 / 0.8467 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=389): time 0.06732/1.464, allocations: 33.73 MB / 0.8796 GB, free: 9.859 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/1.464, allocations: 111.8 kB / 0.8797 GB, free: 9.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005634/1.47, allocations: 3.704 MB / 0.8833 GB, free: 6.012 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007812/1.471, allocations: 29.69 kB / 0.8834 GB, free: 5.977 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002286/1.473, allocations: 3.662 MB / 0.8869 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001783/1.475, allocations: 1.356 MB / 0.8883 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000463/1.475, allocations: 4 kB / 0.8883 GB, free: 0.8789 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004917/1.476, allocations: 0.6451 MB / 0.8889 GB, free: 232 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1414/1.617, allocations: 3.891 MB / 0.8927 GB, free: 171.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006315/1.624, allocations: 7.849 MB / 0.9004 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006728/1.63, allocations: 5.569 MB / 0.9058 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.818e-05/1.631, allocations: 42.38 kB / 0.9058 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1056) (initialization): time 0.02231/1.653, allocations: 13.28 MB / 0.9188 GB, free: 166.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/1.653, allocations: 3.688 kB / 0.9188 GB, free: 166.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001171/1.653, allocations: 142.8 kB / 0.9189 GB, free: 166.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007114/1.66, allocations: 2.422 MB / 0.9213 GB, free: 166.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007315/1.667, allocations: 1.892 MB / 0.9232 GB, free: 166.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01593/1.683, allocations: 12.48 MB / 0.9354 GB, free: 162.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006125/1.69, allocations: 258.4 kB / 0.9356 GB, free: 162.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/1.691, allocations: 453.1 kB / 0.936 GB, free: 162.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.color[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 (959): * Single equations (assignments): 951 * 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: 2 {(6,69.4%) 32,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001196/1.692, allocations: 473.8 kB / 0.9365 GB, free: 162 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006747/1.693, allocations: 449.8 kB / 0.9369 GB, free: 162 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01579/1.708, allocations: 9.532 MB / 0.9462 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.568e-05/1.708, allocations: 54.78 kB / 0.9463 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/1.708, allocations: 10.94 kB / 0.9463 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.666e-05/1.709, allocations: 18.38 kB / 0.9463 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03205/1.741, allocations: 17.63 MB / 0.9635 GB, free: 151.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-05/1.741, allocations: 4 kB / 0.9635 GB, free: 151.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00354/1.744, allocations: 0.6423 MB / 0.9641 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006914/1.751, allocations: 2.19 MB / 0.9663 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004737/1.752, allocations: 13.61 kB / 0.9663 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/1.766, allocations: 11.37 MB / 0.9774 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/1.766, allocations: 8 kB / 0.9774 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02048/1.786, allocations: 14.58 MB / 0.9916 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02536/1.812, allocations: 20 MB / 1.011 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/1.813, allocations: 479 kB / 1.012 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001352/1.814, allocations: 11.94 kB / 1.012 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002778/1.817, allocations: 146.7 kB / 1.012 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005664/1.818, allocations: 177 kB / 1.012 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003566/1.818, allocations: 98.36 kB / 1.012 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003731/1.822, allocations: 2.499 MB / 1.014 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00711/1.829, allocations: 1.432 MB / 1.016 GB, free: 105.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 298 * 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: 2 {(6,69.4%) 29,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006278/1.829, allocations: 165.2 kB / 1.016 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01231/1.842, allocations: 9.382 MB / 1.025 GB, free: 96.65 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/1.842, allocations: 0 / 1.025 GB, free: 96.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00564/1.847, allocations: 3.963 MB / 1.029 GB, free: 93.08 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002832/1.85, allocations: 487.8 kB / 1.03 GB, free: 92.69 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02108/1.871, allocations: 12.82 MB / 1.042 GB, free: 81.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007653/1.879, allocations: 5.032 MB / 1.047 GB, free: 76.3 MB / 0.5105 GB Notification: Performance of SimCode: time 9.32e-07/1.879, allocations: 0 / 1.047 GB, free: 76.3 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1)