Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008286/0.0008286, allocations: 99.02 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.694e-05/2.705e-05, allocations: 3.984 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1148, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3859/0.5008, allocations: 99.93 MB / 494.3 MB, free: 3.426 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.5012, allocations: 87.95 kB / 494.4 MB, free: 3.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5005/1.002, allocations: 95.39 MB / 0.5759 GB, free: 96.33 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.002, allocations: 0 / 0.5759 GB, free: 96.33 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000244/1.002, allocations: 103.8 kB / 0.576 GB, free: 96.33 MB / 426.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.02202/1.024, allocations: 5.349 MB / 0.5812 GB, free: 94.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/1.024, allocations: 7.688 kB / 0.5812 GB, free: 94.36 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00388/1.028, allocations: 0.8913 MB / 0.5821 GB, free: 94.28 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/1.039, allocations: 2.275 MB / 0.5843 GB, free: 93.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01336/1.052, allocations: 4.686 MB / 0.5889 GB, free: 93.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004714/1.053, allocations: 388 kB / 0.5893 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002778/1.056, allocations: 0.491 MB / 0.5898 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03342/1.089, allocations: 12.44 MB / 0.6019 GB, free: 87.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004261/1.09, allocations: 67.59 kB / 0.602 GB, free: 87.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002885/1.092, allocations: 240.5 kB / 0.6022 GB, free: 87.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002041/1.095, allocations: 1.142 MB / 0.6033 GB, free: 87.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02301/1.118, allocations: 10.6 MB / 0.6137 GB, free: 83.83 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06751/1.185, allocations: 55.55 MB / 0.6679 GB, free: 30.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01371/1.199, allocations: 4.928 MB / 0.6727 GB, free: 25.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003705/1.203, allocations: 3.009 MB / 0.6757 GB, free: 22.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001176/1.204, allocations: 0.6831 MB / 0.6763 GB, free: 21.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/1.204, allocations: 59.75 kB / 0.6764 GB, free: 21.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=200): time 6.051e-06/1.204, allocations: 0 / 0.6764 GB, free: 21.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.06016/1.264, allocations: 20.5 MB / 0.6964 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/1.264, allocations: 162.4 kB / 0.6966 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007744/1.272, allocations: 3.975 MB / 0.7005 GB, free: 12.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006394/1.273, allocations: 53.7 kB / 0.7005 GB, free: 12.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002778/1.275, allocations: 3.484 MB / 0.7039 GB, free: 9.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001446/1.277, allocations: 0.8788 MB / 0.7048 GB, free: 8.398 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004255/1.277, allocations: 132 kB / 0.7049 GB, free: 8.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000424/1.278, allocations: 0.5949 MB / 0.7055 GB, free: 7.668 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00458/1.282, allocations: 2.805 MB / 0.7082 GB, free: 4.855 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3112/1.594, allocations: 6.749 MB / 0.7148 GB, free: 95.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009649/1.603, allocations: 4.314 MB / 0.719 GB, free: 95.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000216/1.604, allocations: 38.75 kB / 0.7191 GB, free: 95.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.02737/1.631, allocations: 10.4 MB / 0.7292 GB, free: 95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000199/1.631, allocations: 66.62 kB / 0.7293 GB, free: 95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003132/1.631, allocations: 141.9 kB / 0.7294 GB, free: 95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003459/1.635, allocations: 1.13 MB / 0.7305 GB, free: 95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007055/1.642, allocations: 1.666 MB / 0.7321 GB, free: 94.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007239/1.649, allocations: 5.922 MB / 0.7379 GB, free: 93.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007199/1.657, allocations: 412.7 kB / 0.7383 GB, free: 93.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001858/1.658, allocations: 422.4 kB / 0.7387 GB, free: 93.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * 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 (835): * Single equations (assignments): 831 * 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.001883/1.66, allocations: 0.6181 MB / 0.7393 GB, free: 93.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/1.661, allocations: 400.5 kB / 0.7397 GB, free: 93.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009399/1.671, allocations: 5.14 MB / 0.7447 GB, free: 91.81 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.871e-05/1.671, allocations: 27.66 kB / 0.7447 GB, free: 91.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/1.671, allocations: 3.938 kB / 0.7448 GB, free: 91.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.178e-05/1.671, allocations: 13.88 kB / 0.7448 GB, free: 91.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02156/1.693, allocations: 11.43 MB / 0.7559 GB, free: 87.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.056e-05/1.693, allocations: 7.859 kB / 0.7559 GB, free: 87.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00246/1.695, allocations: 465.9 kB / 0.7564 GB, free: 87.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002333/1.697, allocations: 0.9351 MB / 0.7573 GB, free: 87.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003532/1.698, allocations: 46.41 kB / 0.7573 GB, free: 87.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006292/1.704, allocations: 5.636 MB / 0.7628 GB, free: 84.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.704, allocations: 11.34 kB / 0.7628 GB, free: 84.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/1.717, allocations: 9.118 MB / 0.7718 GB, free: 80.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003104/1.72, allocations: 0.8611 MB / 0.7726 GB, free: 80.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/1.721, allocations: 38.97 kB / 0.7726 GB, free: 80.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002467/1.723, allocations: 165.3 kB / 0.7728 GB, free: 80.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000477/1.724, allocations: 138.3 kB / 0.7729 GB, free: 80.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/1.724, allocations: 70.56 kB / 0.773 GB, free: 80.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004907/1.729, allocations: 2.776 MB / 0.7757 GB, free: 79.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.729, allocations: 0 / 0.7757 GB, free: 79.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007107/1.736, allocations: 1.209 MB / 0.7769 GB, free: 79.02 MB / 442.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.01365/1.75, allocations: 10.47 MB / 0.7871 GB, free: 73.89 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01067/1.761, allocations: 6.785 MB / 0.7937 GB, free: 67.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/1.761, allocations: 0 / 0.7937 GB, free: 67.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003356/1.764, allocations: 2.516 MB / 0.7962 GB, free: 65.57 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003026/1.767, allocations: 464.3 kB / 0.7966 GB, free: 65.18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02583/1.793, allocations: 11.21 MB / 0.8076 GB, free: 55.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003801/1.797, allocations: 3.774 MB / 0.8113 GB, free: 52.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005834/1.803, allocations: 2.22 MB / 0.8134 GB, free: 51.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00355/1.806, allocations: 2.239 MB / 0.8156 GB, free: 49.13 MB / 442.7 MB Notification: Performance of SimCode: time 1.773e-06/1.806, allocations: 1.969 kB / 0.8156 GB, free: 49.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4321/2.238, allocations: 93.6 MB / 0.907 GB, free: 108 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/2.239, allocations: 206.5 kB / 0.9072 GB, free: 107.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.923/7.162, allocations: 3.938 kB / 0.9072 GB, free: 107.7 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat