Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009976/0.0009976, allocations: 89.53 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002762, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2661, allocations: 50.42 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.3859, allocations: 99.28 MB / 0.4891 GB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.3863, allocations: 87.95 kB / 0.4892 GB, free: 13.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4189/0.8051, allocations: 81.81 MB / 0.5691 GB, free: 43.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.348e-06/0.8052, allocations: 0 / 0.5691 GB, free: 43.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003789/0.8056, allocations: 79.94 kB / 0.5692 GB, free: 43.68 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.02067/0.8263, allocations: 4.573 MB / 0.5736 GB, free: 39.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.8264, allocations: 8.031 kB / 0.5736 GB, free: 39.03 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003848/0.8303, allocations: 0.7294 MB / 0.5744 GB, free: 38.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009849/0.8401, allocations: 2.186 MB / 0.5765 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.8523, allocations: 4.242 MB / 0.5806 GB, free: 31.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003138/0.8527, allocations: 304 kB / 0.5809 GB, free: 31.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002331/0.855, allocations: 411.8 kB / 0.5813 GB, free: 31.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02477/0.8798, allocations: 10.33 MB / 0.5914 GB, free: 19.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003477/0.8802, allocations: 67.39 kB / 0.5915 GB, free: 19.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002042/0.8823, allocations: 199.9 kB / 0.5917 GB, free: 19.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001435/0.8838, allocations: 0.9393 MB / 0.5926 GB, free: 18.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01668/0.9005, allocations: 8.583 MB / 0.601 GB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0555/0.956, allocations: 47.34 MB / 0.6472 GB, free: 9.023 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/0.9666, allocations: 3.284 MB / 0.6504 GB, free: 5.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009875/0.9766, allocations: 4.052 MB / 0.6544 GB, free: 1.391 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.9766, allocations: 43.11 kB / 0.6544 GB, free: 1.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 8.687e-06/0.9767, allocations: 0 / 0.6544 GB, free: 1.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=124): time 0.02809/1.005, allocations: 11.13 MB / 0.6653 GB, free: 6.035 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.785e-05/1.005, allocations: 149.3 kB / 0.6654 GB, free: 5.859 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007916/1.013, allocations: 3.633 MB / 0.669 GB, free: 2.203 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000263/1.013, allocations: 45.69 kB / 0.669 GB, free: 2.152 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2659/1.279, allocations: 3.073 MB / 0.672 GB, free: 111.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001054/1.28, allocations: 0.5227 MB / 0.6725 GB, free: 111 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000618/1.281, allocations: 108.2 kB / 0.6726 GB, free: 111 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004137/1.281, allocations: 0.5428 MB / 0.6731 GB, free: 110.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002939/1.284, allocations: 1.812 MB / 0.6749 GB, free: 110.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003987/1.288, allocations: 5.509 MB / 0.6803 GB, free: 105.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004046/1.292, allocations: 3.097 MB / 0.6833 GB, free: 105.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.974e-05/1.292, allocations: 36.97 kB / 0.6834 GB, free: 105.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01307/1.305, allocations: 7.764 MB / 0.6909 GB, free: 105.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002133/1.306, allocations: 61.97 kB / 0.691 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002979/1.306, allocations: 135.2 kB / 0.6911 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002272/1.308, allocations: 0.91 MB / 0.692 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004087/1.312, allocations: 1.313 MB / 0.6933 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005638/1.318, allocations: 4.871 MB / 0.6981 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004992/1.323, allocations: 308.3 kB / 0.6983 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001256/1.324, allocations: 359 kB / 0.6987 GB, free: 103.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 38 (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.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 (694): * Single equations (assignments): 690 * 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.00516/1.329, allocations: 2.01 MB / 0.7007 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007519/1.33, allocations: 336.6 kB / 0.701 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005126/1.335, allocations: 2.498 MB / 0.7034 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.464e-05/1.335, allocations: 18.09 kB / 0.7034 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/1.335, allocations: 10.16 kB / 0.7034 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/1.335, allocations: 7.266 kB / 0.7034 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01444/1.35, allocations: 6.315 MB / 0.7096 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/1.35, allocations: 3.5 kB / 0.7096 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/1.351, allocations: 207.5 kB / 0.7098 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/1.353, allocations: 0.696 MB / 0.7105 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000203/1.353, allocations: 18.62 kB / 0.7105 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004806/1.358, allocations: 4.444 MB / 0.7149 GB, free: 98.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.358, allocations: 7.172 kB / 0.7149 GB, free: 98.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007444/1.366, allocations: 4.613 MB / 0.7194 GB, free: 96.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/1.367, allocations: 396 kB / 0.7197 GB, free: 95.83 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001065/1.368, allocations: 21.73 kB / 0.7198 GB, free: 95.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001942/1.37, allocations: 71.11 kB / 0.7198 GB, free: 95.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/1.37, allocations: 74.31 kB / 0.7199 GB, free: 95.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/1.37, allocations: 39.98 kB / 0.7199 GB, free: 95.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005938/1.376, allocations: 2.535 MB / 0.7224 GB, free: 94.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.72e-07/1.376, allocations: 0 / 0.7224 GB, free: 94.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007742/1.384, allocations: 0.9011 MB / 0.7233 GB, free: 94.8 MB / 442.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 (92): * Single equations (assignments): 88 * 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.009789/1.394, allocations: 5.414 MB / 0.7286 GB, free: 92.23 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007626/1.402, allocations: 4.363 MB / 0.7328 GB, free: 88.58 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/1.402, allocations: 0 / 0.7328 GB, free: 88.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/1.404, allocations: 1.175 MB / 0.734 GB, free: 87.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003077/1.407, allocations: 398.3 kB / 0.7344 GB, free: 87.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3233/1.73, allocations: 122.8 MB / 0.8543 GB, free: 108.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003431/1.733, allocations: 3.181 MB / 0.8574 GB, free: 107.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00454/1.738, allocations: 1.795 MB / 0.8592 GB, free: 107.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002502/1.741, allocations: 1.747 MB / 0.8609 GB, free: 107.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.174e-06/1.741, allocations: 0.5938 kB / 0.8609 GB, free: 107.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1244/1.865, allocations: 70.92 MB / 0.9301 GB, free: 62.04 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/1.865, allocations: 237.9 kB / 0.9303 GB, free: 61.78 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.261/6.126, allocations: 4 kB / 0.9304 GB, free: 61.78 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat