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.001471/0.001471, allocations: 180.9 kB / 16.38 MB, free: 5.766 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.449/1.449, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000939/0.000939, allocations: 94.67 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003036, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2631, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.3864, allocations: 100 MB / 0.4898 GB, free: 12.42 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.3868, allocations: 92.66 kB / 0.4899 GB, free: 12.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4753/0.8621, allocations: 95.32 MB / 0.583 GB, free: 29.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8621, allocations: 0 / 0.583 GB, free: 29.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002939/0.8624, allocations: 100 kB / 0.5831 GB, free: 29.4 MB / 378.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.02263/0.8851, allocations: 5.612 MB / 0.5886 GB, free: 23.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.8851, allocations: 8.031 kB / 0.5886 GB, free: 23.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004309/0.8895, allocations: 0.8899 MB / 0.5894 GB, free: 22.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01044/0.8999, allocations: 2.279 MB / 0.5917 GB, free: 20.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.9131, allocations: 4.706 MB / 0.5963 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004792/0.9137, allocations: 377.9 kB / 0.5966 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003239/0.9169, allocations: 0.4919 MB / 0.5971 GB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0318/0.9487, allocations: 12.57 MB / 0.6094 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004217/0.9492, allocations: 63.41 kB / 0.6094 GB, free: 1.141 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0029/0.9522, allocations: 235.9 kB / 0.6097 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001991/0.9542, allocations: 1.152 MB / 0.6108 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02574/0.98, allocations: 10.8 MB / 0.6213 GB, free: 4.934 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3453/1.325, allocations: 55.54 MB / 0.6756 GB, free: 47.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01353/1.339, allocations: 4.986 MB / 0.6804 GB, free: 46.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001119/1.34, allocations: 0.6778 MB / 0.6811 GB, free: 46.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/1.34, allocations: 51.53 kB / 0.6812 GB, free: 46.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=200): time 6.563e-06/1.34, allocations: 3.438 kB / 0.6812 GB, free: 46.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.06157/1.402, allocations: 24.42 MB / 0.705 GB, free: 42.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/1.402, allocations: 152.5 kB / 0.7051 GB, free: 42.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007289/1.409, allocations: 4.012 MB / 0.7091 GB, free: 41.92 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008552/1.41, allocations: 59.33 kB / 0.7091 GB, free: 41.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002702/1.413, allocations: 3.483 MB / 0.7125 GB, free: 40.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001362/1.414, allocations: 0.878 MB / 0.7134 GB, free: 39.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003806/1.415, allocations: 135.2 kB / 0.7135 GB, free: 39.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003405/1.415, allocations: 0.5892 MB / 0.7141 GB, free: 39.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004054/1.419, allocations: 2.884 MB / 0.7169 GB, free: 39.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006073/1.425, allocations: 6.829 MB / 0.7236 GB, free: 33.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005932/1.431, allocations: 4.339 MB / 0.7278 GB, free: 31.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/1.431, allocations: 42.81 kB / 0.7278 GB, free: 31.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.02017/1.451, allocations: 10.54 MB / 0.7381 GB, free: 28.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/1.452, allocations: 66.81 kB / 0.7382 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001739/1.452, allocations: 141 kB / 0.7383 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00256/1.454, allocations: 1.142 MB / 0.7394 GB, free: 28.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006133/1.46, allocations: 1.665 MB / 0.7411 GB, free: 27.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006384/1.467, allocations: 6.031 MB / 0.747 GB, free: 22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006391/1.473, allocations: 409.5 kB / 0.7474 GB, free: 21.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001694/1.475, allocations: 428 kB / 0.7478 GB, free: 21.27 MB / 426.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 () * Number of clocked 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.005883/1.481, allocations: 2.35 MB / 0.7501 GB, free: 19.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001361/1.482, allocations: 410.4 kB / 0.7504 GB, free: 18.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009968/1.492, allocations: 5.217 MB / 0.7555 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.517e-05/1.492, allocations: 24 kB / 0.7556 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.429e-05/1.492, allocations: 4 kB / 0.7556 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.255e-05/1.493, allocations: 18.73 kB / 0.7556 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02441/1.517, allocations: 11.51 MB / 0.7668 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.232e-05/1.517, allocations: 7.75 kB / 0.7668 GB, free: 5.285 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/1.52, allocations: 476.5 kB / 0.7673 GB, free: 4.922 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002368/1.522, allocations: 0.936 MB / 0.7682 GB, free: 4.289 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004796/1.522, allocations: 47.52 kB / 0.7683 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006969/1.529, allocations: 5.747 MB / 0.7739 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.348e-06/1.53, allocations: 7.953 kB / 0.7739 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01793/1.547, allocations: 9.262 MB / 0.7829 GB, free: 7.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003401/1.551, allocations: 0.8648 MB / 0.7838 GB, free: 6.262 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001634/1.553, allocations: 43.75 kB / 0.7838 GB, free: 6.223 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003237/1.556, allocations: 163.2 kB / 0.784 GB, free: 6.121 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007922/1.557, allocations: 140 kB / 0.7841 GB, free: 6.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000472/1.557, allocations: 64 kB / 0.7842 GB, free: 5.973 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007127/1.564, allocations: 2.813 MB / 0.7869 GB, free: 3.652 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.52e-07/1.564, allocations: 4 kB / 0.7869 GB, free: 3.648 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008882/1.573, allocations: 1.209 MB / 0.7881 GB, free: 2.449 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 () * Number of clocked 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.01681/1.59, allocations: 10.61 MB / 0.7984 GB, free: 7.777 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01325/1.603, allocations: 6.907 MB / 0.8052 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/1.603, allocations: 3.656 kB / 0.8052 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004699/1.608, allocations: 2.569 MB / 0.8077 GB, free: 14.31 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003883/1.612, allocations: 448.9 kB / 0.8081 GB, free: 13.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3475/1.96, allocations: 138.7 MB / 0.9436 GB, free: 46.27 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005114/1.965, allocations: 3.763 MB / 0.9473 GB, free: 45.45 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005764/1.971, allocations: 2.227 MB / 0.9495 GB, free: 45.41 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003817/1.974, allocations: 2.236 MB / 0.9517 GB, free: 45.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.262e-06/1.974, allocations: 0 / 0.9517 GB, free: 45.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3894/2.364, allocations: 93.39 MB / 1.043 GB, free: 130.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001754/2.364, allocations: 236.2 kB / 1.043 GB, free: 129.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.893/7.257, allocations: 0 / 1.043 GB, free: 129.9 MB / 490.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