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.001218/0.001218, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 221.5 MB / 230.3 MB, free: 7.531 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.0008965/0.0008966, allocations: 91.17 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.934e-05/2.935e-05, allocations: 0 / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1322, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4105/0.5428, allocations: 99.26 MB / 486.8 MB, free: 11.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.5431, allocations: 87.95 kB / 486.9 MB, free: 11.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5772/1.12, allocations: 93.44 MB / 0.5667 GB, free: 94.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.12, allocations: 0 / 0.5667 GB, free: 94.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003153/1.121, allocations: 105.2 kB / 0.5668 GB, free: 94.93 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.02469/1.145, allocations: 5.342 MB / 0.5721 GB, free: 93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/1.145, allocations: 9.781 kB / 0.5721 GB, free: 93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01184/1.157, allocations: 2.272 MB / 0.5743 GB, free: 92.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01397/1.171, allocations: 4.696 MB / 0.5789 GB, free: 92.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003064/1.172, allocations: 161.6 kB / 0.579 GB, free: 92.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002928/1.175, allocations: 296.6 kB / 0.5793 GB, free: 92 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01757/1.192, allocations: 7.418 MB / 0.5866 GB, free: 91.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02736/1.22, allocations: 11.12 MB / 0.5974 GB, free: 87.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002365/1.22, allocations: 65 kB / 0.5975 GB, free: 87.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009762/1.221, allocations: 33.75 kB / 0.5975 GB, free: 87.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001579/1.222, allocations: 1.14 MB / 0.5986 GB, free: 86.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06106/1.283, allocations: 53.48 MB / 0.6508 GB, free: 46.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004743/1.288, allocations: 4.158 MB / 0.6549 GB, free: 42.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003218/1.292, allocations: 2.952 MB / 0.6578 GB, free: 40.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001073/1.293, allocations: 0.6823 MB / 0.6585 GB, free: 39.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/1.293, allocations: 59.75 kB / 0.6585 GB, free: 39.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=200): time 6.913e-06/1.293, allocations: 0 / 0.6585 GB, free: 39.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.04253/1.335, allocations: 21.33 MB / 0.6793 GB, free: 20.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/1.335, allocations: 150.5 kB / 0.6795 GB, free: 20.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005169/1.341, allocations: 3.284 MB / 0.6827 GB, free: 16.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009824/1.342, allocations: 29.7 kB / 0.6827 GB, free: 16.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002642/1.344, allocations: 3.53 MB / 0.6862 GB, free: 13.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001739/1.346, allocations: 0.8519 MB / 0.687 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000388/1.346, allocations: 0 / 0.687 GB, free: 12.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003506/1.347, allocations: 0.5954 MB / 0.6876 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003365/1.35, allocations: 2.719 MB / 0.6902 GB, free: 9.078 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005004/1.355, allocations: 6.761 MB / 0.6968 GB, free: 292 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006599/1.362, allocations: 4.226 MB / 0.701 GB, free: 12.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/1.362, allocations: 44 kB / 0.701 GB, free: 12.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=898) (initialization): time 0.0221/1.384, allocations: 9.603 MB / 0.7104 GB, free: 2.406 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/1.384, allocations: 69.52 kB / 0.7105 GB, free: 2.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000214/1.384, allocations: 144 kB / 0.7106 GB, free: 2.199 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003039/1.387, allocations: 1.135 MB / 0.7117 GB, free: 1.062 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3471/1.735, allocations: 1.702 MB / 0.7134 GB, free: 97.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009039/1.744, allocations: 5.615 MB / 0.7188 GB, free: 96.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007033/1.751, allocations: 286.7 kB / 0.7191 GB, free: 96.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002163/1.753, allocations: 434.9 kB / 0.7195 GB, free: 96.06 MB / 442.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.001655/1.755, allocations: 480.8 kB / 0.72 GB, free: 95.95 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01256/1.767, allocations: 5.103 MB / 0.725 GB, free: 95.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/1.769, allocations: 362.3 kB / 0.7253 GB, free: 95.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/1.78, allocations: 4.945 MB / 0.7302 GB, free: 95.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.127e-05/1.78, allocations: 26.8 kB / 0.7302 GB, free: 95.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.418e-05/1.78, allocations: 9.031 kB / 0.7302 GB, free: 95.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.173e-05/1.78, allocations: 8.203 kB / 0.7302 GB, free: 95.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01997/1.8, allocations: 10.37 MB / 0.7403 GB, free: 94.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.935e-05/1.8, allocations: 4.641 kB / 0.7403 GB, free: 94.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00239/1.802, allocations: 473.5 kB / 0.7408 GB, free: 94.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002306/1.805, allocations: 0.9373 MB / 0.7417 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002827/1.805, allocations: 13.86 kB / 0.7417 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005834/1.811, allocations: 5.337 MB / 0.7469 GB, free: 91.72 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.862e-06/1.811, allocations: 6.25 kB / 0.7469 GB, free: 91.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01192/1.823, allocations: 8.872 MB / 0.7556 GB, free: 88.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002316/1.825, allocations: 0.7992 MB / 0.7564 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005065/1.826, allocations: 11.09 kB / 0.7564 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/1.828, allocations: 135.2 kB / 0.7565 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003727/1.828, allocations: 136.5 kB / 0.7566 GB, free: 87.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.828, allocations: 63.59 kB / 0.7567 GB, free: 87.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003367/1.832, allocations: 2.178 MB / 0.7588 GB, free: 86.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.832, allocations: 3.719 kB / 0.7588 GB, free: 86.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006424/1.838, allocations: 1.04 MB / 0.7598 GB, free: 86.84 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.0113/1.849, allocations: 10.24 MB / 0.7698 GB, free: 81.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01033/1.86, allocations: 6.494 MB / 0.7762 GB, free: 79.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/1.86, allocations: 0 / 0.7762 GB, free: 79.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003173/1.863, allocations: 2.447 MB / 0.7786 GB, free: 78.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002491/1.865, allocations: 363.7 kB / 0.7789 GB, free: 78.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03086/1.896, allocations: 10.89 MB / 0.7896 GB, free: 72.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004004/1.9, allocations: 3.773 MB / 0.7932 GB, free: 69.97 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005881/1.906, allocations: 2.243 MB / 0.7954 GB, free: 68.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00399/1.91, allocations: 2.201 MB / 0.7976 GB, free: 66.6 MB / 442.7 MB Notification: Performance of SimCode: time 2.484e-06/1.91, allocations: 0 / 0.7976 GB, free: 66.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4649/2.375, allocations: 84.77 MB / 0.8804 GB, free: 85.36 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/2.375, allocations: 173.1 kB / 0.8805 GB, free: 85.17 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.749/7.125, allocations: 0 / 0.8805 GB, free: 85.17 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