Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",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.0009053/0.0009053, allocations: 181.8 kB / 8.135 MB, free: 2.199 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.084/1.084, allocations: 221.4 MB / 229.9 MB, free: 3.363 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.0008261/0.0008261, allocations: 108.5 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0934/0.09425, allocations: 55.81 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.2872, allocations: 50.39 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09787/0.3851, allocations: 99.19 MB / 486.2 MB, free: 3.551 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3853, allocations: 87.2 kB / 486.3 MB, free: 3.469 MB / 362.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.3472/0.7326, allocations: 97.71 MB / 0.5703 GB, free: 38.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.7326, allocations: 8 kB / 0.5703 GB, free: 38.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00803/0.7407, allocations: 1.892 MB / 0.5722 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009233/0.7499, allocations: 4.726 MB / 0.5768 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.75, allocations: 164 kB / 0.5769 GB, free: 31.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007318/0.7508, allocations: 291.9 kB / 0.5772 GB, free: 31.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008408/0.7592, allocations: 7.641 MB / 0.5847 GB, free: 23.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/0.77, allocations: 11.32 MB / 0.5957 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001291/0.7701, allocations: 71.31 kB / 0.5958 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005142/0.7707, allocations: 32 kB / 0.5958 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001124/0.7718, allocations: 1.207 MB / 0.597 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05273/0.8245, allocations: 54.19 MB / 0.6499 GB, free: 2.051 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1164/0.9409, allocations: 4.268 MB / 0.6541 GB, free: 124.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002785/0.9438, allocations: 3.15 MB / 0.6572 GB, free: 124.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/0.956, allocations: 9.548 MB / 0.6665 GB, free: 122.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.956, allocations: 53.91 kB / 0.6665 GB, free: 122.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 4.869e-06/0.956, allocations: 5.906 kB / 0.6666 GB, free: 122.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=225): time 0.03753/0.9936, allocations: 21.32 MB / 0.6874 GB, free: 120 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.9937, allocations: 148.2 kB / 0.6875 GB, free: 119.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004053/0.9977, allocations: 3.33 MB / 0.6908 GB, free: 119.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003776/0.9981, allocations: 25.7 kB / 0.6908 GB, free: 119.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/0.9993, allocations: 3.294 MB / 0.694 GB, free: 117.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006674/1, allocations: 0.8336 MB / 0.6948 GB, free: 117 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/1, allocations: 0 / 0.6948 GB, free: 117 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002768/1.001, allocations: 0.5944 MB / 0.6954 GB, free: 116.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003031/1.004, allocations: 2.794 MB / 0.6981 GB, free: 116.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004182/1.008, allocations: 6.833 MB / 0.7048 GB, free: 109.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004625/1.012, allocations: 4.331 MB / 0.709 GB, free: 108.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.801e-05/1.012, allocations: 46.09 kB / 0.7091 GB, free: 108.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=892) (initialization): time 0.01537/1.028, allocations: 9.613 MB / 0.7185 GB, free: 105.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/1.028, allocations: 4.656 kB / 0.7185 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/1.028, allocations: 145.2 kB / 0.7186 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002624/1.031, allocations: 1.065 MB / 0.7197 GB, free: 105.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006036/1.037, allocations: 1.663 MB / 0.7213 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005823/1.043, allocations: 5.525 MB / 0.7267 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005134/1.048, allocations: 235.2 kB / 0.7269 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009355/1.049, allocations: 430.8 kB / 0.7273 GB, free: 102.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 660 * 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 (853): * Single equations (assignments): 849 * 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.0008533/1.05, allocations: 473.1 kB / 0.7278 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005206/1.05, allocations: 355.3 kB / 0.7281 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00691/1.057, allocations: 4.993 MB / 0.733 GB, free: 97.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.62e-05/1.057, allocations: 20 kB / 0.733 GB, free: 97.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/1.057, allocations: 4 kB / 0.733 GB, free: 97.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.75e-05/1.057, allocations: 10.5 kB / 0.733 GB, free: 97.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/1.074, allocations: 10.11 MB / 0.7429 GB, free: 89.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/1.074, allocations: 0 / 0.7429 GB, free: 89.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002275/1.076, allocations: 419.8 kB / 0.7433 GB, free: 89.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002279/1.078, allocations: 0.87 MB / 0.7441 GB, free: 88.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002932/1.079, allocations: 15.89 kB / 0.7441 GB, free: 88.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005389/1.084, allocations: 5.241 MB / 0.7493 GB, free: 83.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/1.084, allocations: 7.938 kB / 0.7493 GB, free: 83.72 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009833/1.094, allocations: 8.977 MB / 0.758 GB, free: 75.79 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0126/1.107, allocations: 12.52 MB / 0.7703 GB, free: 64.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/1.109, allocations: 0.7871 MB / 0.771 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009394/1.109, allocations: 4 kB / 0.771 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/1.112, allocations: 86.28 kB / 0.7711 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003297/1.112, allocations: 118.8 kB / 0.7712 GB, free: 63.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001957/1.112, allocations: 63.89 kB / 0.7713 GB, free: 63.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003571/1.116, allocations: 2.219 MB / 0.7735 GB, free: 61.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006235/1.122, allocations: 1.043 MB / 0.7745 GB, free: 60.8 MB / 426.7 MB 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,position1.phi,position1.w,position2.phi,position2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 193 * 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.0004963/1.122, allocations: 155.5 kB / 0.7746 GB, free: 60.65 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008554/1.131, allocations: 6.597 MB / 0.7811 GB, free: 54.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.131, allocations: 0 / 0.7811 GB, free: 54.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003031/1.134, allocations: 2.46 MB / 0.7835 GB, free: 52.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/1.136, allocations: 354 kB / 0.7838 GB, free: 52.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/1.155, allocations: 9.552 MB / 0.7931 GB, free: 43.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004863/1.159, allocations: 4.098 MB / 0.7971 GB, free: 40.57 MB / 426.7 MB Notification: Performance of SimCode: time 7.32e-07/1.159, allocations: 0 / 0.7971 GB, free: 40.57 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1)