Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001488/0.001488, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001868/0.001869, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.511/1.511, allocations: 227.7 MB / 247 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001907, allocations: 67.45 kB / 307.3 MB, free: 388 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1149, allocations: 50.53 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01729/0.1323, allocations: 12.99 MB / 370.9 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2153/0.3476, allocations: 4.286 MB / 375.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003011/0.3507, allocations: 79.09 kB / 375.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008305/0.359, allocations: 3.707 MB / 378.9 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007426/0.3665, allocations: 1.974 MB / 380.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002648/0.3692, allocations: 0.69 MB / 381.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007854/0.3771, allocations: 4.218 MB / 385.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008851/0.386, allocations: 4.752 MB / 390.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004942/0.391, allocations: 1.819 MB / 392.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005629/0.3966, allocations: 2.465 MB / 394.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002154/0.3988, allocations: 408.3 kB / 395.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004666/0.4035, allocations: 1.116 MB / 396.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003476/0.407, allocations: 2.186 MB / 398.5 MB, free: 324 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007521/0.4146, allocations: 2.593 MB / 401.1 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.4284, allocations: 7.827 MB / 409 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4285, allocations: 0 / 409 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4285, allocations: 0 / 409 MB, free: 6.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003495/0.4288, allocations: 4 kB / 409 MB, free: 6.203 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.02409/0.4529, allocations: 6.192 MB / 415.2 MB, free: 52 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.453, allocations: 8.031 kB / 415.2 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002583/0.4556, allocations: 0.8259 MB / 416 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008446/0.4641, allocations: 1.97 MB / 418 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006853/0.4709, allocations: 2.858 MB / 420.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004369/0.4714, allocations: 290.6 kB / 421.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002182/0.4736, allocations: 387.9 kB / 421.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02912/0.5028, allocations: 12.17 MB / 433.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000184/0.503, allocations: 51.59 kB / 433.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009634/0.504, allocations: 183 kB / 433.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004739/0.5087, allocations: 2.185 MB / 436.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02609/0.5348, allocations: 11.14 MB / 447.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07018/0.6051, allocations: 46.58 MB / 493.8 MB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01924/0.6244, allocations: 5.346 MB / 499.1 MB, free: 10.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005041/0.6294, allocations: 3.307 MB / 0.4907 GB, free: 7.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007676/0.6302, allocations: 381.4 kB / 0.491 GB, free: 6.723 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.6303, allocations: 51.88 kB / 0.4911 GB, free: 6.664 MB / 414.1 MB Notification: Performance of pre-optimization done (n=200): time 7.785e-06/0.6303, allocations: 0 / 0.4911 GB, free: 6.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.08429/0.7146, allocations: 26.77 MB / 0.5172 GB, free: 11.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/0.7148, allocations: 158.4 kB / 0.5174 GB, free: 11.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007504/0.7223, allocations: 4.496 MB / 0.5218 GB, free: 7.074 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007824/0.7231, allocations: 57.7 kB / 0.5218 GB, free: 7.012 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002942/0.7261, allocations: 3.424 MB / 0.5252 GB, free: 3.586 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/0.7277, allocations: 0.8779 MB / 0.526 GB, free: 2.715 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002396/0.7301, allocations: 1.449 MB / 0.5274 GB, free: 1.258 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.7303, allocations: 301.1 kB / 0.5277 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2398/0.97, allocations: 3.269 MB / 0.5309 GB, free: 140 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008413/0.9785, allocations: 7.207 MB / 0.538 GB, free: 134.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01559/0.9941, allocations: 11.28 MB / 0.549 GB, free: 125.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002424/0.9944, allocations: 44.86 kB / 0.549 GB, free: 125.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=869) (initialization): time 0.02315/1.018, allocations: 11.38 MB / 0.5601 GB, free: 122.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002204/1.018, allocations: 65.56 kB / 0.5602 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002635/1.018, allocations: 140.6 kB / 0.5603 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002894/1.021, allocations: 1.125 MB / 0.5614 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006409/1.027, allocations: 1.716 MB / 0.5631 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007975/1.036, allocations: 6.338 MB / 0.5693 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006341/1.042, allocations: 396.3 kB / 0.5697 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00166/1.044, allocations: 459.5 kB / 0.5701 GB, free: 118 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (830): * Single equations (assignments): 826 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005991/1.05, allocations: 2.329 MB / 0.5724 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/1.051, allocations: 400.2 kB / 0.5728 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.062, allocations: 6.119 MB / 0.5787 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.868e-05/1.062, allocations: 25.12 kB / 0.5788 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.261e-05/1.062, allocations: 4 kB / 0.5788 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.895e-05/1.062, allocations: 11.8 kB / 0.5788 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02578/1.088, allocations: 12.86 MB / 0.5913 GB, free: 97.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.643e-05/1.088, allocations: 15.91 kB / 0.5914 GB, free: 97.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002855/1.091, allocations: 0.5304 MB / 0.5919 GB, free: 97.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002459/1.093, allocations: 0.945 MB / 0.5928 GB, free: 96.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005943/1.094, allocations: 87.89 kB / 0.5929 GB, free: 95.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00623/1.1, allocations: 6.052 MB / 0.5988 GB, free: 89.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.1, allocations: 4 kB / 0.5988 GB, free: 89.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/1.115, allocations: 10.33 MB / 0.6089 GB, free: 79.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002388/1.117, allocations: 0.89 MB / 0.6097 GB, free: 78.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001369/1.118, allocations: 48.2 kB / 0.6098 GB, free: 78.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003056/1.121, allocations: 151.8 kB / 0.6099 GB, free: 78.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000724/1.122, allocations: 188.4 kB / 0.6101 GB, free: 78.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004211/1.123, allocations: 103.9 kB / 0.6102 GB, free: 78.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005931/1.129, allocations: 2.826 MB / 0.613 GB, free: 75.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.129, allocations: 0 / 0.613 GB, free: 75.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008463/1.137, allocations: 1.186 MB / 0.6141 GB, free: 74.2 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 199 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01444/1.152, allocations: 11 MB / 0.6249 GB, free: 63.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01508/1.167, allocations: 9.74 MB / 0.6344 GB, free: 53.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/1.167, allocations: 4 kB / 0.6344 GB, free: 53.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004644/1.171, allocations: 2.973 MB / 0.6373 GB, free: 50.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005666/1.177, allocations: 0.5041 MB / 0.6378 GB, free: 49.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2771/1.454, allocations: 67.23 MB / 0.7034 GB, free: 146.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005292/1.46, allocations: 3.618 MB / 0.707 GB, free: 145.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006889/1.466, allocations: 2.294 MB / 0.7092 GB, free: 145.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004302/1.471, allocations: 2.318 MB / 0.7115 GB, free: 143.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.423e-06/1.471, allocations: 1.438 kB / 0.7115 GB, free: 143.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1506/1.621, allocations: 95.68 MB / 0.8049 GB, free: 60.33 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/13.61, allocations: 448 / 0.8049 GB, free: 60.33 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1)