Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009368/0.0009367, allocations: 96.83 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000947/0.000947, allocations: 198 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002323/0.0002323, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.11, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.2736/0.3836, allocations: 56.14 MB / 414.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03663/0.4203, allocations: 12.95 MB / 427.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01557/0.4359, allocations: 283.3 kB / 427.6 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.4465, allocations: 2.803 MB / 430.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02832/0.4749, allocations: 8.03 MB / 438.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004245/0.4791, allocations: 0.6241 MB / 439 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005219/0.4844, allocations: 2.433 MB / 441.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007552/0.492, allocations: 5.701 MB / 447.2 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00209/0.4941, allocations: 1.156 MB / 448.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002048/0.4962, allocations: 1.526 MB / 449.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005542/0.4967, allocations: 164 kB / 450 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001638/0.4984, allocations: 0.7802 MB / 450.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001584/0.5, allocations: 1.761 MB / 452.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.501, allocations: 0.9673 MB / 453.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008334/0.5094, allocations: 6.34 MB / 459.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.5095, allocations: 0 / 459.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.5095, allocations: 3.938 kB / 459.9 MB, free: 5.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004371/0.5099, allocations: 0 / 459.9 MB, free: 5.633 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.0217/0.5316, allocations: 5.416 MB / 465.3 MB, free: 152 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.5317, allocations: 12.03 kB / 465.3 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002727/0.5344, allocations: 0.8352 MB / 466.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008599/0.543, allocations: 2.349 MB / 468.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006955/0.5501, allocations: 2.703 MB / 471.2 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/0.5503, allocations: 295.5 kB / 471.5 MB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/0.5517, allocations: 387.7 kB / 471.8 MB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02397/0.5757, allocations: 12.46 MB / 484.3 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/0.5758, allocations: 51.47 kB / 484.3 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005745/0.5764, allocations: 183.8 kB / 484.5 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004034/0.5805, allocations: 2.26 MB / 486.8 MB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02354/0.604, allocations: 11.4 MB / 498.2 MB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2971/0.9012, allocations: 46.97 MB / 0.5324 GB, free: 134 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01869/0.9199, allocations: 5.46 MB / 0.5377 GB, free: 133.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007091/0.9207, allocations: 375.8 kB / 0.5381 GB, free: 133.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.9207, allocations: 56.16 kB / 0.5381 GB, free: 133 MB / 446.1 MB Notification: Performance of pre-optimization done (n=200): time 5.06e-06/0.9207, allocations: 0 / 0.5381 GB, free: 133 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.07581/0.9965, allocations: 27.52 MB / 0.565 GB, free: 126.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.527e-05/0.9967, allocations: 152.5 kB / 0.5652 GB, free: 126.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007089/1.004, allocations: 4.612 MB / 0.5697 GB, free: 123.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008322/1.005, allocations: 57.69 kB / 0.5697 GB, free: 123.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002135/1.007, allocations: 3.47 MB / 0.5731 GB, free: 120 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001515/1.008, allocations: 0.8752 MB / 0.574 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003692/1.009, allocations: 136 kB / 0.5741 GB, free: 119 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003039/1.009, allocations: 0.5908 MB / 0.5747 GB, free: 118.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003761/1.013, allocations: 3.249 MB / 0.5778 GB, free: 115.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005135/1.018, allocations: 7.188 MB / 0.5849 GB, free: 106.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005903/1.024, allocations: 4.734 MB / 0.5895 GB, free: 101.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-05/1.024, allocations: 40 kB / 0.5895 GB, free: 101.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=872) (initialization): time 0.01891/1.043, allocations: 11.35 MB / 0.6006 GB, free: 90.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.522e-05/1.043, allocations: 67.94 kB / 0.6007 GB, free: 90.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/1.043, allocations: 144.1 kB / 0.6008 GB, free: 89.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00249/1.046, allocations: 1.14 MB / 0.6019 GB, free: 88.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006233/1.052, allocations: 1.719 MB / 0.6036 GB, free: 87.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006711/1.059, allocations: 6.12 MB / 0.6096 GB, free: 80.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006673/1.065, allocations: 403.6 kB / 0.61 GB, free: 80.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001626/1.067, allocations: 451.8 kB / 0.6104 GB, free: 80.04 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (833): * Single equations (assignments): 829 * 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.005355/1.072, allocations: 2.355 MB / 0.6127 GB, free: 77.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/1.073, allocations: 402.8 kB / 0.6131 GB, free: 77.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008992/1.082, allocations: 6.129 MB / 0.6191 GB, free: 71.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-05/1.083, allocations: 29.75 kB / 0.6191 GB, free: 71.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/1.083, allocations: 7.938 kB / 0.6191 GB, free: 71.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.44e-05/1.083, allocations: 15.95 kB / 0.6191 GB, free: 71.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02066/1.103, allocations: 12.85 MB / 0.6317 GB, free: 58.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.065e-05/1.103, allocations: 7.938 kB / 0.6317 GB, free: 58.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002637/1.106, allocations: 0.5425 MB / 0.6322 GB, free: 57.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002279/1.108, allocations: 0.9411 MB / 0.6331 GB, free: 56.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003479/1.109, allocations: 87.89 kB / 0.6332 GB, free: 56.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006119/1.115, allocations: 5.816 MB / 0.6389 GB, free: 50.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.115, allocations: 4 kB / 0.6389 GB, free: 50.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01306/1.128, allocations: 10.8 MB / 0.6494 GB, free: 39.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002621/1.131, allocations: 0.8979 MB / 0.6503 GB, free: 38.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00079/1.131, allocations: 47.95 kB / 0.6503 GB, free: 38.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/1.133, allocations: 159.8 kB / 0.6505 GB, free: 38.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004215/1.134, allocations: 189.6 kB / 0.6507 GB, free: 38.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002244/1.134, allocations: 103.9 kB / 0.6508 GB, free: 38.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003819/1.138, allocations: 2.908 MB / 0.6536 GB, free: 35.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.138, allocations: 0 / 0.6536 GB, free: 35.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006405/1.144, allocations: 1.224 MB / 0.6548 GB, free: 34.08 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (205): * Single equations (assignments): 201 * 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 Backend phase and start with SimCode phase: time 0.01336/1.158, allocations: 12.25 MB / 0.6668 GB, free: 21.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01112/1.169, allocations: 7.695 MB / 0.6743 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.169, allocations: 4.25 kB / 0.6743 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003658/1.173, allocations: 2.958 MB / 0.6772 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002927/1.176, allocations: 470.7 kB / 0.6776 GB, free: 10.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3048/1.48, allocations: 141.8 MB / 0.8161 GB, free: 45.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003444/1.484, allocations: 3.775 MB / 0.8198 GB, free: 43.87 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005004/1.489, allocations: 2.301 MB / 0.822 GB, free: 43.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002915/1.492, allocations: 2.345 MB / 0.8243 GB, free: 41.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/1.492, allocations: 3.828 kB / 0.8243 GB, free: 41.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4244/1.916, allocations: 100.4 MB / 0.9223 GB, free: 142.5 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/1.917, allocations: 234.3 kB / 0.9226 GB, free: 142.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.314/6.231, allocations: 0 / 0.9226 GB, free: 142.2 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat