Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002547/0.002547, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001213/0.001212, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004302/0.0004303, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0969/0.09737, allocations: 47.59 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.3252/0.4226, allocations: 42.99 MB / 417.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03226/0.4549, allocations: 10.23 MB / 427.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01128/0.4663, allocations: 209.4 kB / 428.1 MB, free: 5.805 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008448/0.4748, allocations: 2.114 MB / 430.2 MB, free: 4.234 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02685/0.5017, allocations: 6.206 MB / 436.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003929/0.5056, allocations: 0.5148 MB / 436.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005935/0.5116, allocations: 2.122 MB / 439 MB, free: 11.84 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009339/0.521, allocations: 4.293 MB / 443.3 MB, free: 7.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002497/0.5236, allocations: 0.9965 MB / 444.3 MB, free: 6.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003074/0.5267, allocations: 1.367 MB / 445.7 MB, free: 5.129 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008599/0.5276, allocations: 144 kB / 445.8 MB, free: 4.988 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002765/0.5304, allocations: 0.7568 MB / 446.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002804/0.5332, allocations: 1.555 MB / 448.1 MB, free: 2.672 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.5347, allocations: 0.8311 MB / 449 MB, free: 1.832 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009318/0.5441, allocations: 5.526 MB / 454.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.5441, allocations: 0 / 454.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5442, allocations: 0 / 454.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002709/0.5444, allocations: 0 / 454.5 MB, free: 12.29 MB / 330.7 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.02867/0.5731, allocations: 4.522 MB / 459 MB, free: 7.703 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.5732, allocations: 8.031 kB / 459 MB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002516/0.5757, allocations: 0.7277 MB / 459.7 MB, free: 6.957 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01461/0.5904, allocations: 2.24 MB / 462 MB, free: 4.707 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00783/0.5983, allocations: 2.518 MB / 464.5 MB, free: 2.129 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003398/0.5986, allocations: 234 kB / 464.7 MB, free: 1.898 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001761/0.6004, allocations: 315.8 kB / 465 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03357/0.634, allocations: 10.75 MB / 475.8 MB, free: 6.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002111/0.6343, allocations: 51.53 kB / 475.8 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001136/0.6354, allocations: 151.9 kB / 476 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006611/0.6421, allocations: 1.978 MB / 478 MB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03444/0.6766, allocations: 9.625 MB / 487.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08022/0.7568, allocations: 39.96 MB / 0.5152 GB, free: 1.223 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02635/0.7832, allocations: 3.877 MB / 0.519 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001055/0.7844, allocations: 356.2 kB / 0.5193 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.7844, allocations: 43.56 kB / 0.5194 GB, free: 12.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=148): time 6.974e-06/0.7844, allocations: 112 / 0.5194 GB, free: 12.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=154): time 0.3521/1.137, allocations: 14.1 MB / 0.5331 GB, free: 131.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/1.137, allocations: 144.2 kB / 0.5333 GB, free: 131.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01108/1.148, allocations: 4.278 MB / 0.5374 GB, free: 130.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005051/1.148, allocations: 47.3 kB / 0.5375 GB, free: 130.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003236/1.152, allocations: 3.091 MB / 0.5405 GB, free: 128.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.153, allocations: 0.6122 MB / 0.5411 GB, free: 128 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006547/1.154, allocations: 116.1 kB / 0.5412 GB, free: 127.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004895/1.154, allocations: 0.562 MB / 0.5418 GB, free: 127.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006248/1.16, allocations: 2.105 MB / 0.5438 GB, free: 126.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008573/1.169, allocations: 5.919 MB / 0.5496 GB, free: 121 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008386/1.177, allocations: 3.436 MB / 0.553 GB, free: 119.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002179/1.178, allocations: 43.36 kB / 0.553 GB, free: 119.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.02407/1.202, allocations: 8.404 MB / 0.5612 GB, free: 116.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/1.202, allocations: 63 kB / 0.5613 GB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002052/1.202, allocations: 135.5 kB / 0.5614 GB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0043/1.206, allocations: 0.9303 MB / 0.5623 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00815/1.215, allocations: 1.391 MB / 0.5637 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009956/1.225, allocations: 4.978 MB / 0.5685 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006612/1.231, allocations: 331.4 kB / 0.5688 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001326/1.233, allocations: 385.3 kB / 0.5692 GB, free: 112 MB / 410.7 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 (736): * Single equations (assignments): 732 * 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.005187/1.238, allocations: 2.103 MB / 0.5713 GB, free: 109.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009164/1.239, allocations: 351.5 kB / 0.5716 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00936/1.248, allocations: 3.148 MB / 0.5747 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.474e-05/1.248, allocations: 21.41 kB / 0.5747 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/1.248, allocations: 3.938 kB / 0.5747 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.749e-05/1.248, allocations: 15.97 kB / 0.5747 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02088/1.269, allocations: 7.829 MB / 0.5824 GB, free: 98.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/1.269, allocations: 0 / 0.5824 GB, free: 98.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002465/1.272, allocations: 263.7 kB / 0.5826 GB, free: 98.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003707/1.276, allocations: 0.7172 MB / 0.5833 GB, free: 97.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003044/1.276, allocations: 39.97 kB / 0.5834 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008644/1.285, allocations: 4.515 MB / 0.5878 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.285, allocations: 4.031 kB / 0.5878 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.298, allocations: 5.845 MB / 0.5935 GB, free: 86.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002233/1.301, allocations: 0.6409 MB / 0.5941 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/1.302, allocations: 24.8 kB / 0.5941 GB, free: 86.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00284/1.305, allocations: 98.73 kB / 0.5942 GB, free: 86.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005735/1.305, allocations: 100.8 kB / 0.5943 GB, free: 85.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002048/1.306, allocations: 51.97 kB / 0.5944 GB, free: 85.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006026/1.312, allocations: 2.689 MB / 0.597 GB, free: 83.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.312, allocations: 0 / 0.597 GB, free: 83.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006835/1.318, allocations: 0.9779 MB / 0.5979 GB, free: 82.27 MB / 410.7 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.01478/1.333, allocations: 6.824 MB / 0.6046 GB, free: 75.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01141/1.345, allocations: 5.057 MB / 0.6095 GB, free: 70.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.936e-06/1.345, allocations: 0 / 0.6095 GB, free: 70.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003414/1.348, allocations: 1.538 MB / 0.611 GB, free: 68.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/1.351, allocations: 407.1 kB / 0.6114 GB, free: 68.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3829/1.734, allocations: 128.9 MB / 0.7373 GB, free: 100.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005946/1.74, allocations: 3.329 MB / 0.7406 GB, free: 99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004053/1.744, allocations: 1.931 MB / 0.7425 GB, free: 97.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.593e-06/1.744, allocations: 0 / 0.7425 GB, free: 97.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.032/6.776, allocations: 99.11 MB / 0.8393 GB, free: 2.938 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)