Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008372/0.0008373, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.0008541/0.0008542, allocations: 181.4 kB / 17.21 MB, free: 6.336 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.348/1.348, allocations: 223.2 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004168/0.0004169, allocations: 5.719 kB / 300.9 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1462, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.05322/0.1995, allocations: 59.48 MB / 410.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02752/0.227, allocations: 12.34 MB / 423.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01153/0.2386, allocations: 275.4 kB / 423.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01021/0.2489, allocations: 3.106 MB / 426.5 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2702/0.5191, allocations: 9.027 MB / 435.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004291/0.5234, allocations: 0.6153 MB / 436.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009951/0.5334, allocations: 4.987 MB / 441.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01042/0.5439, allocations: 5.749 MB / 446.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003556/0.5475, allocations: 1.405 MB / 448.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003706/0.5512, allocations: 2.194 MB / 450.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006437/0.5519, allocations: 161.5 kB / 450.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.5539, allocations: 0.8138 MB / 451.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001756/0.5556, allocations: 1.901 MB / 453.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001173/0.5568, allocations: 0.962 MB / 454.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007047/0.5639, allocations: 6.342 MB / 460.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.5639, allocations: 4 kB / 460.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.987e-06/0.5639, allocations: 2.594 kB / 460.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002234/0.5641, allocations: 1.969 kB / 460.7 MB, free: 13.2 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.01743/0.5816, allocations: 5.198 MB / 465.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.5816, allocations: 10.59 kB / 465.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00226/0.5839, allocations: 0.8377 MB / 466.8 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00678/0.5907, allocations: 2.017 MB / 468.8 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006735/0.5975, allocations: 2.911 MB / 471.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002352/0.5977, allocations: 292.2 kB / 472 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/0.5988, allocations: 397.7 kB / 472.4 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02398/0.6228, allocations: 12.36 MB / 484.7 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000157/0.623, allocations: 43.59 kB / 484.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005373/0.6235, allocations: 187.9 kB / 484.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003831/0.6274, allocations: 2.26 MB / 487.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02331/0.6507, allocations: 11.27 MB / 498.5 MB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06343/0.7142, allocations: 46.96 MB / 0.5327 GB, free: 11.94 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01592/0.7301, allocations: 5.354 MB / 0.5379 GB, free: 6.727 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004631/0.7348, allocations: 3.305 MB / 0.5411 GB, free: 3.414 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007215/0.7356, allocations: 382.5 kB / 0.5415 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.453e-05/0.7357, allocations: 61.77 kB / 0.5415 GB, free: 2.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=200): time 5.661e-06/0.7357, allocations: 0 / 0.5415 GB, free: 2.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.07506/0.8107, allocations: 26.81 MB / 0.5677 GB, free: 8.004 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.599e-05/0.8109, allocations: 154.5 kB / 0.5679 GB, free: 7.824 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006464/0.8173, allocations: 4.479 MB / 0.5722 GB, free: 3.332 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006669/0.818, allocations: 61.7 kB / 0.5723 GB, free: 3.266 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002554/0.8206, allocations: 3.471 MB / 0.5757 GB, free: 15.81 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/0.8219, allocations: 0.8757 MB / 0.5765 GB, free: 14.94 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003583/0.8223, allocations: 128 kB / 0.5767 GB, free: 14.82 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003923/0.8227, allocations: 0.6005 MB / 0.5773 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004779/0.8275, allocations: 3.253 MB / 0.5804 GB, free: 10.95 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007442/0.8349, allocations: 7.214 MB / 0.5875 GB, free: 1.785 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2542/1.089, allocations: 4.714 MB / 0.5921 GB, free: 171.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.51e-05/1.089, allocations: 43.28 kB / 0.5921 GB, free: 171.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02567/1.115, allocations: 11.37 MB / 0.6032 GB, free: 170.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/1.115, allocations: 62.22 kB / 0.6033 GB, free: 170.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001905/1.115, allocations: 139.9 kB / 0.6034 GB, free: 170.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002685/1.118, allocations: 1.138 MB / 0.6045 GB, free: 170.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006267/1.124, allocations: 1.73 MB / 0.6062 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006841/1.131, allocations: 5.999 MB / 0.6121 GB, free: 167.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005703/1.137, allocations: 412.2 kB / 0.6125 GB, free: 167.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0011/1.138, allocations: 452.9 kB / 0.6129 GB, free: 167.1 MB / 478.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.004047/1.142, allocations: 2.352 MB / 0.6152 GB, free: 166.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007627/1.143, allocations: 404.5 kB / 0.6156 GB, free: 166.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008586/1.151, allocations: 6.121 MB / 0.6216 GB, free: 164.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.261e-05/1.152, allocations: 24.72 kB / 0.6216 GB, free: 164.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/1.152, allocations: 3.312 kB / 0.6216 GB, free: 164.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/1.152, allocations: 16.39 kB / 0.6216 GB, free: 164.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01792/1.169, allocations: 12.93 MB / 0.6342 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/1.17, allocations: 0 / 0.6342 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002372/1.172, allocations: 0.5382 MB / 0.6348 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/1.174, allocations: 0.9515 MB / 0.6357 GB, free: 150.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002934/1.174, allocations: 83.89 kB / 0.6358 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005926/1.18, allocations: 5.716 MB / 0.6413 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.18, allocations: 7.938 kB / 0.6414 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.012/1.192, allocations: 10.34 MB / 0.6514 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/1.195, allocations: 0.8939 MB / 0.6523 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005008/1.195, allocations: 43.98 kB / 0.6524 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/1.197, allocations: 160.5 kB / 0.6525 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003694/1.197, allocations: 185.6 kB / 0.6527 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002095/1.197, allocations: 105.1 kB / 0.6528 GB, free: 132.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003645/1.201, allocations: 2.803 MB / 0.6555 GB, free: 130.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.201, allocations: 4 kB / 0.6555 GB, free: 130.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005132/1.206, allocations: 1.208 MB / 0.6567 GB, free: 128.9 MB / 478.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.01183/1.218, allocations: 11.02 MB / 0.6675 GB, free: 117.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01007/1.228, allocations: 7.686 MB / 0.675 GB, free: 110.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.228, allocations: 0 / 0.675 GB, free: 110.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003466/1.232, allocations: 2.974 MB / 0.6779 GB, free: 107.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/1.235, allocations: 492.2 kB / 0.6783 GB, free: 106.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0674/1.302, allocations: 46.13 MB / 0.7234 GB, free: 56.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003252/1.305, allocations: 3.675 MB / 0.727 GB, free: 52.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005122/1.311, allocations: 2.289 MB / 0.7292 GB, free: 50.36 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002971/1.314, allocations: 2.349 MB / 0.7315 GB, free: 48.01 MB / 478.1 MB Notification: Performance of SimCode: time 8.31e-07/1.314, allocations: 0 / 0.7315 GB, free: 48.01 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3545/1.668, allocations: 99.72 MB / 0.8289 GB, free: 132 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/1.668, allocations: 239.7 kB / 0.8291 GB, free: 131.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.532/6.201, allocations: 5.312 kB / 0.8291 GB, free: 131.7 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat