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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 94.7 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002943, allocations: 8.812 kB / 300.8 MB, free: 6.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1168, allocations: 50.42 MB / 351.2 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.04028/0.1572, allocations: 42.47 MB / 393.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02261/0.1798, allocations: 10.13 MB / 403.8 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008421/0.1883, allocations: 211.5 kB / 404 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006959/0.1953, allocations: 2.103 MB / 406.2 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02094/0.2162, allocations: 6.148 MB / 412.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003689/0.2199, allocations: 0.507 MB / 412.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005166/0.2252, allocations: 2.031 MB / 414.8 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006324/0.2315, allocations: 4.226 MB / 419.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001922/0.2335, allocations: 0.9459 MB / 420 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001992/0.2355, allocations: 1.277 MB / 421.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004667/0.236, allocations: 128 kB / 421.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001635/0.2376, allocations: 0.7724 MB / 422.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001404/0.239, allocations: 1.481 MB / 423.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008555/0.2399, allocations: 0.7882 MB / 424.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.268/0.5079, allocations: 5.227 MB / 429.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.508, allocations: 0 / 429.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.508, allocations: 1.781 kB / 429.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002946/0.5083, allocations: 0 / 429.7 MB, free: 7.195 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.01797/0.5263, allocations: 4.352 MB / 434 MB, free: 5.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/0.5263, allocations: 9.25 kB / 434 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002609/0.529, allocations: 0.6887 MB / 434.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008489/0.5375, allocations: 2.199 MB / 436.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008641/0.5461, allocations: 2.291 MB / 439.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004923/0.5467, allocations: 226.4 kB / 439.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00246/0.5492, allocations: 305.7 kB / 439.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02355/0.5727, allocations: 10.26 MB / 450 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000162/0.5729, allocations: 49.19 kB / 450 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004917/0.5734, allocations: 143.2 kB / 450.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003217/0.5767, allocations: 1.866 MB / 452.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01983/0.5965, allocations: 9.17 MB / 461.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05079/0.6474, allocations: 38.34 MB / 499.6 MB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01278/0.6602, allocations: 3.62 MB / 0.4914 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006835/0.661, allocations: 346.4 kB / 0.4917 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.652e-05/0.661, allocations: 55.3 kB / 0.4918 GB, free: 92 kB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.548e-06/0.661, allocations: 4 kB / 0.4918 GB, free: 88 kB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.04099/0.702, allocations: 13.03 MB / 0.5045 GB, free: 4.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.7021, allocations: 144.1 kB / 0.5046 GB, free: 4.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006986/0.7091, allocations: 4.173 MB / 0.5087 GB, free: 1.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005407/0.7097, allocations: 43.89 kB / 0.5088 GB, free: 1.414 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002512/0.7122, allocations: 3.051 MB / 0.5117 GB, free: 14.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008671/0.7131, allocations: 0.5479 MB / 0.5123 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.7134, allocations: 107.4 kB / 0.5124 GB, free: 14.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003497/0.7137, allocations: 0.5426 MB / 0.5129 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00294/0.7167, allocations: 1.942 MB / 0.5148 GB, free: 12.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005369/0.722, allocations: 5.63 MB / 0.5203 GB, free: 6.008 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004738/0.7268, allocations: 3.236 MB / 0.5235 GB, free: 3.875 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-05/0.7269, allocations: 40 kB / 0.5235 GB, free: 3.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.01406/0.741, allocations: 8.036 MB / 0.5313 GB, free: 13.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.864e-05/0.7411, allocations: 63.95 kB / 0.5314 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/0.7413, allocations: 135.8 kB / 0.5315 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002504/0.7438, allocations: 0.932 MB / 0.5324 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004705/0.7485, allocations: 1.318 MB / 0.5337 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007253/0.7558, allocations: 4.965 MB / 0.5386 GB, free: 6.543 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005025/0.7608, allocations: 311.5 kB / 0.5389 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009195/0.7618, allocations: 368 kB / 0.5392 GB, free: 5.879 MB / 430.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.003833/0.7656, allocations: 2.011 MB / 0.5412 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007546/0.7664, allocations: 335.6 kB / 0.5415 GB, free: 3.645 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005157/0.7715, allocations: 2.774 MB / 0.5442 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/0.7716, allocations: 16 kB / 0.5442 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.7716, allocations: 4 kB / 0.5442 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/0.7716, allocations: 11.94 kB / 0.5442 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01414/0.7858, allocations: 7.141 MB / 0.5512 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.7858, allocations: 7.281 kB / 0.5512 GB, free: 9.652 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.7869, allocations: 218.6 kB / 0.5514 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/0.7891, allocations: 0.7166 MB / 0.5521 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.7892, allocations: 37.72 kB / 0.5522 GB, free: 8.695 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005821/0.795, allocations: 4.508 MB / 0.5566 GB, free: 4.066 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.7951, allocations: 3.984 kB / 0.5566 GB, free: 4.062 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008115/0.8032, allocations: 5.254 MB / 0.5617 GB, free: 14.74 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/0.8047, allocations: 404.6 kB / 0.5621 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/0.8051, allocations: 27.67 kB / 0.5621 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.8063, allocations: 71.91 kB / 0.5622 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/0.8065, allocations: 89.64 kB / 0.5623 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.8067, allocations: 47.92 kB / 0.5623 GB, free: 14.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00426/0.8109, allocations: 2.624 MB / 0.5649 GB, free: 11.46 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.8109, allocations: 0 / 0.5649 GB, free: 11.46 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005518/0.8165, allocations: 0.922 MB / 0.5658 GB, free: 10.54 MB / 462.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.008274/0.8247, allocations: 6.236 MB / 0.5719 GB, free: 4.266 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007829/0.8326, allocations: 4.652 MB / 0.5764 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.8327, allocations: 0 / 0.5764 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.8345, allocations: 1.355 MB / 0.5777 GB, free: 14.63 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002287/0.8368, allocations: 381.6 kB / 0.5781 GB, free: 14.26 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3208/1.158, allocations: 123.9 MB / 0.6991 GB, free: 81.63 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003406/1.161, allocations: 3.185 MB / 0.7022 GB, free: 80.52 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00434/1.165, allocations: 1.855 MB / 0.704 GB, free: 80.06 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002225/1.168, allocations: 1.781 MB / 0.7057 GB, free: 78.49 MB / 478.1 MB Notification: Performance of SimCode: time 1.884e-06/1.168, allocations: 0 / 0.7057 GB, free: 78.49 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1089/1.277, allocations: 73.36 MB / 0.7774 GB, free: 6.965 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/1.277, allocations: 232.7 kB / 0.7776 GB, free: 6.719 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.769/5.046, allocations: 3.938 kB / 0.7776 GB, free: 6.715 MB / 478.1 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