Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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_3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",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.0009737/0.0009737, allocations: 182.7 kB / 8.521 MB, free: 1.789 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.172/1.172, allocations: 221.4 MB / 230.3 MB, free: 7.73 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.0009324/0.0009324, allocations: 79.42 kB / 281.2 MB, free: 5.48 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.1652/0.1652, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1691/0.3344, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08849/0.4229, allocations: 61.92 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.258/0.6808, allocations: 109.6 MB / 0.6012 GB, free: 3.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.6811, allocations: 84.44 kB / 0.6013 GB, free: 3.012 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.261/0.9422, allocations: 97.9 MB / 0.6969 GB, free: 412 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.9422, allocations: 11.94 kB / 0.6969 GB, free: 400 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1307/1.073, allocations: 1.891 MB / 0.6988 GB, free: 167 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009727/1.083, allocations: 4.784 MB / 0.7035 GB, free: 166.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/1.083, allocations: 159.6 kB / 0.7036 GB, free: 166.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007681/1.084, allocations: 293 kB / 0.7039 GB, free: 166.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009096/1.093, allocations: 7.707 MB / 0.7114 GB, free: 166.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/1.104, allocations: 11.27 MB / 0.7224 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/1.104, allocations: 63.75 kB / 0.7225 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005601/1.105, allocations: 30.44 kB / 0.7225 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001235/1.106, allocations: 1.224 MB / 0.7237 GB, free: 163.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04469/1.151, allocations: 52.88 MB / 0.7753 GB, free: 130 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003914/1.155, allocations: 4.377 MB / 0.7796 GB, free: 127.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002862/1.158, allocations: 3.26 MB / 0.7828 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01395/1.172, allocations: 10.17 MB / 0.7927 GB, free: 121.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/1.172, allocations: 51.53 kB / 0.7928 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=197): time 4.158e-06/1.172, allocations: 0 / 0.7928 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=228): time 0.04162/1.213, allocations: 21.84 MB / 0.8141 GB, free: 103 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/1.214, allocations: 158 kB / 0.8143 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004004/1.218, allocations: 3.251 MB / 0.8174 GB, free: 99.99 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000199/1.218, allocations: 25.7 kB / 0.8175 GB, free: 99.96 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001143/1.219, allocations: 3.253 MB / 0.8206 GB, free: 97.03 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005711/1.219, allocations: 0.8371 MB / 0.8215 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/1.22, allocations: 0 / 0.8215 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002491/1.22, allocations: 0.5906 MB / 0.822 GB, free: 95.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003096/1.223, allocations: 2.796 MB / 0.8248 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004212/1.227, allocations: 6.71 MB / 0.8313 GB, free: 85.08 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004491/1.232, allocations: 4.292 MB / 0.8355 GB, free: 81.42 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.754e-05/1.232, allocations: 40 kB / 0.8356 GB, free: 81.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01331/1.245, allocations: 9.531 MB / 0.8449 GB, free: 73.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/1.245, allocations: 8.031 kB / 0.8449 GB, free: 73.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-05/1.245, allocations: 140 kB / 0.845 GB, free: 73.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002551/1.248, allocations: 1.069 MB / 0.846 GB, free: 72.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005373/1.253, allocations: 1.622 MB / 0.8476 GB, free: 70.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006313/1.26, allocations: 5.517 MB / 0.853 GB, free: 65.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00443/1.264, allocations: 233.3 kB / 0.8532 GB, free: 65.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006217/1.265, allocations: 424.2 kB / 0.8536 GB, free: 65.37 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 639 * Number of states: 0 () * Number of discrete variables: 44 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (835): * Single equations (assignments): 831 * 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.0008334/1.266, allocations: 468.7 kB / 0.8541 GB, free: 64.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006315/1.266, allocations: 355.3 kB / 0.8544 GB, free: 64.56 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007907/1.274, allocations: 5.083 MB / 0.8594 GB, free: 59.74 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.728e-05/1.274, allocations: 20 kB / 0.8594 GB, free: 59.72 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/1.274, allocations: 4 kB / 0.8594 GB, free: 59.71 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.822e-05/1.274, allocations: 15.95 kB / 0.8594 GB, free: 59.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01581/1.29, allocations: 10.26 MB / 0.8694 GB, free: 49.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.956e-06/1.29, allocations: 4 kB / 0.8695 GB, free: 49.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00251/1.293, allocations: 431.4 kB / 0.8699 GB, free: 48.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0024/1.295, allocations: 0.8593 MB / 0.8707 GB, free: 48.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002248/1.295, allocations: 15.98 kB / 0.8707 GB, free: 48.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005709/1.301, allocations: 5.243 MB / 0.8758 GB, free: 42.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.301, allocations: 4 kB / 0.8758 GB, free: 42.75 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01054/1.311, allocations: 9.106 MB / 0.8847 GB, free: 33.53 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01362/1.325, allocations: 12.72 MB / 0.8972 GB, free: 20.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.327, allocations: 0.7972 MB / 0.8979 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000831/1.328, allocations: 11.98 kB / 0.898 GB, free: 19.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/1.33, allocations: 87.88 kB / 0.898 GB, free: 19.78 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/1.33, allocations: 124.2 kB / 0.8982 GB, free: 19.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/1.33, allocations: 64 kB / 0.8982 GB, free: 19.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003343/1.334, allocations: 2.171 MB / 0.9003 GB, free: 17.45 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006086/1.34, allocations: 1.04 MB / 0.9013 GB, free: 16.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 196 * 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 Backend phase and start with SimCode phase: time 0.0005499/1.34, allocations: 159.4 kB / 0.9015 GB, free: 16.26 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008335/1.349, allocations: 6.617 MB / 0.908 GB, free: 9.664 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.349, allocations: 8.062 kB / 0.908 GB, free: 9.656 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003115/1.352, allocations: 2.492 MB / 0.9104 GB, free: 7.156 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/1.354, allocations: 342.7 kB / 0.9107 GB, free: 6.828 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1444/1.498, allocations: 9.594 MB / 0.9201 GB, free: 150.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004592/1.503, allocations: 4.086 MB / 0.9241 GB, free: 149.9 MB / 0.4948 GB Notification: Performance of SimCode: time 7.52e-07/1.503, allocations: 0 / 0.9241 GB, free: 149.9 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1)