Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007969/0.0007966, allocations: 103.7 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008966/0.0008967, allocations: 193.9 kB / 17.9 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.3 MB / 246 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002495/0.0002495, allocations: 4 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1098, allocations: 51.49 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.3001/0.41, allocations: 44.96 MB / 403.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02984/0.4399, allocations: 9.753 MB / 413 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01289/0.4528, allocations: 209.1 kB / 413.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009755/0.4626, allocations: 2.313 MB / 415.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02315/0.4858, allocations: 6.905 MB / 422.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003386/0.4892, allocations: 0.5038 MB / 422.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005939/0.4952, allocations: 4.233 MB / 427.2 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006125/0.5013, allocations: 4.251 MB / 431.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002066/0.5034, allocations: 1.164 MB / 432.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002464/0.5059, allocations: 1.838 MB / 434.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004016/0.5063, allocations: 128 kB / 434.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001638/0.5079, allocations: 0.7645 MB / 435.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001377/0.5093, allocations: 1.586 MB / 436.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007712/0.5101, allocations: 0.796 MB / 437.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004668/0.5148, allocations: 5.229 MB / 442.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.5148, allocations: 0 / 442.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5148, allocations: 8 kB / 442.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001339/0.515, allocations: 0 / 442.9 MB, free: 7.055 MB / 350.1 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.01375/0.5287, allocations: 4.287 MB / 447.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.5288, allocations: 8.031 kB / 447.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001779/0.5306, allocations: 0.6904 MB / 447.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00646/0.537, allocations: 1.948 MB / 449.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004991/0.5421, allocations: 2.397 MB / 452.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.5423, allocations: 229.8 kB / 452.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006057/0.5429, allocations: 303.8 kB / 452.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01772/0.5606, allocations: 10.21 MB / 463 MB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.5607, allocations: 39.69 kB / 463 MB, free: 2.129 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003917/0.5611, allocations: 143.9 kB / 463.2 MB, free: 1.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002923/0.5641, allocations: 1.872 MB / 465.1 MB, free: 112 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01826/0.5824, allocations: 9.1 MB / 474.2 MB, free: 7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04664/0.629, allocations: 38.25 MB / 0.5004 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/0.6403, allocations: 3.571 MB / 0.5039 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002201/0.6425, allocations: 1.69 MB / 0.5055 GB, free: 10.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005076/0.643, allocations: 355.6 kB / 0.5059 GB, free: 9.816 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.6431, allocations: 47.12 kB / 0.5059 GB, free: 9.762 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 4.047e-06/0.6431, allocations: 3.938 kB / 0.5059 GB, free: 9.758 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.04003/0.6831, allocations: 12.73 MB / 0.5184 GB, free: 12.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/0.6834, allocations: 145.2 kB / 0.5185 GB, free: 12.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007277/0.6906, allocations: 4.053 MB / 0.5225 GB, free: 8.648 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004351/0.6911, allocations: 41.7 kB / 0.5225 GB, free: 8.602 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002479/0.6936, allocations: 3.051 MB / 0.5255 GB, free: 5.508 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008663/0.6945, allocations: 0.548 MB / 0.526 GB, free: 4.953 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.6948, allocations: 112 kB / 0.5261 GB, free: 4.844 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003451/0.6951, allocations: 0.5456 MB / 0.5266 GB, free: 4.289 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003012/0.6981, allocations: 1.943 MB / 0.5285 GB, free: 2.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2307/0.9288, allocations: 5.641 MB / 0.5341 GB, free: 140.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006212/0.9351, allocations: 3.232 MB / 0.5372 GB, free: 140.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001851/0.9353, allocations: 37.12 kB / 0.5372 GB, free: 140.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.01974/0.9551, allocations: 8.039 MB / 0.5451 GB, free: 137.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001878/0.9553, allocations: 62.8 kB / 0.5452 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002547/0.9556, allocations: 131.7 kB / 0.5453 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002763/0.9583, allocations: 0.9342 MB / 0.5462 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004919/0.9633, allocations: 1.314 MB / 0.5475 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00651/0.9698, allocations: 4.863 MB / 0.5522 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005172/0.975, allocations: 306 kB / 0.5525 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/0.9764, allocations: 367 kB / 0.5529 GB, free: 134.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (698): * Single equations (assignments): 694 * 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.003937/0.9803, allocations: 2.021 MB / 0.5548 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007238/0.981, allocations: 337.4 kB / 0.5552 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004452/0.9855, allocations: 2.768 MB / 0.5579 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-05/0.9856, allocations: 14.25 kB / 0.5579 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.9856, allocations: 7.031 kB / 0.5579 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.9856, allocations: 7.422 kB / 0.5579 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.9963, allocations: 7.125 MB / 0.5649 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/0.9963, allocations: 8.781 kB / 0.5649 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009661/0.9973, allocations: 213.9 kB / 0.5651 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/0.9991, allocations: 0.7158 MB / 0.5658 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001339/0.9993, allocations: 38.03 kB / 0.5658 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004647/1.004, allocations: 4.408 MB / 0.5701 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/1.004, allocations: 4 kB / 0.5701 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006366/1.01, allocations: 5.108 MB / 0.5751 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/1.011, allocations: 400.6 kB / 0.5755 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003978/1.012, allocations: 16 kB / 0.5755 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/1.013, allocations: 75.91 kB / 0.5756 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/1.013, allocations: 86.28 kB / 0.5756 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/1.013, allocations: 50.31 kB / 0.5757 GB, free: 119.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003386/1.017, allocations: 2.522 MB / 0.5782 GB, free: 117.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.017, allocations: 0 / 0.5782 GB, free: 117.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005044/1.022, allocations: 0.9118 MB / 0.579 GB, free: 116.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (101): * Single equations (assignments): 97 * 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.006577/1.028, allocations: 5.73 MB / 0.5846 GB, free: 110.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007052/1.035, allocations: 4.65 MB / 0.5892 GB, free: 105.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/1.035, allocations: 1.125 kB / 0.5892 GB, free: 105.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/1.037, allocations: 1.352 MB / 0.5905 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/1.04, allocations: 412 kB / 0.5909 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05206/1.092, allocations: 32.94 MB / 0.6231 GB, free: 67.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002659/1.094, allocations: 3.105 MB / 0.6261 GB, free: 64.26 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003986/1.098, allocations: 1.851 MB / 0.6279 GB, free: 62.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002043/1.1, allocations: 1.784 MB / 0.6296 GB, free: 60.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/1.1, allocations: 0 / 0.6296 GB, free: 60.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3324/1.433, allocations: 72.62 MB / 0.7006 GB, free: 132.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.433, allocations: 227.6 kB / 0.7008 GB, free: 132.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.741/5.174, allocations: 3.625 kB / 0.7008 GB, free: 132.7 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat