Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",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.001324/0.001324, 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.583/1.583, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.001383/0.001383, allocations: 91.34 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.606e-05/1.609e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1288, allocations: 50.41 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4228/0.5516, allocations: 98.54 MB / 486.1 MB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.552, allocations: 83.94 kB / 486.2 MB, free: 12.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5473/1.099, allocations: 80.28 MB / 0.5532 GB, free: 95.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.099, allocations: 0 / 0.5532 GB, free: 95.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005083/1.1, allocations: 76.41 kB / 0.5533 GB, free: 95.66 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.02257/1.122, allocations: 4.335 MB / 0.5575 GB, free: 94.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/1.123, allocations: 9.031 kB / 0.5575 GB, free: 94.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01228/1.135, allocations: 2.178 MB / 0.5596 GB, free: 93.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01523/1.15, allocations: 4.222 MB / 0.5637 GB, free: 93.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003238/1.15, allocations: 130 kB / 0.5639 GB, free: 93.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002434/1.153, allocations: 236.8 kB / 0.5641 GB, free: 93.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.017/1.17, allocations: 6.013 MB / 0.57 GB, free: 93.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02411/1.194, allocations: 9.261 MB / 0.579 GB, free: 90.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004189/1.195, allocations: 66.75 kB / 0.5791 GB, free: 90.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002239/1.197, allocations: 30.62 kB / 0.5791 GB, free: 90.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001848/1.199, allocations: 0.9359 MB / 0.58 GB, free: 90.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04935/1.248, allocations: 45.54 MB / 0.6245 GB, free: 57.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00362/1.252, allocations: 3.01 MB / 0.6274 GB, free: 55.76 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001977/1.254, allocations: 1.587 MB / 0.629 GB, free: 55.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00672/1.26, allocations: 3.949 MB / 0.6328 GB, free: 52.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/1.261, allocations: 39.03 kB / 0.6329 GB, free: 52.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 4.779e-06/1.261, allocations: 4 kB / 0.6329 GB, free: 52.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.0188/1.279, allocations: 11.12 MB / 0.6437 GB, free: 47.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/1.279, allocations: 143.6 kB / 0.6439 GB, free: 47.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004183/1.284, allocations: 3.067 MB / 0.6469 GB, free: 46.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002129/1.284, allocations: 25.7 kB / 0.6469 GB, free: 46.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001498/1.285, allocations: 3.135 MB / 0.6499 GB, free: 43.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004516/1.286, allocations: 0.5073 MB / 0.6504 GB, free: 43.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/1.286, allocations: 0 / 0.6504 GB, free: 43.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002646/1.286, allocations: 0.5578 MB / 0.651 GB, free: 43.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/1.288, allocations: 1.692 MB / 0.6526 GB, free: 41.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003382/1.292, allocations: 5.501 MB / 0.658 GB, free: 34.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003337/1.295, allocations: 3.029 MB / 0.661 GB, free: 31.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.692e-05/1.295, allocations: 44 kB / 0.661 GB, free: 31.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01203/1.307, allocations: 6.99 MB / 0.6678 GB, free: 25.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.082e-05/1.307, allocations: 65.41 kB / 0.6679 GB, free: 25.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/1.307, allocations: 136 kB / 0.668 GB, free: 25.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/1.31, allocations: 0.9098 MB / 0.6689 GB, free: 25.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004383/1.314, allocations: 1.358 MB / 0.6702 GB, free: 23.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005113/1.319, allocations: 4.61 MB / 0.6747 GB, free: 19.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004404/1.324, allocations: 203.4 kB / 0.6749 GB, free: 19.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008293/1.324, allocations: 375.8 kB / 0.6753 GB, free: 19.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 38 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (719): * Single equations (assignments): 715 * 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.001223/1.326, allocations: 450.2 kB / 0.6757 GB, free: 18.84 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004797/1.33, allocations: 2.694 MB / 0.6784 GB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006572/1.331, allocations: 304 kB / 0.6786 GB, free: 16.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004442/1.336, allocations: 2.365 MB / 0.681 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/1.336, allocations: 19.94 kB / 0.681 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/1.336, allocations: 4 kB / 0.681 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/1.336, allocations: 10.97 kB / 0.681 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/1.348, allocations: 5.508 MB / 0.6864 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/1.348, allocations: 0 / 0.6864 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/1.349, allocations: 195 kB / 0.6866 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/1.351, allocations: 0.6985 MB / 0.6872 GB, free: 9.555 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002151/1.352, allocations: 7.328 kB / 0.6872 GB, free: 9.551 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004551/1.356, allocations: 4.181 MB / 0.6913 GB, free: 5.375 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/1.356, allocations: 3.938 kB / 0.6913 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006178/1.362, allocations: 4.435 MB / 0.6957 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/1.364, allocations: 353 kB / 0.696 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008969/1.364, allocations: 4 kB / 0.696 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/1.366, allocations: 59.89 kB / 0.6961 GB, free: 480 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/1.366, allocations: 72.58 kB / 0.6961 GB, free: 404 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/1.367, allocations: 39.98 kB / 0.6962 GB, free: 364 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004597/1.371, allocations: 2.033 MB / 0.6982 GB, free: 14.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.371, allocations: 0 / 0.6982 GB, free: 14.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005994/1.377, allocations: 0.7736 MB / 0.6989 GB, free: 13.56 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 89 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007928/1.385, allocations: 5.239 MB / 0.704 GB, free: 8.281 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007341/1.392, allocations: 4.065 MB / 0.708 GB, free: 4.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.392, allocations: 4.062 kB / 0.708 GB, free: 4.227 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/1.394, allocations: 1.117 MB / 0.7091 GB, free: 3.098 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/1.396, allocations: 331.5 kB / 0.7094 GB, free: 2.785 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3213/1.718, allocations: 7.799 MB / 0.717 GB, free: 97.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004866/1.723, allocations: 3.191 MB / 0.7201 GB, free: 97.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006068/1.729, allocations: 1.812 MB / 0.7219 GB, free: 96.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002815/1.732, allocations: 1.739 MB / 0.7236 GB, free: 96.98 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/1.732, allocations: 0 / 0.7236 GB, free: 96.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1301/1.862, allocations: 64.71 MB / 0.7868 GB, free: 78.38 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002684/1.862, allocations: 172.2 kB / 0.787 GB, free: 78.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.13/5.992, allocations: 0 / 0.787 GB, free: 78.18 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat