Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001506/0.001506, 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.075/2.075, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001128/0.001127, allocations: 89.58 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.189e-05, allocations: 0 / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3364, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1661/0.5026, allocations: 97.56 MB / 460 MB, free: 4.629 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/0.503, allocations: 83.95 kB / 460.1 MB, free: 4.547 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6822/1.185, allocations: 83.17 MB / 0.5305 GB, free: 96.75 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.876e-06/1.185, allocations: 0 / 0.5305 GB, free: 96.75 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002733/1.186, allocations: 82.09 kB / 0.5306 GB, free: 96.75 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.02505/1.211, allocations: 4.494 MB / 0.535 GB, free: 94.63 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/1.211, allocations: 11.38 kB / 0.535 GB, free: 94.63 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01699/1.228, allocations: 2.216 MB / 0.5372 GB, free: 94.31 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0167/1.244, allocations: 4.478 MB / 0.5415 GB, free: 92.62 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002763/1.245, allocations: 134.3 kB / 0.5417 GB, free: 92.62 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002525/1.247, allocations: 252 kB / 0.5419 GB, free: 92.61 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01607/1.263, allocations: 6.344 MB / 0.5481 GB, free: 90.42 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/1.289, allocations: 9.688 MB / 0.5576 GB, free: 82.71 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002632/1.289, allocations: 67.41 kB / 0.5576 GB, free: 82.65 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00186/1.291, allocations: 32 kB / 0.5576 GB, free: 82.62 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00239/1.294, allocations: 0.9943 MB / 0.5586 GB, free: 81.62 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06743/1.361, allocations: 47.02 MB / 0.6045 GB, free: 33.49 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005686/1.367, allocations: 3.217 MB / 0.6077 GB, free: 30.12 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003372/1.37, allocations: 1.737 MB / 0.6094 GB, free: 28.38 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01088/1.381, allocations: 4.242 MB / 0.6135 GB, free: 24.01 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/1.381, allocations: 47.33 kB / 0.6136 GB, free: 23.96 MB / 395.1 MB Notification: Performance of pre-optimization done (n=139): time 6.402e-06/1.381, allocations: 3.703 kB / 0.6136 GB, free: 23.96 MB / 395.1 MB Notification: Performance of matching and sorting (n=146): time 0.03429/1.416, allocations: 12.05 MB / 0.6253 GB, free: 11.8 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/1.416, allocations: 145.3 kB / 0.6255 GB, free: 11.63 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006875/1.423, allocations: 3.162 MB / 0.6286 GB, free: 8.48 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003908/1.423, allocations: 25.7 kB / 0.6286 GB, free: 8.449 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002644/1.426, allocations: 3.227 MB / 0.6317 GB, free: 5.176 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009395/1.427, allocations: 0.5748 MB / 0.6323 GB, free: 4.594 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007073/1.428, allocations: 0 / 0.6323 GB, free: 4.594 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003968/1.428, allocations: 0.5671 MB / 0.6329 GB, free: 4.016 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004321/1.432, allocations: 1.859 MB / 0.6347 GB, free: 2.152 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008401/1.441, allocations: 5.829 MB / 0.6404 GB, free: 10.31 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008354/1.449, allocations: 3.253 MB / 0.6435 GB, free: 7.059 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001563/1.449, allocations: 44 kB / 0.6436 GB, free: 7.016 MB / 411.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.3217/1.771, allocations: 7.342 MB / 0.6508 GB, free: 94.1 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001211/1.771, allocations: 66.38 kB / 0.6508 GB, free: 94.1 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002076/1.772, allocations: 144.2 kB / 0.651 GB, free: 94.1 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004214/1.776, allocations: 0.922 MB / 0.6519 GB, free: 94.09 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00874/1.785, allocations: 1.447 MB / 0.6533 GB, free: 94.09 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009795/1.794, allocations: 4.612 MB / 0.6578 GB, free: 92.84 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007022/1.802, allocations: 222.1 kB / 0.658 GB, free: 92.84 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001878/1.803, allocations: 392.2 kB / 0.6584 GB, free: 92.84 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 36 (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.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 (763): * Single equations (assignments): 759 * 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.002212/1.806, allocations: 454.7 kB / 0.6588 GB, free: 92.73 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009681/1.815, allocations: 2.995 MB / 0.6617 GB, free: 92.68 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009909/1.816, allocations: 316 kB / 0.662 GB, free: 92.68 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009967/1.826, allocations: 2.71 MB / 0.6647 GB, free: 92.57 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.109e-05/1.827, allocations: 21.33 kB / 0.6647 GB, free: 92.57 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.242e-05/1.827, allocations: 3.281 kB / 0.6647 GB, free: 92.57 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.523e-05/1.827, allocations: 10.41 kB / 0.6647 GB, free: 92.57 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02039/1.847, allocations: 6.12 MB / 0.6707 GB, free: 92.12 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.847, allocations: 3.594 kB / 0.6707 GB, free: 92.12 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002515/1.85, allocations: 244.8 kB / 0.6709 GB, free: 92.11 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003742/1.853, allocations: 0.6962 MB / 0.6716 GB, free: 91.99 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003802/1.854, allocations: 11.81 kB / 0.6716 GB, free: 91.99 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007851/1.862, allocations: 4.182 MB / 0.6757 GB, free: 89.69 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/1.862, allocations: 2.375 kB / 0.6757 GB, free: 89.69 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.012/1.874, allocations: 4.996 MB / 0.6806 GB, free: 87.8 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002373/1.876, allocations: 0.576 MB / 0.6811 GB, free: 87.45 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001123/1.877, allocations: 0 / 0.6811 GB, free: 87.45 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002971/1.88, allocations: 65.62 kB / 0.6812 GB, free: 87.45 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006589/1.881, allocations: 85.17 kB / 0.6813 GB, free: 87.44 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001699/1.881, allocations: 39.09 kB / 0.6813 GB, free: 87.43 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005504/1.887, allocations: 2.096 MB / 0.6834 GB, free: 86.66 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.062e-06/1.887, allocations: 3 kB / 0.6834 GB, free: 86.66 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.007523/1.894, allocations: 0.8267 MB / 0.6842 GB, free: 86.66 MB / 411.1 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 (115): * Single equations (assignments): 111 * 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.01245/1.907, allocations: 5.777 MB / 0.6898 GB, free: 83.96 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.009927/1.917, allocations: 4.461 MB / 0.6942 GB, free: 82.7 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.917, allocations: 0 / 0.6942 GB, free: 82.7 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002814/1.92, allocations: 1.296 MB / 0.6954 GB, free: 82.19 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/1.923, allocations: 317.7 kB / 0.6957 GB, free: 82.05 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03175/1.955, allocations: 8.854 MB / 0.7044 GB, free: 78.89 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007539/1.962, allocations: 3.322 MB / 0.7076 GB, free: 77.61 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00463/1.967, allocations: 1.896 MB / 0.7095 GB, free: 76.11 MB / 411.1 MB Notification: Performance of SimCode: time 2.305e-06/1.967, allocations: 0 / 0.7095 GB, free: 76.11 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.405/6.372, allocations: 94.81 MB / 0.8021 GB, free: 2.77 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat