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.001569/0.001569, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.924/1.924, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001145/0.001145, allocations: 99.22 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003907, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3736, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2365/0.6101, allocations: 99.01 MB / 473.6 MB, free: 13.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004923/0.6107, allocations: 91.95 kB / 473.7 MB, free: 13.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6718/1.283, allocations: 98.13 MB / 0.5585 GB, free: 56.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.283, allocations: 3.938 kB / 0.5585 GB, free: 56.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003203/1.283, allocations: 100 kB / 0.5586 GB, free: 56.85 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: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.03117/1.314, allocations: 5.781 MB / 0.5642 GB, free: 51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/1.314, allocations: 8.031 kB / 0.5642 GB, free: 50.99 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004437/1.319, allocations: 0.9234 MB / 0.5651 GB, free: 50.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01789/1.337, allocations: 2.325 MB / 0.5674 GB, free: 47.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01969/1.356, allocations: 4.956 MB / 0.5722 GB, free: 42.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005785/1.357, allocations: 390.3 kB / 0.5726 GB, free: 42.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003536/1.361, allocations: 0.5114 MB / 0.5731 GB, free: 41.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04054/1.401, allocations: 13.02 MB / 0.5858 GB, free: 27.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003871/1.402, allocations: 79.25 kB / 0.5859 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002581/1.404, allocations: 247.9 kB / 0.5861 GB, free: 27.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002888/1.407, allocations: 1.211 MB / 0.5873 GB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03526/1.442, allocations: 11.22 MB / 0.5983 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4237/1.866, allocations: 57.17 MB / 0.6541 GB, free: 50.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02599/1.892, allocations: 5.205 MB / 0.6592 GB, free: 49.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00181/1.894, allocations: 0.6822 MB / 0.6598 GB, free: 49.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/1.894, allocations: 62.33 kB / 0.6599 GB, free: 49.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 5.47e-06/1.894, allocations: 0 / 0.6599 GB, free: 49.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.1159/2.01, allocations: 25.65 MB / 0.685 GB, free: 45.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/2.01, allocations: 158.6 kB / 0.6851 GB, free: 45.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009811/2.02, allocations: 4.116 MB / 0.6891 GB, free: 44.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007795/2.021, allocations: 59.59 kB / 0.6892 GB, free: 44.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003039/2.024, allocations: 3.485 MB / 0.6926 GB, free: 42.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/2.026, allocations: 0.9522 MB / 0.6935 GB, free: 42.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/2.027, allocations: 137.5 kB / 0.6936 GB, free: 42.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005387/2.027, allocations: 0.603 MB / 0.6942 GB, free: 42.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007978/2.035, allocations: 3.06 MB / 0.6972 GB, free: 41.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01094/2.046, allocations: 7.096 MB / 0.7042 GB, free: 35.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/2.057, allocations: 4.553 MB / 0.7086 GB, free: 33.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/2.057, allocations: 40.81 kB / 0.7086 GB, free: 33.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=912) (initialization): time 0.03094/2.088, allocations: 10.86 MB / 0.7193 GB, free: 30.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/2.089, allocations: 68 kB / 0.7193 GB, free: 30.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002322/2.089, allocations: 143.4 kB / 0.7195 GB, free: 30.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00504/2.094, allocations: 1.144 MB / 0.7206 GB, free: 29.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01167/2.106, allocations: 1.735 MB / 0.7223 GB, free: 28.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/2.117, allocations: 6.044 MB / 0.7282 GB, free: 22.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008746/2.126, allocations: 432.6 kB / 0.7286 GB, free: 22.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001898/2.128, allocations: 433 kB / 0.729 GB, free: 22.1 MB / 410.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 () * Number of clocked 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.007357/2.136, allocations: 2.446 MB / 0.7314 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001217/2.137, allocations: 417 kB / 0.7318 GB, free: 19.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01757/2.154, allocations: 5.598 MB / 0.7372 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.129e-05/2.154, allocations: 24 kB / 0.7373 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.926e-05/2.155, allocations: 7.953 kB / 0.7373 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.66e-05/2.155, allocations: 16.8 kB / 0.7373 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03724/2.192, allocations: 12.22 MB / 0.7492 GB, free: 5.133 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.865e-05/2.192, allocations: 4 kB / 0.7492 GB, free: 5.129 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005271/2.197, allocations: 0.4984 MB / 0.7497 GB, free: 4.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004518/2.202, allocations: 0.9382 MB / 0.7506 GB, free: 4.102 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007548/2.203, allocations: 49.27 kB / 0.7507 GB, free: 4.055 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/2.214, allocations: 5.755 MB / 0.7563 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/2.214, allocations: 5.406 kB / 0.7563 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02764/2.242, allocations: 9.847 MB / 0.7659 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003906/2.246, allocations: 0.9094 MB / 0.7668 GB, free: 4.363 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/2.247, allocations: 44 kB / 0.7668 GB, free: 4.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004888/2.252, allocations: 186.1 kB / 0.767 GB, free: 4.141 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001213/2.254, allocations: 153.7 kB / 0.7672 GB, free: 3.988 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003563/2.254, allocations: 67.98 kB / 0.7672 GB, free: 3.922 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008702/2.263, allocations: 2.876 MB / 0.77 GB, free: 1.047 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.62e-07/2.263, allocations: 4 kB / 0.77 GB, free: 1.043 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009417/2.272, allocations: 1.269 MB / 0.7713 GB, free: 15.78 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 (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.02883/2.301, allocations: 11.21 MB / 0.7822 GB, free: 4.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02047/2.322, allocations: 7.321 MB / 0.7894 GB, free: 13.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/2.322, allocations: 0 / 0.7894 GB, free: 13.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007851/2.33, allocations: 2.736 MB / 0.7921 GB, free: 10.38 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004333/2.334, allocations: 451.8 kB / 0.7925 GB, free: 9.949 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4442/2.778, allocations: 144 MB / 0.9331 GB, free: 41.02 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009393/2.788, allocations: 3.913 MB / 0.9369 GB, free: 40.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006697/2.794, allocations: 2.401 MB / 0.9392 GB, free: 40.19 MB / 474.7 MB Notification: Performance of SimCode: time 1.132e-06/2.794, allocations: 0 / 0.9392 GB, free: 40.19 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.868/7.663, allocations: 122.1 MB / 1.058 GB, free: 119.3 MB / 474.7 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