Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",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.001042/0.001042, allocations: 183.4 kB / 8.52 MB, free: 1.793 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.181/1.181, allocations: 221.4 MB / 230.3 MB, free: 7.637 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.0009341/0.000934, allocations: 85.73 kB / 281.2 MB, free: 5.449 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.1601/0.1601, allocations: 44.14 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1672/0.3273, allocations: 68.04 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.416, allocations: 61.9 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2557/0.6717, allocations: 108.9 MB / 0.6005 GB, free: 3.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.672, allocations: 87.78 kB / 0.6006 GB, free: 3.738 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.2218/0.8938, allocations: 83.69 MB / 0.6823 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.8938, allocations: 15.94 kB / 0.6823 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008685/0.9025, allocations: 1.788 MB / 0.6841 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01072/0.9133, allocations: 4.313 MB / 0.6883 GB, free: 9.223 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.9135, allocations: 132 kB / 0.6884 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001002/0.9145, allocations: 239.9 kB / 0.6886 GB, free: 8.859 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0095/0.924, allocations: 6.27 MB / 0.6948 GB, free: 2.582 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1381/1.062, allocations: 9.376 MB / 0.7039 GB, free: 170.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001287/1.062, allocations: 58 kB / 0.704 GB, free: 170.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004982/1.063, allocations: 30 kB / 0.704 GB, free: 170.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001094/1.064, allocations: 1.004 MB / 0.705 GB, free: 170.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03643/1.1, allocations: 44.74 MB / 0.7487 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003257/1.104, allocations: 3.16 MB / 0.7518 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/1.105, allocations: 1.768 MB / 0.7535 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007197/1.113, allocations: 5.886 MB / 0.7592 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/1.113, allocations: 46 kB / 0.7593 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=121): time 3.316e-06/1.113, allocations: 0 / 0.7593 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=128): time 0.01673/1.129, allocations: 10.48 MB / 0.7695 GB, free: 134 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/1.129, allocations: 145.6 kB / 0.7697 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003503/1.133, allocations: 3.034 MB / 0.7726 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001531/1.133, allocations: 25.7 kB / 0.7726 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001006/1.134, allocations: 2.882 MB / 0.7755 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003699/1.134, allocations: 0.5115 MB / 0.776 GB, free: 130.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/1.135, allocations: 0 / 0.776 GB, free: 130.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002198/1.135, allocations: 0.5495 MB / 0.7765 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001943/1.137, allocations: 1.725 MB / 0.7782 GB, free: 129.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002947/1.14, allocations: 5.42 MB / 0.7835 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/1.143, allocations: 3.05 MB / 0.7864 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.123e-05/1.143, allocations: 38.62 kB / 0.7865 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.01073/1.154, allocations: 6.836 MB / 0.7932 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/1.154, allocations: 5.156 kB / 0.7932 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001504/1.154, allocations: 133.7 kB / 0.7933 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/1.156, allocations: 0.854 MB / 0.7941 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004227/1.161, allocations: 1.312 MB / 0.7954 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005187/1.166, allocations: 4.484 MB / 0.7998 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003893/1.17, allocations: 174.4 kB / 0.8 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005244/1.17, allocations: 374.7 kB / 0.8003 GB, free: 116.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 38 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (701): * Single equations (assignments): 697 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005938/1.171, allocations: 425.7 kB / 0.8007 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003914/1.171, allocations: 299.9 kB / 0.801 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/1.176, allocations: 2.353 MB / 0.8033 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.823e-05/1.176, allocations: 15.38 kB / 0.8033 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/1.176, allocations: 4 kB / 0.8033 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/1.176, allocations: 3.516 kB / 0.8033 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009457/1.185, allocations: 5.589 MB / 0.8088 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-06/1.185, allocations: 0 / 0.8088 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/1.186, allocations: 192.5 kB / 0.809 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/1.188, allocations: 0.6384 MB / 0.8096 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/1.188, allocations: 11.38 kB / 0.8096 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00444/1.193, allocations: 4.106 MB / 0.8136 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.193, allocations: 3.938 kB / 0.8136 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005836/1.199, allocations: 4.521 MB / 0.818 GB, free: 101 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006986/1.206, allocations: 6.328 MB / 0.8242 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006106/1.206, allocations: 348.7 kB / 0.8245 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004509/1.207, allocations: 0 / 0.8245 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/1.208, allocations: 46.58 kB / 0.8246 GB, free: 95.06 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/1.208, allocations: 62.72 kB / 0.8246 GB, free: 95.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/1.208, allocations: 32 kB / 0.8247 GB, free: 94.99 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002455/1.211, allocations: 2.029 MB / 0.8267 GB, free: 93.23 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00445/1.215, allocations: 0.7815 MB / 0.8274 GB, free: 92.46 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003263/1.216, allocations: 137.4 kB / 0.8275 GB, free: 92.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004873/1.22, allocations: 4.104 MB / 0.8316 GB, free: 88.63 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/1.22, allocations: 0 / 0.8316 GB, free: 88.63 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00129/1.222, allocations: 1.142 MB / 0.8327 GB, free: 87.59 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/1.223, allocations: 325.9 kB / 0.833 GB, free: 87.32 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/1.234, allocations: 6.736 MB / 0.8396 GB, free: 81.28 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004304/1.238, allocations: 3.442 MB / 0.8429 GB, free: 78.61 MB / 0.4948 GB Notification: Performance of SimCode: time 9.42e-07/1.238, allocations: 0 / 0.8429 GB, free: 78.61 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1)