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.002144/0.002144, allocations: 181.9 kB / 16.4 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, 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.001166/0.001165, allocations: 93.3 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.0004048, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3426, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1608/0.5035, allocations: 98.31 MB / 472.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003638/0.5039, allocations: 95.95 kB / 473 MB, free: 14.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6145/1.118, allocations: 84.77 MB / 0.5447 GB, free: 71.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.119, allocations: 0 / 0.5447 GB, free: 71.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002602/1.119, allocations: 87.98 kB / 0.5448 GB, free: 70.95 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.0258/1.145, allocations: 4.746 MB / 0.5494 GB, free: 66.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/1.145, allocations: 12.03 kB / 0.5495 GB, free: 66.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003271/1.148, allocations: 0.7707 MB / 0.5502 GB, free: 65.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01672/1.165, allocations: 2.218 MB / 0.5524 GB, free: 63.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01607/1.181, allocations: 4.489 MB / 0.5568 GB, free: 58.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003849/1.181, allocations: 328.4 kB / 0.5571 GB, free: 58.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002429/1.184, allocations: 427.8 kB / 0.5575 GB, free: 57.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0314/1.215, allocations: 10.8 MB / 0.568 GB, free: 45.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000274/1.216, allocations: 67.41 kB / 0.5681 GB, free: 45.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001679/1.217, allocations: 203.9 kB / 0.5683 GB, free: 45.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002356/1.22, allocations: 1.002 MB / 0.5693 GB, free: 44.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02735/1.247, allocations: 9.011 MB / 0.5781 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07443/1.321, allocations: 48.98 MB / 0.6259 GB, free: 1.109 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02014/1.342, allocations: 3.55 MB / 0.6294 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/1.355, allocations: 4.367 MB / 0.6336 GB, free: 8.898 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.13e-05/1.355, allocations: 47.5 kB / 0.6337 GB, free: 8.844 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.611e-06/1.355, allocations: 3.938 kB / 0.6337 GB, free: 8.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.3633/1.718, allocations: 12.24 MB / 0.6456 GB, free: 98.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/1.718, allocations: 144.4 kB / 0.6458 GB, free: 98.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008926/1.727, allocations: 3.731 MB / 0.6494 GB, free: 98.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003918/1.727, allocations: 46.61 kB / 0.6495 GB, free: 98.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002848/1.73, allocations: 3.112 MB / 0.6525 GB, free: 96.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009643/1.731, allocations: 0.5865 MB / 0.6531 GB, free: 96.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007827/1.732, allocations: 118.8 kB / 0.6532 GB, free: 96.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003699/1.733, allocations: 0.5574 MB / 0.6537 GB, free: 95.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005472/1.738, allocations: 1.986 MB / 0.6557 GB, free: 95.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008623/1.747, allocations: 5.788 MB / 0.6613 GB, free: 90.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008823/1.756, allocations: 3.32 MB / 0.6646 GB, free: 90.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002797/1.756, allocations: 40.59 kB / 0.6646 GB, free: 90.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02353/1.779, allocations: 8.106 MB / 0.6725 GB, free: 89.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/1.78, allocations: 62.06 kB / 0.6726 GB, free: 89.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002121/1.78, allocations: 139.5 kB / 0.6727 GB, free: 89.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004177/1.784, allocations: 0.9207 MB / 0.6736 GB, free: 89.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008301/1.792, allocations: 1.383 MB / 0.675 GB, free: 89.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009262/1.802, allocations: 4.889 MB / 0.6797 GB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006857/1.809, allocations: 327.4 kB / 0.68 GB, free: 86.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001515/1.81, allocations: 370.9 kB / 0.6804 GB, free: 86.31 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 622 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (732): * Single equations (assignments): 728 * 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.006024/1.816, allocations: 2.108 MB / 0.6825 GB, free: 85.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009605/1.817, allocations: 346.8 kB / 0.6828 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009423/1.827, allocations: 2.876 MB / 0.6856 GB, free: 84.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.026e-05/1.827, allocations: 18.06 kB / 0.6856 GB, free: 84.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/1.827, allocations: 6.781 kB / 0.6856 GB, free: 84.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.734e-05/1.827, allocations: 7.031 kB / 0.6856 GB, free: 84.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02122/1.848, allocations: 7.019 MB / 0.6925 GB, free: 81.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/1.848, allocations: 0 / 0.6925 GB, free: 81.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00241/1.851, allocations: 245.3 kB / 0.6927 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003751/1.854, allocations: 0.7012 MB / 0.6934 GB, free: 81.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003514/1.855, allocations: 26.39 kB / 0.6934 GB, free: 81.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/1.867, allocations: 4.46 MB / 0.6978 GB, free: 78.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.867, allocations: 0 / 0.6978 GB, free: 78.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/1.88, allocations: 5.192 MB / 0.7028 GB, free: 75.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002109/1.882, allocations: 0.6225 MB / 0.7035 GB, free: 74.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007299/1.883, allocations: 23.44 kB / 0.7035 GB, free: 74.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002299/1.885, allocations: 93.62 kB / 0.7036 GB, free: 74.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/1.885, allocations: 80.5 kB / 0.7036 GB, free: 74.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/1.886, allocations: 38.95 kB / 0.7037 GB, free: 74.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005673/1.891, allocations: 2.603 MB / 0.7062 GB, free: 72.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-07/1.891, allocations: 4 kB / 0.7062 GB, free: 72.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006881/1.898, allocations: 0.9584 MB / 0.7072 GB, free: 71.24 MB / 410.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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.01323/1.912, allocations: 6.004 MB / 0.713 GB, free: 66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01121/1.923, allocations: 4.766 MB / 0.7177 GB, free: 61.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/1.923, allocations: 0 / 0.7177 GB, free: 61.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003067/1.926, allocations: 1.366 MB / 0.719 GB, free: 60.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003433/1.929, allocations: 389.6 kB / 0.7194 GB, free: 60.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4089/2.338, allocations: 127.9 MB / 0.8443 GB, free: 97.08 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007525/2.346, allocations: 3.322 MB / 0.8475 GB, free: 96.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005013/2.351, allocations: 1.893 MB / 0.8494 GB, free: 96.29 MB / 442.7 MB Notification: Performance of SimCode: time 1.813e-06/2.351, allocations: 6.719 kB / 0.8494 GB, free: 96.29 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.278/6.629, allocations: 97.66 MB / 0.9448 GB, free: 21.93 MB / 442.7 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