Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008561/0.0008564, allocations: 92.08 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004924/0.0004925, allocations: 8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2382, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.04255/0.2808, allocations: 45.5 MB / 372 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02509/0.306, allocations: 9.816 MB / 381.8 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009916/0.3159, allocations: 203.6 kB / 382 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007502/0.3235, allocations: 2.341 MB / 384.3 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01866/0.3422, allocations: 6.973 MB / 391.3 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002829/0.345, allocations: 0.5032 MB / 391.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005908/0.3509, allocations: 4.374 MB / 396.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007136/0.3581, allocations: 4.316 MB / 400.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002787/0.3609, allocations: 1.226 MB / 401.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003639/0.3646, allocations: 1.951 MB / 403.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001069/0.3657, allocations: 140 kB / 403.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002892/0.3686, allocations: 0.7801 MB / 404.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002666/0.3713, allocations: 1.667 MB / 406.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002004/0.3733, allocations: 0.835 MB / 407.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006773/0.3801, allocations: 5.518 MB / 412.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3801, allocations: 0 / 412.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3801, allocations: 0 / 412.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003059/0.3804, allocations: 0 / 412.6 MB, free: 13.07 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01488/0.3953, allocations: 4.425 MB / 417 MB, free: 8.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3954, allocations: 8.031 kB / 417 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006783/0.4022, allocations: 1.936 MB / 419 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005057/0.4072, allocations: 2.303 MB / 421.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002418/0.4075, allocations: 238 kB / 421.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/0.4087, allocations: 311.8 kB / 421.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0202/0.4289, allocations: 10.71 MB / 432.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001843/0.4292, allocations: 43.59 kB / 432.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001081/0.4303, allocations: 159.8 kB / 432.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003498/0.4338, allocations: 1.982 MB / 434.7 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02113/0.4549, allocations: 9.555 MB / 444.3 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2313/0.6863, allocations: 39.87 MB / 484.1 MB, free: 85.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01172/0.698, allocations: 3.838 MB / 488 MB, free: 84.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002365/0.7005, allocations: 1.849 MB / 489.8 MB, free: 83.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005393/0.701, allocations: 365.8 kB / 490.2 MB, free: 83.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.7011, allocations: 50.5 kB / 490.2 MB, free: 82.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 5.39e-06/0.7011, allocations: 0 / 490.2 MB, free: 82.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.04009/0.7412, allocations: 13.75 MB / 0.4922 GB, free: 72.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.7413, allocations: 149.5 kB / 0.4923 GB, free: 72.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005642/0.7469, allocations: 4.146 MB / 0.4964 GB, free: 68.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003534/0.7473, allocations: 46.95 kB / 0.4964 GB, free: 68.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.7489, allocations: 3.163 MB / 0.4995 GB, free: 65.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006807/0.7496, allocations: 0.6158 MB / 0.5001 GB, free: 64.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003958/0.75, allocations: 120 kB / 0.5002 GB, free: 64.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00035/0.7504, allocations: 0.5503 MB / 0.5007 GB, free: 63.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003056/0.7535, allocations: 2.127 MB / 0.5028 GB, free: 61.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005141/0.7586, allocations: 5.944 MB / 0.5086 GB, free: 53.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004358/0.763, allocations: 3.457 MB / 0.512 GB, free: 50.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001292/0.7631, allocations: 40 kB / 0.512 GB, free: 50.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01261/0.7757, allocations: 8.537 MB / 0.5204 GB, free: 41.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001084/0.7759, allocations: 67.95 kB / 0.5204 GB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001643/0.7761, allocations: 136 kB / 0.5206 GB, free: 41.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/0.7781, allocations: 0.9297 MB / 0.5215 GB, free: 40.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003774/0.7819, allocations: 1.4 MB / 0.5228 GB, free: 39.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005383/0.7873, allocations: 4.868 MB / 0.5276 GB, free: 34.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/0.7914, allocations: 339.4 kB / 0.5279 GB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006426/0.792, allocations: 381.4 kB / 0.5283 GB, free: 33.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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.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 (740): * Single equations (assignments): 736 * 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.003182/0.7952, allocations: 2.106 MB / 0.5303 GB, free: 31.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006577/0.7959, allocations: 355.4 kB / 0.5307 GB, free: 31.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005093/0.801, allocations: 3.136 MB / 0.5337 GB, free: 27.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-05/0.801, allocations: 21.34 kB / 0.5338 GB, free: 27.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.8011, allocations: 4 kB / 0.5338 GB, free: 27.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.8011, allocations: 11.92 kB / 0.5338 GB, free: 27.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.813, allocations: 7.841 MB / 0.5414 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.813, allocations: 0 / 0.5414 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.8141, allocations: 263.6 kB / 0.5417 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001756/0.8159, allocations: 0.7173 MB / 0.5424 GB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.8161, allocations: 35.97 kB / 0.5424 GB, free: 18.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004558/0.8206, allocations: 4.411 MB / 0.5467 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.8206, allocations: 4.031 kB / 0.5467 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006844/0.8275, allocations: 5.68 MB / 0.5523 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.8289, allocations: 0.6369 MB / 0.5529 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006804/0.8296, allocations: 28 kB / 0.5529 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/0.8311, allocations: 89.06 kB / 0.553 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/0.8313, allocations: 96.75 kB / 0.5531 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.8315, allocations: 56.91 kB / 0.5532 GB, free: 7.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004408/0.8359, allocations: 2.583 MB / 0.5557 GB, free: 5.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8359, allocations: 4 kB / 0.5557 GB, free: 5.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00521/0.8411, allocations: 0.9642 MB / 0.5566 GB, free: 4.242 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (123): * Single equations (assignments): 119 * 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.0005028/0.8416, allocations: 162 kB / 0.5568 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007487/0.8491, allocations: 5.056 MB / 0.5617 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.8492, allocations: 384 / 0.5617 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002339/0.8515, allocations: 1.544 MB / 0.5632 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003335/0.8549, allocations: 409.8 kB / 0.5636 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01983/0.8747, allocations: 10.67 MB / 0.574 GB, free: 2.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004967/0.8797, allocations: 3.247 MB / 0.5772 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.005291/0.885, allocations: 1.929 MB / 0.5791 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.8861, allocations: 263.3 kB / 0.5794 GB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8861, allocations: 7.938 kB / 0.5794 GB, free: 12.87 MB / 414.1 MB Notification: Performance of Templates: time 0.2407/1.127, allocations: 34.55 MB / 0.6131 GB, free: 138.9 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)