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.ActuatedDrive.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.ActuatedDrive,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00138/0.00138, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 202 kB / 18.74 MB, free: 4.332 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.532/1.532, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.002108/0.002108, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2854, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01459/0.3, allocations: 11 MB / 420.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0092/0.3093, allocations: 3.82 MB / 423.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00231/0.3117, allocations: 63.81 kB / 423.9 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005822/0.3176, allocations: 2.675 MB / 426.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005612/0.3232, allocations: 1.755 MB / 428.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.325, allocations: 0.5732 MB / 428.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006279/0.3313, allocations: 3.579 MB / 432.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005846/0.3372, allocations: 3.595 MB / 436.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003294/0.3406, allocations: 1.448 MB / 437.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003788/0.3444, allocations: 1.99 MB / 439.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001425/0.3458, allocations: 312 kB / 439.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002968/0.3488, allocations: 1.03 MB / 440.9 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00288/0.3517, allocations: 1.781 MB / 442.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004421/0.3562, allocations: 2.085 MB / 444.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.367, allocations: 6.688 MB / 451.4 MB, free: 6.773 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.3671, allocations: 0 / 451.4 MB, free: 6.773 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3671, allocations: 0 / 451.4 MB, free: 6.773 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002783/0.3674, allocations: 0 / 451.4 MB, free: 6.773 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02096/0.3884, allocations: 5.18 MB / 456.6 MB, free: 1.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.3884, allocations: 12.03 kB / 456.6 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002353/0.3908, allocations: 0.6742 MB / 457.3 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007755/0.3986, allocations: 1.893 MB / 459.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005903/0.4045, allocations: 2.468 MB / 461.7 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002438/0.4048, allocations: 225.7 kB / 461.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001311/0.4061, allocations: 299.8 kB / 462.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0218/0.428, allocations: 10.03 MB / 472.2 MB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001529/0.4282, allocations: 43.62 kB / 472.3 MB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008032/0.429, allocations: 143.9 kB / 472.4 MB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003469/0.4324, allocations: 1.813 MB / 474.2 MB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01972/0.4522, allocations: 8.959 MB / 483.2 MB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05209/0.5043, allocations: 37.81 MB / 0.5088 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01362/0.518, allocations: 3.58 MB / 0.5123 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002681/0.5207, allocations: 1.683 MB / 0.5139 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006965/0.5215, allocations: 355.8 kB / 0.5142 GB, free: 9.496 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.372e-05/0.5215, allocations: 51 kB / 0.5143 GB, free: 9.438 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 4.248e-06/0.5215, allocations: 0 / 0.5143 GB, free: 9.438 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.04648/0.568, allocations: 12.89 MB / 0.5269 GB, free: 12.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.5682, allocations: 145.2 kB / 0.527 GB, free: 12.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007065/0.5752, allocations: 4.061 MB / 0.531 GB, free: 8.184 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003521/0.5756, allocations: 49.64 kB / 0.531 GB, free: 8.129 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002705/0.5783, allocations: 3.127 MB / 0.5341 GB, free: 4.973 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009234/0.5793, allocations: 0.5661 MB / 0.5346 GB, free: 4.402 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001691/0.581, allocations: 1.178 MB / 0.5358 GB, free: 3.211 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.5811, allocations: 305.1 kB / 0.5361 GB, free: 2.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003112/0.5842, allocations: 1.951 MB / 0.538 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2168/0.8011, allocations: 5.638 MB / 0.5435 GB, free: 118.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007655/0.8087, allocations: 8.247 MB / 0.5515 GB, free: 111.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001717/0.809, allocations: 42.94 kB / 0.5516 GB, free: 111.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.01309/0.8221, allocations: 8.061 MB / 0.5595 GB, free: 109.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.956e-05/0.8222, allocations: 63.38 kB / 0.5595 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001345/0.8223, allocations: 130.2 kB / 0.5596 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/0.8245, allocations: 0.9106 MB / 0.5605 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003536/0.828, allocations: 1.317 MB / 0.5618 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005448/0.8335, allocations: 5.188 MB / 0.5669 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004922/0.8384, allocations: 308.9 kB / 0.5672 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005864/0.839, allocations: 368.3 kB / 0.5675 GB, free: 103 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (695): * Single equations (assignments): 691 * 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.002603/0.8417, allocations: 1.979 MB / 0.5695 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005201/0.8422, allocations: 354 kB / 0.5698 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004282/0.8465, allocations: 2.77 MB / 0.5725 GB, free: 98.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.41e-05/0.8465, allocations: 16 kB / 0.5725 GB, free: 98.79 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/0.8465, allocations: 4 kB / 0.5725 GB, free: 98.79 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.8466, allocations: 7.969 kB / 0.5725 GB, free: 98.78 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009742/0.8563, allocations: 7.058 MB / 0.5794 GB, free: 91.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.8564, allocations: 4.281 kB / 0.5794 GB, free: 91.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009228/0.8573, allocations: 208.3 kB / 0.5796 GB, free: 91.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001858/0.8592, allocations: 0.7193 MB / 0.5803 GB, free: 90.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.8593, allocations: 39.91 kB / 0.5804 GB, free: 90.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004631/0.8639, allocations: 4.748 MB / 0.585 GB, free: 85.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.8639, allocations: 8 kB / 0.585 GB, free: 85.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005973/0.8699, allocations: 5.108 MB / 0.59 GB, free: 80.87 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008187/0.8708, allocations: 404 kB / 0.5904 GB, free: 80.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000339/0.8711, allocations: 20 kB / 0.5904 GB, free: 80.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.8722, allocations: 71.91 kB / 0.5905 GB, free: 80.38 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.8725, allocations: 92.14 kB / 0.5906 GB, free: 80.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.815e-05/0.8726, allocations: 47.97 kB / 0.5906 GB, free: 80.24 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00295/0.8755, allocations: 2.541 MB / 0.5931 GB, free: 77.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 3e-07/0.8755, allocations: 0 / 0.5931 GB, free: 77.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004183/0.8797, allocations: 0.879 MB / 0.594 GB, free: 76.81 MB / 462.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 (101): * Single equations (assignments): 97 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006179/0.8859, allocations: 5.744 MB / 0.5996 GB, free: 71.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005925/0.8919, allocations: 4.672 MB / 0.6041 GB, free: 66.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.8919, allocations: 0 / 0.6041 GB, free: 66.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.8934, allocations: 1.341 MB / 0.6054 GB, free: 65.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/0.8958, allocations: 432.7 kB / 0.6058 GB, free: 64.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05368/0.9495, allocations: 43.55 MB / 0.6484 GB, free: 15.44 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00252/0.9521, allocations: 3.056 MB / 0.6514 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003437/0.9555, allocations: 1.846 MB / 0.6532 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001759/0.9573, allocations: 1.749 MB / 0.6549 GB, free: 8.75 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.9573, allocations: 0 / 0.6549 GB, free: 8.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1282/1.085, allocations: 64.19 MB / 0.7176 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.61/22.69, allocations: 448 / 0.7176 GB, free: 9.039 MB / 0.5137 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)