Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.00232/0.002318, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.146/2.146, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.001129, allocations: 90.69 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.607e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3526, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1835/0.5361, allocations: 98.25 MB / 460.7 MB, free: 3.922 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.5365, allocations: 91.05 kB / 460.8 MB, free: 3.836 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6789/1.215, allocations: 96.18 MB / 0.5439 GB, free: 93.55 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.264e-06/1.215, allocations: 0 / 0.5439 GB, free: 93.55 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002877/1.216, allocations: 101.7 kB / 0.544 GB, free: 93.55 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.02977/1.246, allocations: 5.5 MB / 0.5494 GB, free: 90.06 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/1.246, allocations: 7.75 kB / 0.5494 GB, free: 90.06 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01734/1.263, allocations: 2.317 MB / 0.5516 GB, free: 88.96 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01829/1.281, allocations: 4.945 MB / 0.5565 GB, free: 85.57 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003152/1.282, allocations: 168 kB / 0.5566 GB, free: 85.41 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002899/1.285, allocations: 304 kB / 0.5569 GB, free: 85.11 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01901/1.304, allocations: 7.748 MB / 0.5645 GB, free: 77.36 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02884/1.333, allocations: 11.54 MB / 0.5758 GB, free: 64.7 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003152/1.333, allocations: 75.25 kB / 0.5758 GB, free: 64.62 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002289/1.335, allocations: 36 kB / 0.5759 GB, free: 64.59 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002734/1.338, allocations: 1.196 MB / 0.577 GB, free: 63.39 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08984/1.428, allocations: 54.95 MB / 0.6307 GB, free: 7.258 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007747/1.436, allocations: 4.366 MB / 0.635 GB, free: 2.742 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005839/1.442, allocations: 3.112 MB / 0.638 GB, free: 15.62 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002034/1.444, allocations: 0.6804 MB / 0.6387 GB, free: 14.84 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.353e-05/1.444, allocations: 63.81 kB / 0.6387 GB, free: 14.77 MB / 411.1 MB Notification: Performance of pre-optimization done (n=221): time 6.512e-06/1.444, allocations: 0 / 0.6387 GB, free: 14.77 MB / 411.1 MB Notification: Performance of matching and sorting (n=252): time 0.4062/1.85, allocations: 22.31 MB / 0.6605 GB, free: 97.35 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.315e-05/1.85, allocations: 153 kB / 0.6607 GB, free: 97.19 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008989/1.859, allocations: 3.377 MB / 0.6639 GB, free: 96.82 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007643/1.86, allocations: 27.08 kB / 0.664 GB, free: 96.79 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003426/1.863, allocations: 3.606 MB / 0.6675 GB, free: 94.57 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001858/1.865, allocations: 0.9249 MB / 0.6684 GB, free: 94.02 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009411/1.866, allocations: 1.281 kB / 0.6684 GB, free: 94.02 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0005431/1.867, allocations: 0.6126 MB / 0.669 GB, free: 93.7 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007788/1.875, allocations: 2.886 MB / 0.6718 GB, free: 93.68 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01155/1.886, allocations: 7.078 MB / 0.6787 GB, free: 88.27 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/1.896, allocations: 4.44 MB / 0.6831 GB, free: 87.44 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002331/1.897, allocations: 47.16 kB / 0.6831 GB, free: 87.44 MB / 411.1 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.02905/1.926, allocations: 9.958 MB / 0.6928 GB, free: 84.43 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/1.926, allocations: 70.5 kB / 0.6929 GB, free: 84.43 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002243/1.926, allocations: 152 kB / 0.693 GB, free: 84.43 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004879/1.931, allocations: 1.147 MB / 0.6942 GB, free: 84.25 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01209/1.943, allocations: 1.799 MB / 0.6959 GB, free: 84.04 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/1.954, allocations: 5.626 MB / 0.7014 GB, free: 81.18 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00887/1.963, allocations: 298.3 kB / 0.7017 GB, free: 81.16 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001911/1.965, allocations: 454.6 kB / 0.7021 GB, free: 81.1 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 683 * Number of states: 0 () * Number of discrete variables: 42 (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.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 (903): * Single equations (assignments): 899 * 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.001904/1.967, allocations: 488.6 kB / 0.7026 GB, free: 80.7 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01425/1.981, allocations: 5.397 MB / 0.7079 GB, free: 78.9 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/1.983, allocations: 384.8 kB / 0.7082 GB, free: 78.69 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/1.998, allocations: 5.292 MB / 0.7134 GB, free: 76.85 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.067e-05/1.998, allocations: 26.97 kB / 0.7134 GB, free: 76.85 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/1.998, allocations: 7.5 kB / 0.7134 GB, free: 76.85 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.151e-05/1.998, allocations: 11.06 kB / 0.7134 GB, free: 76.85 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03216/2.03, allocations: 10.99 MB / 0.7242 GB, free: 68.31 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.12e-05/2.03, allocations: 6.438 kB / 0.7242 GB, free: 68.31 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005351/2.035, allocations: 0.5027 MB / 0.7247 GB, free: 67.91 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004334/2.04, allocations: 0.9434 MB / 0.7256 GB, free: 67.27 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000674/2.041, allocations: 12.66 kB / 0.7256 GB, free: 67.26 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009771/2.05, allocations: 5.332 MB / 0.7308 GB, free: 62.57 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/2.05, allocations: 11.94 kB / 0.7308 GB, free: 62.56 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02036/2.071, allocations: 9.433 MB / 0.74 GB, free: 54.21 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003362/2.074, allocations: 0.8472 MB / 0.7409 GB, free: 53.43 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/2.075, allocations: 4 kB / 0.7409 GB, free: 53.42 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004037/2.079, allocations: 151.1 kB / 0.741 GB, free: 53.34 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006889/2.08, allocations: 151.2 kB / 0.7412 GB, free: 53.24 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003079/2.08, allocations: 67.7 kB / 0.7412 GB, free: 53.18 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004765/2.085, allocations: 2.237 MB / 0.7434 GB, free: 51.21 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.132e-06/2.085, allocations: 0.5625 kB / 0.7434 GB, free: 51.21 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.008869/2.094, allocations: 1.101 MB / 0.7445 GB, free: 50.12 MB / 411.1 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 (225): * Single equations (assignments): 221 * 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.02078/2.115, allocations: 10.79 MB / 0.755 GB, free: 40.11 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0147/2.13, allocations: 6.889 MB / 0.7618 GB, free: 33.24 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/2.13, allocations: 4.75 kB / 0.7618 GB, free: 33.24 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006105/2.136, allocations: 2.614 MB / 0.7643 GB, free: 30.62 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003689/2.14, allocations: 355.9 kB / 0.7646 GB, free: 30.27 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03583/2.175, allocations: 11.99 MB / 0.7764 GB, free: 18.24 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006869/2.182, allocations: 3.906 MB / 0.7802 GB, free: 14.32 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005924/2.188, allocations: 2.385 MB / 0.7825 GB, free: 11.93 MB / 411.1 MB Notification: Performance of SimCode: time 9.31e-07/2.188, allocations: 0 / 0.7825 GB, free: 11.93 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.946/7.134, allocations: 118.5 MB / 0.8982 GB, free: 48.84 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat