Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",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.001616/0.00162, allocations: 188.6 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.029/2.029, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001121/0.001121, allocations: 98.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003836, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1012, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.3404/0.4417, allocations: 56.68 MB / 431.3 MB, free: 3.039 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03977/0.4815, allocations: 13.01 MB / 444.3 MB, free: 6.52 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01379/0.4954, allocations: 279.3 kB / 444.6 MB, free: 6.246 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01133/0.5068, allocations: 2.827 MB / 447.4 MB, free: 3.406 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0335/0.5403, allocations: 8.084 MB / 455.5 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005063/0.5454, allocations: 0.6208 MB / 456.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007074/0.5526, allocations: 2.511 MB / 458.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01278/0.5654, allocations: 5.779 MB / 464.4 MB, free: 2.316 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003254/0.5687, allocations: 1.199 MB / 465.6 MB, free: 1.113 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00378/0.5725, allocations: 1.612 MB / 467.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001024/0.5736, allocations: 176 kB / 467.4 MB, free: 15.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002814/0.5765, allocations: 0.7841 MB / 468.2 MB, free: 14.54 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003211/0.5797, allocations: 1.858 MB / 470 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001962/0.5817, allocations: 1.002 MB / 471.1 MB, free: 11.66 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.5934, allocations: 6.64 MB / 477.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.5934, allocations: 0 / 477.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5934, allocations: 0 / 477.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003113/0.5938, allocations: 0 / 477.7 MB, free: 5.008 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.03341/0.6272, allocations: 5.539 MB / 483.2 MB, free: 15.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.6273, allocations: 12.03 kB / 483.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003227/0.6305, allocations: 0.8803 MB / 484.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01509/0.6456, allocations: 2.337 MB / 486.5 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009497/0.6552, allocations: 2.922 MB / 489.4 MB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004674/0.6557, allocations: 299.8 kB / 489.7 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002298/0.658, allocations: 407.7 kB / 490.1 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0427/0.7008, allocations: 12.97 MB / 0.4912 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002633/0.7011, allocations: 55.45 kB / 0.4913 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001766/0.7029, allocations: 195.8 kB / 0.4915 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00873/0.7117, allocations: 2.366 MB / 0.4938 GB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0425/0.7542, allocations: 11.85 MB / 0.5054 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3777/1.132, allocations: 48.61 MB / 0.5528 GB, free: 101.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03428/1.166, allocations: 5.693 MB / 0.5584 GB, free: 100.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001071/1.167, allocations: 374.1 kB / 0.5588 GB, free: 100.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/1.168, allocations: 63.36 kB / 0.5588 GB, free: 100.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 6.332e-06/1.168, allocations: 0 / 0.5588 GB, free: 100.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.1353/1.303, allocations: 28.7 MB / 0.5868 GB, free: 86.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.394e-05/1.303, allocations: 158.1 kB / 0.587 GB, free: 85.87 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01074/1.314, allocations: 4.714 MB / 0.5916 GB, free: 81.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008582/1.315, allocations: 61.7 kB / 0.5917 GB, free: 81.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002787/1.317, allocations: 3.48 MB / 0.5951 GB, free: 77.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001826/1.319, allocations: 0.946 MB / 0.596 GB, free: 76.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009355/1.32, allocations: 140 kB / 0.5961 GB, free: 76.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004494/1.321, allocations: 0.6042 MB / 0.5967 GB, free: 75.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008306/1.329, allocations: 3.426 MB / 0.6 GB, free: 72.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01102/1.34, allocations: 7.457 MB / 0.6073 GB, free: 63.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/1.351, allocations: 4.935 MB / 0.6122 GB, free: 58.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001247/1.352, allocations: 48 kB / 0.6122 GB, free: 58.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.03128/1.383, allocations: 11.67 MB / 0.6236 GB, free: 46.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.383, allocations: 64 kB / 0.6237 GB, free: 46.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001799/1.383, allocations: 149.5 kB / 0.6238 GB, free: 46.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00496/1.388, allocations: 1.146 MB / 0.6249 GB, free: 45.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01211/1.4, allocations: 1.797 MB / 0.6267 GB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/1.413, allocations: 6.132 MB / 0.6327 GB, free: 37.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008698/1.421, allocations: 427.4 kB / 0.6331 GB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00171/1.423, allocations: 475.8 kB / 0.6335 GB, free: 36.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * Number of states: 0 () * Number of discrete variables: 42 (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 (871): * Single equations (assignments): 867 * 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.006402/1.43, allocations: 2.437 MB / 0.6359 GB, free: 33.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001197/1.431, allocations: 414.6 kB / 0.6363 GB, free: 33.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01809/1.449, allocations: 6.509 MB / 0.6427 GB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.399e-05/1.449, allocations: 24 kB / 0.6427 GB, free: 26.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/1.449, allocations: 4 kB / 0.6427 GB, free: 26.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.416e-05/1.449, allocations: 15.95 kB / 0.6427 GB, free: 26.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0358/1.485, allocations: 13.56 MB / 0.6559 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.962e-05/1.485, allocations: 4 kB / 0.6559 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005979/1.491, allocations: 0.5892 MB / 0.6565 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004478/1.496, allocations: 0.9491 MB / 0.6574 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007853/1.496, allocations: 83.89 kB / 0.6575 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/1.508, allocations: 5.831 MB / 0.6632 GB, free: 5.602 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/1.508, allocations: 9 kB / 0.6632 GB, free: 5.594 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02808/1.536, allocations: 11.38 MB / 0.6743 GB, free: 9.969 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003811/1.54, allocations: 0.9484 MB / 0.6753 GB, free: 8.996 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001556/1.541, allocations: 43.94 kB / 0.6753 GB, free: 8.953 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005502/1.547, allocations: 181 kB / 0.6755 GB, free: 8.777 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001378/1.548, allocations: 189.7 kB / 0.6757 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00063/1.549, allocations: 111.9 kB / 0.6758 GB, free: 8.484 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007798/1.557, allocations: 2.978 MB / 0.6787 GB, free: 5.508 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.557, allocations: 0 / 0.6787 GB, free: 5.508 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008907/1.566, allocations: 1.287 MB / 0.6799 GB, free: 4.227 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (227): * Single equations (assignments): 223 * 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.03226/1.598, allocations: 12.85 MB / 0.6925 GB, free: 7.207 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3291/1.927, allocations: 8.082 MB / 0.7004 GB, free: 153 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.927, allocations: 1.031 kB / 0.7004 GB, free: 153 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009266/1.937, allocations: 3.168 MB / 0.7035 GB, free: 152.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004497/1.941, allocations: 458.1 kB / 0.7039 GB, free: 152.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1462/2.087, allocations: 147 MB / 0.8475 GB, free: 19.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007503/2.095, allocations: 3.915 MB / 0.8513 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006537/2.102, allocations: 2.518 MB / 0.8538 GB, free: 13.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/2.102, allocations: 0 / 0.8538 GB, free: 13.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.326/7.428, allocations: 125.7 MB / 0.9765 GB, free: 55.39 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1)