Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001047/0.001047, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009135/0.0009135, allocations: 100.5 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002483/0.0002484, allocations: 8 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2143, allocations: 51.49 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1127/0.327, allocations: 100.6 MB / 0.4982 GB, free: 5.934 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.3273, allocations: 95.94 kB / 0.4983 GB, free: 5.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3825/0.7098, allocations: 96 MB / 0.592 GB, free: 18.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.7099, allocations: 0 / 0.592 GB, free: 18.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001792/0.7101, allocations: 104 kB / 0.5921 GB, free: 17.98 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.01957/0.7296, allocations: 5.694 MB / 0.5977 GB, free: 12.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.7297, allocations: 16.02 kB / 0.5977 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003117/0.7328, allocations: 0.8938 MB / 0.5986 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009411/0.7423, allocations: 2.318 MB / 0.6008 GB, free: 8.973 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.7531, allocations: 4.191 MB / 0.6049 GB, free: 4.719 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/0.7534, allocations: 373.9 kB / 0.6053 GB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002348/0.7558, allocations: 0.4997 MB / 0.6058 GB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02752/0.7833, allocations: 12.57 MB / 0.6181 GB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004285/0.7838, allocations: 67.34 kB / 0.6181 GB, free: 6.098 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002544/0.7864, allocations: 239.9 kB / 0.6183 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001965/0.7884, allocations: 1.137 MB / 0.6195 GB, free: 4.723 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02379/0.8122, allocations: 10.8 MB / 0.63 GB, free: 9.898 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3088/1.121, allocations: 55.54 MB / 0.6842 GB, free: 56.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01385/1.135, allocations: 4.981 MB / 0.6891 GB, free: 56.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001078/1.136, allocations: 0.6866 MB / 0.6898 GB, free: 55.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/1.136, allocations: 52.12 kB / 0.6898 GB, free: 55.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=200): time 5.149e-06/1.136, allocations: 7.062 kB / 0.6898 GB, free: 55.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.05652/1.193, allocations: 24.41 MB / 0.7137 GB, free: 51.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/1.193, allocations: 150.5 kB / 0.7138 GB, free: 51.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005665/1.198, allocations: 4.01 MB / 0.7177 GB, free: 51.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005794/1.199, allocations: 60.8 kB / 0.7178 GB, free: 51.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/1.201, allocations: 3.486 MB / 0.7212 GB, free: 49.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009584/1.202, allocations: 0.8758 MB / 0.722 GB, free: 49.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/1.202, allocations: 135.3 kB / 0.7222 GB, free: 49.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002779/1.202, allocations: 0.5882 MB / 0.7227 GB, free: 48.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003474/1.206, allocations: 2.886 MB / 0.7256 GB, free: 48.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005134/1.211, allocations: 6.825 MB / 0.7322 GB, free: 43.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00559/1.217, allocations: 4.344 MB / 0.7365 GB, free: 41.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.676e-05/1.217, allocations: 37.69 kB / 0.7365 GB, free: 41.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.0158/1.233, allocations: 10.55 MB / 0.7468 GB, free: 38.96 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.521e-05/1.233, allocations: 62.88 kB / 0.7469 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001537/1.233, allocations: 139.7 kB / 0.747 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002472/1.235, allocations: 1.139 MB / 0.7481 GB, free: 38.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005542/1.241, allocations: 1.662 MB / 0.7497 GB, free: 38.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006211/1.247, allocations: 6.036 MB / 0.7556 GB, free: 34.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00583/1.253, allocations: 411.1 kB / 0.756 GB, free: 34.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/1.254, allocations: 421.4 kB / 0.7564 GB, free: 33.91 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 () * 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.004413/1.259, allocations: 2.359 MB / 0.7587 GB, free: 31.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008615/1.26, allocations: 407.2 kB / 0.7591 GB, free: 31.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007647/1.267, allocations: 5.227 MB / 0.7642 GB, free: 27.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-05/1.267, allocations: 24 kB / 0.7642 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/1.267, allocations: 4 kB / 0.7643 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/1.267, allocations: 14.14 kB / 0.7643 GB, free: 27.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/1.286, allocations: 11.51 MB / 0.7755 GB, free: 17.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.872e-05/1.286, allocations: 4 kB / 0.7755 GB, free: 17.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/1.288, allocations: 469.5 kB / 0.776 GB, free: 17.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002234/1.291, allocations: 0.9414 MB / 0.7769 GB, free: 16.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003457/1.291, allocations: 44 kB / 0.7769 GB, free: 16.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00567/1.297, allocations: 5.752 MB / 0.7825 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.297, allocations: 4 kB / 0.7825 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01124/1.308, allocations: 9.264 MB / 0.7916 GB, free: 3.738 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002696/1.311, allocations: 0.8621 MB / 0.7924 GB, free: 2.938 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/1.311, allocations: 40 kB / 0.7925 GB, free: 2.898 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.313, allocations: 163 kB / 0.7926 GB, free: 2.797 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003398/1.313, allocations: 143.5 kB / 0.7928 GB, free: 2.711 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/1.313, allocations: 64 kB / 0.7928 GB, free: 2.648 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003471/1.317, allocations: 2.811 MB / 0.7956 GB, free: 340 kB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.317, allocations: 0 / 0.7956 GB, free: 340 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.008945/1.326, allocations: 1.588 MB / 0.7971 GB, free: 15.9 MB / 458.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.01295/1.339, allocations: 10.63 MB / 0.8075 GB, free: 5.195 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01027/1.349, allocations: 6.904 MB / 0.8142 GB, free: 14.31 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/1.349, allocations: 0 / 0.8142 GB, free: 14.31 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003472/1.353, allocations: 2.56 MB / 0.8167 GB, free: 11.74 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/1.355, allocations: 447.5 kB / 0.8172 GB, free: 11.31 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2712/1.626, allocations: 138.7 MB / 0.9526 GB, free: 67.55 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00371/1.63, allocations: 3.77 MB / 0.9563 GB, free: 66.74 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005297/1.635, allocations: 2.227 MB / 0.9585 GB, free: 66.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003054/1.638, allocations: 2.232 MB / 0.9607 GB, free: 66.69 MB / 0.4948 GB Notification: Performance of SimCode: time 2.385e-06/1.638, allocations: 0 / 0.9607 GB, free: 66.69 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1245/1.763, allocations: 93.35 MB / 1.052 GB, free: 4.715 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/1.763, allocations: 232.7 kB / 1.052 GB, free: 4.477 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.245/6.009, allocations: 2.953 kB / 1.052 GB, free: 4.477 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat