Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001244/0.001245, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.2 MB / 219.8 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007638/0.0007639, allocations: 98.62 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.742e-05/2.745e-05, allocations: 11.98 kB / 322.6 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09055/0.09059, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3604/0.451, allocations: 98.91 MB / 469 MB, free: 10.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.4514, allocations: 90.25 kB / 469.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4691/0.9205, allocations: 98.2 MB / 0.554 GB, free: 90.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.9205, allocations: 0 / 0.554 GB, free: 90.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001898/0.9207, allocations: 107.7 kB / 0.5541 GB, free: 90.74 MB / 410.7 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.01898/0.9397, allocations: 5.506 MB / 0.5595 GB, free: 88.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.9398, allocations: 14.03 kB / 0.5595 GB, free: 88.71 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003018/0.9428, allocations: 0.9277 MB / 0.5604 GB, free: 88.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/0.9533, allocations: 2.322 MB / 0.5627 GB, free: 88.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01392/0.9672, allocations: 4.93 MB / 0.5675 GB, free: 87.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004293/0.9677, allocations: 397.1 kB / 0.5679 GB, free: 87.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002868/0.9706, allocations: 0.5151 MB / 0.5684 GB, free: 87.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02958/1, allocations: 12.9 MB / 0.581 GB, free: 83.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003613/1.001, allocations: 71.5 kB / 0.5811 GB, free: 83.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002409/1.003, allocations: 251.5 kB / 0.5813 GB, free: 83.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001834/1.005, allocations: 1.199 MB / 0.5825 GB, free: 82.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02266/1.028, allocations: 11.02 MB / 0.5932 GB, free: 79.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06598/1.094, allocations: 57.18 MB / 0.6491 GB, free: 28.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/1.107, allocations: 5.139 MB / 0.6541 GB, free: 22.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003699/1.111, allocations: 3.169 MB / 0.6572 GB, free: 19.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001062/1.112, allocations: 0.684 MB / 0.6579 GB, free: 18.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.669e-05/1.112, allocations: 55.81 kB / 0.6579 GB, free: 18.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 4.97e-06/1.112, allocations: 0 / 0.6579 GB, free: 18.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.05825/1.17, allocations: 21.51 MB / 0.6789 GB, free: 13.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/1.171, allocations: 166.5 kB / 0.6791 GB, free: 13.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01104/1.182, allocations: 4.066 MB / 0.683 GB, free: 8.996 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009036/1.183, allocations: 61.7 kB / 0.6831 GB, free: 8.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003884/1.186, allocations: 3.591 MB / 0.6866 GB, free: 5.336 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/1.188, allocations: 0.9539 MB / 0.6875 GB, free: 4.391 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/1.19, allocations: 140 kB / 0.6877 GB, free: 4.254 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008357/1.19, allocations: 0.5956 MB / 0.6883 GB, free: 3.652 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005529/1.196, allocations: 2.969 MB / 0.6912 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2603/1.456, allocations: 7.024 MB / 0.698 GB, free: 92.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009124/1.466, allocations: 4.516 MB / 0.7024 GB, free: 92.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001914/1.466, allocations: 39.56 kB / 0.7025 GB, free: 92.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=912) (initialization): time 0.02503/1.491, allocations: 10.84 MB / 0.713 GB, free: 91.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/1.491, allocations: 66.84 kB / 0.7131 GB, free: 91.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000182/1.491, allocations: 144.8 kB / 0.7132 GB, free: 91.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00257/1.494, allocations: 1.144 MB / 0.7144 GB, free: 91.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006432/1.5, allocations: 1.741 MB / 0.7161 GB, free: 91.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00715/1.507, allocations: 5.93 MB / 0.7219 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006581/1.514, allocations: 428.3 kB / 0.7223 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001417/1.515, allocations: 434.5 kB / 0.7227 GB, free: 90 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 653 * 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 (873): * Single equations (assignments): 869 * 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.001411/1.517, allocations: 0.6449 MB / 0.7233 GB, free: 89.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/1.518, allocations: 415.4 kB / 0.7237 GB, free: 89.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009159/1.527, allocations: 5.496 MB / 0.7291 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.742e-05/1.527, allocations: 26.31 kB / 0.7291 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/1.527, allocations: 3.938 kB / 0.7291 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/1.527, allocations: 14.05 kB / 0.7291 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.548, allocations: 12.11 MB / 0.7409 GB, free: 83.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/1.548, allocations: 7.5 kB / 0.741 GB, free: 83.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002467/1.55, allocations: 0.5038 MB / 0.7414 GB, free: 83.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002248/1.553, allocations: 0.9311 MB / 0.7424 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000294/1.553, allocations: 47.28 kB / 0.7424 GB, free: 83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00601/1.559, allocations: 5.637 MB / 0.7479 GB, free: 80.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.559, allocations: 11.3 kB / 0.7479 GB, free: 80.13 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/1.571, allocations: 9.699 MB / 0.7574 GB, free: 76.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00284/1.574, allocations: 0.9053 MB / 0.7583 GB, free: 75.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008669/1.575, allocations: 50.22 kB / 0.7583 GB, free: 75.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002189/1.577, allocations: 180.8 kB / 0.7585 GB, free: 75.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004047/1.577, allocations: 152.4 kB / 0.7586 GB, free: 75.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/1.578, allocations: 68.44 kB / 0.7587 GB, free: 75.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004222/1.582, allocations: 2.842 MB / 0.7615 GB, free: 74.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.582, allocations: 0 / 0.7615 GB, free: 74.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006764/1.589, allocations: 1.266 MB / 0.7627 GB, free: 74.26 MB / 426.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 (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.01209/1.601, allocations: 11.05 MB / 0.7735 GB, free: 64.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01078/1.612, allocations: 7.174 MB / 0.7805 GB, free: 58.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.612, allocations: 0 / 0.7805 GB, free: 58.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003674/1.615, allocations: 2.687 MB / 0.7831 GB, free: 56.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003214/1.619, allocations: 457.1 kB / 0.7836 GB, free: 55.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02984/1.648, allocations: 11.77 MB / 0.7951 GB, free: 45.44 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005487/1.654, allocations: 3.911 MB / 0.7989 GB, free: 42.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.006594/1.661, allocations: 2.323 MB / 0.8011 GB, free: 41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003832/1.664, allocations: 2.343 MB / 0.8034 GB, free: 38.84 MB / 426.7 MB Notification: Performance of SimCode: time 7.62e-07/1.664, allocations: 0 / 0.8034 GB, free: 38.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3834/2.048, allocations: 97.16 MB / 0.8983 GB, free: 98.92 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/2.048, allocations: 202.2 kB / 0.8985 GB, free: 98.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.528/6.576, allocations: 3.906 kB / 0.8985 GB, free: 98.7 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat