Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001485/0.001485, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008444/0.0008444, allocations: 93.88 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.671e-05/3.662e-05, allocations: 8.203 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 51.47 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4325/0.5518, allocations: 99.92 MB / 495.2 MB, free: 9.219 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.5522, allocations: 86.52 kB / 495.3 MB, free: 9.176 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7706/1.323, allocations: 94.14 MB / 0.5756 GB, free: 72.97 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.323, allocations: 0 / 0.5756 GB, free: 72.97 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008843/1.324, allocations: 95.17 kB / 0.5757 GB, free: 72.97 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.03824/1.362, allocations: 5.434 MB / 0.581 GB, free: 72.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/1.362, allocations: 9.562 kB / 0.581 GB, free: 72.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01998/1.382, allocations: 2.33 MB / 0.5833 GB, free: 71.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01922/1.401, allocations: 4.169 MB / 0.5873 GB, free: 71.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000658/1.402, allocations: 158.7 kB / 0.5875 GB, free: 71.28 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003408/1.406, allocations: 293 kB / 0.5878 GB, free: 71.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02384/1.429, allocations: 7.432 MB / 0.595 GB, free: 71.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04067/1.47, allocations: 11.11 MB / 0.6059 GB, free: 68.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006957/1.471, allocations: 67.72 kB / 0.6059 GB, free: 68.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003516/1.474, allocations: 35.8 kB / 0.606 GB, free: 68.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00364/1.478, allocations: 1.141 MB / 0.6071 GB, free: 68.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1172/1.595, allocations: 53.47 MB / 0.6593 GB, free: 50.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00851/1.604, allocations: 4.164 MB / 0.6634 GB, free: 48.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005847/1.61, allocations: 2.946 MB / 0.6663 GB, free: 46.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001888/1.612, allocations: 0.6862 MB / 0.6669 GB, free: 46.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.478e-05/1.612, allocations: 53.34 kB / 0.667 GB, free: 46.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 8.777e-06/1.612, allocations: 0 / 0.667 GB, free: 46.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.073/1.685, allocations: 21.34 MB / 0.6878 GB, free: 37.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/1.685, allocations: 152.7 kB / 0.688 GB, free: 37.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006941/1.692, allocations: 3.282 MB / 0.6912 GB, free: 36.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005792/1.693, allocations: 25.7 kB / 0.6912 GB, free: 36.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002391/1.695, allocations: 3.524 MB / 0.6946 GB, free: 33.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001389/1.696, allocations: 0.856 MB / 0.6955 GB, free: 33.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009219/1.697, allocations: 3.875 kB / 0.6955 GB, free: 33.06 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000738/1.698, allocations: 0.594 MB / 0.6961 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004371/1.702, allocations: 2.72 MB / 0.6987 GB, free: 31.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006456/1.709, allocations: 6.766 MB / 0.7053 GB, free: 25.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006917/1.716, allocations: 4.224 MB / 0.7094 GB, free: 23.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001949/1.716, allocations: 40.44 kB / 0.7095 GB, free: 23.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=898) (initialization): time 0.01962/1.736, allocations: 9.607 MB / 0.7189 GB, free: 17.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002802/1.736, allocations: 69.52 kB / 0.7189 GB, free: 17.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003581/1.736, allocations: 144 kB / 0.7191 GB, free: 17.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002959/1.739, allocations: 1.137 MB / 0.7202 GB, free: 16.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0066/1.746, allocations: 1.709 MB / 0.7218 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008142/1.754, allocations: 5.621 MB / 0.7273 GB, free: 10.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008246/1.763, allocations: 282.1 kB / 0.7276 GB, free: 10.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003629/1.766, allocations: 438 kB / 0.728 GB, free: 9.781 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 660 * Number of states: 0 () * Number of discrete variables: 44 (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.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (859): * Single equations (assignments): 855 * 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.004531/1.771, allocations: 484.8 kB / 0.7285 GB, free: 9.305 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0123/1.783, allocations: 5.107 MB / 0.7335 GB, free: 5.105 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00158/1.785, allocations: 355.4 kB / 0.7338 GB, free: 4.754 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/1.796, allocations: 4.949 MB / 0.7386 GB, free: 0.8398 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.855e-05/1.796, allocations: 31.47 kB / 0.7387 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/1.796, allocations: 4 kB / 0.7387 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.29e-05/1.796, allocations: 9.938 kB / 0.7387 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4075/2.204, allocations: 10.38 MB / 0.7488 GB, free: 78.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.812e-05/2.204, allocations: 6.594 kB / 0.7488 GB, free: 78.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002809/2.206, allocations: 467 kB / 0.7493 GB, free: 78.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002705/2.209, allocations: 0.9342 MB / 0.7502 GB, free: 78.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005588/2.21, allocations: 13.42 kB / 0.7502 GB, free: 78.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006829/2.217, allocations: 5.328 MB / 0.7554 GB, free: 77.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.367e-06/2.217, allocations: 8.812 kB / 0.7554 GB, free: 77.35 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/2.233, allocations: 8.872 MB / 0.7641 GB, free: 76.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0031/2.236, allocations: 0.8026 MB / 0.7649 GB, free: 76.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001973/2.238, allocations: 6.578 kB / 0.7649 GB, free: 76.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003518/2.241, allocations: 130.5 kB / 0.765 GB, free: 76.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008169/2.242, allocations: 147.3 kB / 0.7651 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000446/2.243, allocations: 61.03 kB / 0.7652 GB, free: 76.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006292/2.249, allocations: 2.178 MB / 0.7673 GB, free: 76.19 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.2e-07/2.249, allocations: 3.125 kB / 0.7673 GB, free: 76.19 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009685/2.259, allocations: 1.044 MB / 0.7683 GB, free: 76.19 MB / 458.7 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 () * 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 (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.01802/2.277, allocations: 10.24 MB / 0.7783 GB, free: 74.04 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01351/2.29, allocations: 6.493 MB / 0.7847 GB, free: 73.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/2.29, allocations: 1.156 kB / 0.7847 GB, free: 73.15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00504/2.295, allocations: 2.454 MB / 0.7871 GB, free: 72.23 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003942/2.299, allocations: 359.4 kB / 0.7874 GB, free: 72.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03824/2.338, allocations: 10.89 MB / 0.7981 GB, free: 68.42 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008042/2.346, allocations: 3.768 MB / 0.8017 GB, free: 67.06 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008804/2.355, allocations: 2.239 MB / 0.8039 GB, free: 67.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004358/2.359, allocations: 2.204 MB / 0.8061 GB, free: 65.23 MB / 458.7 MB Notification: Performance of SimCode: time 1.773e-06/2.359, allocations: 5.75 kB / 0.8061 GB, free: 65.23 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1443/2.503, allocations: 84.75 MB / 0.8888 GB, free: 15.86 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/2.504, allocations: 171.3 kB / 0.889 GB, free: 15.67 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.643/7.146, allocations: 0 / 0.889 GB, free: 15.67 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat