Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.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.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",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.001353/0.001353, allocations: 180.4 kB / 8.519 MB, free: 1.816 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.182/1.182, allocations: 221.4 MB / 230.3 MB, free: 7.621 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.000953/0.000953, allocations: 90.05 kB / 281.2 MB, free: 5.441 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.1563/0.1563, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1715/0.3279, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.4166, allocations: 61.91 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2551/0.6717, allocations: 109.7 MB / 0.6013 GB, free: 2.977 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.672, allocations: 83.78 kB / 0.6014 GB, free: 2.898 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: 2276 * Number of variables: 2276 Notification: Performance of Generate backend data structure: time 0.5588/1.231, allocations: 153.9 MB / 0.7517 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/1.231, allocations: 11.84 kB / 0.7517 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05809/1.289, allocations: 14.76 MB / 0.7661 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0316/1.321, allocations: 12.68 MB / 0.7785 GB, free: 96.09 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/1.321, allocations: 212.4 kB / 0.7787 GB, free: 96.09 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002323/1.323, allocations: 408.9 kB / 0.7791 GB, free: 96.06 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0144/1.338, allocations: 9.394 MB / 0.7882 GB, free: 88.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0191/1.357, allocations: 14.54 MB / 0.8024 GB, free: 72.79 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002726/1.357, allocations: 111 kB / 0.8025 GB, free: 72.68 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001231/1.358, allocations: 48 kB / 0.8026 GB, free: 72.64 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001855/1.36, allocations: 1.587 MB / 0.8041 GB, free: 71.04 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07118/1.431, allocations: 76.67 MB / 0.879 GB, free: 8.672 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007028/1.438, allocations: 5.555 MB / 0.8844 GB, free: 2.977 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.1356/1.574, allocations: 4.592 MB / 0.8889 GB, free: 165.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02024/1.594, allocations: 14.56 MB / 0.9031 GB, free: 161.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/1.594, allocations: 66.41 kB / 0.9032 GB, free: 161.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=262): time 5.3e-06/1.594, allocations: 0 / 0.9032 GB, free: 161.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=341): time 0.0944/1.689, allocations: 40.24 MB / 0.9425 GB, free: 152.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/1.689, allocations: 264 kB / 0.9428 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006623/1.696, allocations: 5.704 MB / 0.9483 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004516/1.696, allocations: 28.11 kB / 0.9483 GB, free: 150.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00172/1.698, allocations: 4.469 MB / 0.9527 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001089/1.699, allocations: 1.267 MB / 0.9539 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000466/1.699, allocations: 0 / 0.9539 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003529/1.7, allocations: 0.7085 MB / 0.9546 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004898/1.705, allocations: 4.391 MB / 0.9589 GB, free: 144.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007/1.712, allocations: 9.764 MB / 0.9685 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008324/1.72, allocations: 6.475 MB / 0.9748 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.974e-05/1.72, allocations: 56 kB / 0.9748 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.0616/1.782, allocations: 24.61 MB / 0.9989 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/1.782, allocations: 10.75 kB / 0.9989 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0434/1.825, allocations: 15.99 MB / 1.014 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04235/1.868, allocations: 11.39 MB / 1.026 GB, free: 92.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007111/1.875, allocations: 2.086 MB / 1.028 GB, free: 90.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03804/1.913, allocations: 28.94 MB / 1.056 GB, free: 61.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008458/1.921, allocations: 447.1 kB / 1.056 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/1.923, allocations: 0.5741 MB / 1.057 GB, free: 60.27 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 869 * Number of states: 0 () * Number of discrete variables: 63 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],bodyCylinder4.color[3],bodyCylinder4.color[2],bodyCylinder4.color[1],bodyCylinder4.body.sphereColor[3],bodyCylinder4.body.sphereColor[2],bodyCylinder4.body.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],spherical2.sphereColor[3],spherical2.sphereColor[2],spherical2.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1105): * Single equations (assignments): 1092 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 38,(5,100.0%) 40} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001868/1.925, allocations: 0.584 MB / 1.057 GB, free: 59.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/1.926, allocations: 0.6208 MB / 1.058 GB, free: 59.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01745/1.943, allocations: 9.736 MB / 1.068 GB, free: 49.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01482/1.958, allocations: 8.552 MB / 1.076 GB, free: 40.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-05/1.958, allocations: 17.88 kB / 1.076 GB, free: 40.58 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-05/1.958, allocations: 19.5 kB / 1.076 GB, free: 40.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1709/2.129, allocations: 21.93 MB / 1.097 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.782e-05/2.129, allocations: 0 / 1.097 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002792/2.132, allocations: 485.3 kB / 1.098 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01351/2.145, allocations: 3.818 MB / 1.102 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007057/2.146, allocations: 58.94 kB / 1.102 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02476/2.171, allocations: 21.8 MB / 1.123 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001352/2.172, allocations: 2.799 MB / 1.126 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02275/2.195, allocations: 15.05 MB / 1.14 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02663/2.222, allocations: 20.42 MB / 1.16 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/2.223, allocations: 0.6453 MB / 1.161 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/2.224, allocations: 34.38 kB / 1.161 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003328/2.228, allocations: 208.3 kB / 1.161 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004945/2.228, allocations: 170.7 kB / 1.161 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003424/2.228, allocations: 96.78 kB / 1.161 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.004943/2.233, allocations: 3.943 MB / 1.165 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008769/2.242, allocations: 1.855 MB / 1.167 GB, free: 124.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 222 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,100.0%) 35,(3,100.0%) 33,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007123/2.243, allocations: 168.4 kB / 1.167 GB, free: 124 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01668/2.26, allocations: 11.21 MB / 1.178 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/2.26, allocations: 4 kB / 1.178 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006164/2.266, allocations: 4.792 MB / 1.183 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004029/2.27, allocations: 0.7682 MB / 1.184 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02836/2.298, allocations: 16.09 MB / 1.199 GB, free: 99.88 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006767/2.305, allocations: 5.946 MB / 1.205 GB, free: 95.44 MB / 0.5105 GB Notification: Performance of SimCode: time 8.72e-07/2.305, allocations: 0 / 1.205 GB, free: 95.44 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe 2>&1)