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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 104.4 kB / 17.74 MB, free: 5.363 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.001228/0.001228, allocations: 183.1 kB / 18.66 MB, free: 4.449 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.303/1.303, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 48.06 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2877, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01315/0.3009, allocations: 11.13 MB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009019/0.31, allocations: 3.808 MB / 416.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.3117, allocations: 67.81 kB / 416.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004801/0.3166, allocations: 2.694 MB / 419.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004578/0.3212, allocations: 1.801 MB / 420.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.3226, allocations: 0.5693 MB / 421.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004908/0.3276, allocations: 3.581 MB / 425 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005013/0.3326, allocations: 3.625 MB / 428.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002697/0.3353, allocations: 1.468 MB / 430.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003254/0.3386, allocations: 2.005 MB / 432.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001158/0.3398, allocations: 320 kB / 432.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002668/0.3425, allocations: 1.061 MB / 433.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00235/0.3448, allocations: 1.839 MB / 435.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003647/0.3485, allocations: 2.124 MB / 437.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00793/0.3564, allocations: 6.805 MB / 444.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3565, allocations: 4 kB / 444.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3565, allocations: 0 / 444.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001739/0.3567, allocations: 0 / 444.3 MB, free: 13.78 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01789/0.3746, allocations: 5.106 MB / 449.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3746, allocations: 8.031 kB / 449.4 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006581/0.3812, allocations: 1.855 MB / 451.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00493/0.3862, allocations: 2.272 MB / 453.5 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.3864, allocations: 225.8 kB / 453.7 MB, free: 4.184 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/0.3877, allocations: 299.8 kB / 454 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01812/0.4058, allocations: 10.22 MB / 464.3 MB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.406, allocations: 35.69 kB / 464.3 MB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004036/0.4064, allocations: 147.9 kB / 464.4 MB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/0.4093, allocations: 1.864 MB / 466.3 MB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01694/0.4262, allocations: 9.119 MB / 475.4 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04325/0.4695, allocations: 38.17 MB / 0.5016 GB, free: 6.531 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/0.4816, allocations: 3.577 MB / 0.505 GB, free: 2.809 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002125/0.4838, allocations: 1.684 MB / 0.5067 GB, free: 1.113 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005457/0.4843, allocations: 363.5 kB / 0.507 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.4844, allocations: 43.12 kB / 0.5071 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.707e-06/0.4844, allocations: 0 / 0.5071 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.0411/0.5255, allocations: 12.73 MB / 0.5195 GB, free: 3.793 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.5256, allocations: 141.2 kB / 0.5196 GB, free: 3.625 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005737/0.5314, allocations: 4.068 MB / 0.5236 GB, free: 15.53 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002942/0.5317, allocations: 41.7 kB / 0.5237 GB, free: 15.48 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001908/0.5336, allocations: 3.055 MB / 0.5266 GB, free: 12.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006161/0.5342, allocations: 0.5364 MB / 0.5272 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001321/0.5356, allocations: 1.177 MB / 0.5283 GB, free: 10.65 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.901e-05/0.5357, allocations: 305.1 kB / 0.5286 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002622/0.5383, allocations: 1.963 MB / 0.5305 GB, free: 8.379 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004799/0.5431, allocations: 5.68 MB / 0.5361 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2546/0.7978, allocations: 8.282 MB / 0.5442 GB, free: 118.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001085/0.7979, allocations: 42.56 kB / 0.5442 GB, free: 118.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.01367/0.8116, allocations: 8.102 MB / 0.5521 GB, free: 116 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.8118, allocations: 62.03 kB / 0.5522 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/0.8119, allocations: 131.2 kB / 0.5523 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002332/0.8143, allocations: 0.913 MB / 0.5532 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/0.8183, allocations: 1.327 MB / 0.5545 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005892/0.8242, allocations: 5.197 MB / 0.5596 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004611/0.8289, allocations: 303.7 kB / 0.5598 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/0.83, allocations: 369.9 kB / 0.5602 GB, free: 111.4 MB / 462.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 (702): * Single equations (assignments): 698 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003783/0.8338, allocations: 2.012 MB / 0.5622 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000831/0.8346, allocations: 338.1 kB / 0.5625 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005092/0.8397, allocations: 2.767 MB / 0.5652 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.414e-05/0.8398, allocations: 16 kB / 0.5652 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.8398, allocations: 8 kB / 0.5652 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.8398, allocations: 7.969 kB / 0.5652 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.852, allocations: 7.117 MB / 0.5722 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.852, allocations: 0 / 0.5722 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009854/0.853, allocations: 215.7 kB / 0.5724 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001828/0.8548, allocations: 0.7229 MB / 0.5731 GB, free: 99.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001512/0.855, allocations: 31.97 kB / 0.5731 GB, free: 99.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004836/0.8599, allocations: 4.749 MB / 0.5778 GB, free: 94.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.8599, allocations: 4.062 kB / 0.5778 GB, free: 94.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006341/0.8662, allocations: 5.083 MB / 0.5827 GB, free: 89.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009936/0.8673, allocations: 400.6 kB / 0.5831 GB, free: 88.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007951/0.8681, allocations: 27.28 kB / 0.5831 GB, free: 88.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.8696, allocations: 67.91 kB / 0.5832 GB, free: 88.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002714/0.8699, allocations: 88.47 kB / 0.5833 GB, free: 88.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.87, allocations: 43.97 kB / 0.5833 GB, free: 88.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004203/0.8742, allocations: 2.549 MB / 0.5858 GB, free: 86.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8743, allocations: 0 / 0.5858 GB, free: 86.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005319/0.8796, allocations: 0.9049 MB / 0.5867 GB, free: 85.3 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005001/0.8801, allocations: 157.9 kB / 0.5868 GB, free: 85.15 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006622/0.8867, allocations: 4.676 MB / 0.5914 GB, free: 80.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.8868, allocations: 0 / 0.5914 GB, free: 80.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.8884, allocations: 1.357 MB / 0.5927 GB, free: 79.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003198/0.8916, allocations: 429.9 kB / 0.5931 GB, free: 78.71 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.9068, allocations: 8.853 MB / 0.6018 GB, free: 69.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004015/0.9109, allocations: 3.097 MB / 0.6048 GB, free: 66.69 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.9119, allocations: 306.9 kB / 0.6051 GB, free: 66.39 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.9119, allocations: 0 / 0.6051 GB, free: 66.39 MB / 462.1 MB Notification: Performance of Templates: time 0.09019/1.002, allocations: 72.96 MB / 0.6764 GB, free: 9.492 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches