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.0008405/0.0008405, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001006/0.001006, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000228/0.000228, allocations: 8 kB / 306.8 MB, free: 1.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1099, allocations: 51.49 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.301/0.4109, allocations: 59.49 MB / 417.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03954/0.4505, allocations: 12.37 MB / 430.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01697/0.4675, allocations: 279.4 kB / 430.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01221/0.4798, allocations: 3.106 MB / 433.6 MB, free: 340 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02991/0.5097, allocations: 9.031 MB / 442.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004357/0.5141, allocations: 0.6169 MB / 443.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007425/0.5216, allocations: 5.036 MB / 448.2 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009397/0.531, allocations: 5.748 MB / 454 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003212/0.5342, allocations: 1.409 MB / 455.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003835/0.5381, allocations: 2.188 MB / 457.6 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.5392, allocations: 160 kB / 457.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002606/0.5418, allocations: 0.7997 MB / 458.5 MB, free: 7.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002746/0.5446, allocations: 1.905 MB / 460.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001913/0.5465, allocations: 0.9556 MB / 461.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007693/0.5542, allocations: 6.344 MB / 467.7 MB, free: 13.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.5543, allocations: 0 / 467.7 MB, free: 13.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5543, allocations: 0 / 467.7 MB, free: 13.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003445/0.5546, allocations: 0 / 467.7 MB, free: 13.99 MB / 382.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.01906/0.5737, allocations: 5.241 MB / 473 MB, free: 8.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.5738, allocations: 8.031 kB / 473 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003233/0.577, allocations: 0.8469 MB / 473.8 MB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007719/0.5848, allocations: 2.056 MB / 475.9 MB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006457/0.5913, allocations: 2.808 MB / 478.7 MB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/0.5916, allocations: 291.5 kB / 479 MB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/0.5932, allocations: 395.7 kB / 479.4 MB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02525/0.6185, allocations: 12.35 MB / 491.7 MB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002698/0.6188, allocations: 47.58 kB / 491.8 MB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001405/0.6202, allocations: 183.8 kB / 492 MB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004124/0.6244, allocations: 2.253 MB / 494.2 MB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02376/0.6481, allocations: 11.28 MB / 0.4936 GB, free: 7.336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2984/0.9466, allocations: 46.96 MB / 0.5395 GB, free: 118.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01663/0.9633, allocations: 5.35 MB / 0.5447 GB, free: 117.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005085/0.9684, allocations: 3.314 MB / 0.548 GB, free: 117.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006102/0.969, allocations: 385.1 kB / 0.5483 GB, free: 117.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.9691, allocations: 55.77 kB / 0.5484 GB, free: 117.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=200): time 4.759e-06/0.9691, allocations: 0 / 0.5484 GB, free: 117.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.06339/1.032, allocations: 26.82 MB / 0.5746 GB, free: 106.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/1.033, allocations: 150.5 kB / 0.5747 GB, free: 106 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005083/1.038, allocations: 4.489 MB / 0.5791 GB, free: 101.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003333/1.038, allocations: 61.7 kB / 0.5792 GB, free: 101.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/1.04, allocations: 3.462 MB / 0.5825 GB, free: 97.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006493/1.04, allocations: 0.8745 MB / 0.5834 GB, free: 97.09 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002953/1.041, allocations: 136.6 kB / 0.5835 GB, free: 96.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/1.041, allocations: 0.5948 MB / 0.5841 GB, free: 96.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/1.045, allocations: 3.257 MB / 0.5873 GB, free: 93.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005456/1.05, allocations: 7.214 MB / 0.5943 GB, free: 84.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005528/1.056, allocations: 4.717 MB / 0.5989 GB, free: 79.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.459e-05/1.056, allocations: 43.94 kB / 0.599 GB, free: 79.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=872) (initialization): time 0.01738/1.073, allocations: 11.37 MB / 0.6101 GB, free: 68.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.915e-05/1.073, allocations: 64 kB / 0.6101 GB, free: 68.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/1.073, allocations: 140 kB / 0.6103 GB, free: 68.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002418/1.076, allocations: 1.141 MB / 0.6114 GB, free: 66.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005604/1.081, allocations: 1.719 MB / 0.6131 GB, free: 65.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006378/1.088, allocations: 6.01 MB / 0.6189 GB, free: 59.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006675/1.094, allocations: 403.5 kB / 0.6193 GB, free: 58.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.096, allocations: 452.6 kB / 0.6198 GB, free: 58.17 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.003752/1.099, allocations: 2.36 MB / 0.6221 GB, free: 55.81 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007253/1.1, allocations: 402.8 kB / 0.6224 GB, free: 55.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008559/1.109, allocations: 6.121 MB / 0.6284 GB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.309e-05/1.109, allocations: 24.78 kB / 0.6284 GB, free: 49.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/1.109, allocations: 4 kB / 0.6284 GB, free: 49.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/1.109, allocations: 11.95 kB / 0.6285 GB, free: 49.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01749/1.126, allocations: 12.92 MB / 0.6411 GB, free: 36.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/1.126, allocations: 0 / 0.6411 GB, free: 36.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002445/1.129, allocations: 0.5462 MB / 0.6416 GB, free: 35.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/1.131, allocations: 0.9449 MB / 0.6425 GB, free: 34.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000249/1.131, allocations: 87.84 kB / 0.6426 GB, free: 34.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005937/1.137, allocations: 5.72 MB / 0.6482 GB, free: 28.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.137, allocations: 0 / 0.6482 GB, free: 28.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/1.149, allocations: 10.34 MB / 0.6583 GB, free: 18.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002112/1.152, allocations: 0.89 MB / 0.6592 GB, free: 17.49 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005167/1.152, allocations: 40.55 kB / 0.6592 GB, free: 17.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/1.154, allocations: 160.4 kB / 0.6594 GB, free: 17.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003838/1.154, allocations: 189.6 kB / 0.6595 GB, free: 17.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002124/1.155, allocations: 101.3 kB / 0.6596 GB, free: 17.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003872/1.158, allocations: 2.807 MB / 0.6624 GB, free: 14.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.158, allocations: 0 / 0.6624 GB, free: 14.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00576/1.164, allocations: 1.205 MB / 0.6636 GB, free: 13 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (203): * Single equations (assignments): 199 * 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.01279/1.177, allocations: 11.01 MB / 0.6743 GB, free: 1.926 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01187/1.189, allocations: 7.706 MB / 0.6818 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.189, allocations: 0 / 0.6818 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004473/1.193, allocations: 2.964 MB / 0.6847 GB, free: 7.266 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004234/1.198, allocations: 489 kB / 0.6852 GB, free: 6.793 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3076/1.505, allocations: 46.14 MB / 0.7302 GB, free: 149.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003352/1.509, allocations: 3.663 MB / 0.7338 GB, free: 148 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005082/1.514, allocations: 2.297 MB / 0.7361 GB, free: 148 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003101/1.517, allocations: 2.345 MB / 0.7384 GB, free: 146.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.382e-06/1.517, allocations: 0 / 0.7384 GB, free: 146.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1334/1.65, allocations: 99.72 MB / 0.8357 GB, free: 50.38 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/1.651, allocations: 233.3 kB / 0.836 GB, free: 50.15 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.513/6.163, allocations: 0 / 0.836 GB, free: 50.15 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