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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 101.3 kB / 16.5 MB, free: 6.645 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.001669/0.001669, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.284/1.284, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009547/0.0009547, allocations: 41.3 kB / 300 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09528, allocations: 49.45 MB / 349.4 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.2215/0.3168, allocations: 65.55 MB / 415 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03032/0.3472, allocations: 12.96 MB / 427.9 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01516/0.3624, allocations: 283.4 kB / 428.2 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007781/0.3702, allocations: 3.721 MB / 431.9 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005775/0.376, allocations: 1.893 MB / 433.8 MB, free: 388 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002638/0.3787, allocations: 0.6281 MB / 434.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.3895, allocations: 6.251 MB / 440.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00987/0.3994, allocations: 4.722 MB / 445.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00416/0.4036, allocations: 1.643 MB / 447.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006193/0.4098, allocations: 2.64 MB / 449.7 MB, free: 436 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002155/0.412, allocations: 304 kB / 450 MB, free: 132 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004716/0.4168, allocations: 1.1 MB / 451.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004478/0.4213, allocations: 2.154 MB / 453.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006399/0.4277, allocations: 2.536 MB / 455.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.4411, allocations: 7.873 MB / 463.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4411, allocations: 4 kB / 463.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4411, allocations: 0 / 463.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003442/0.4415, allocations: 0 / 463.7 MB, free: 2.414 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.02472/0.4662, allocations: 6.216 MB / 469.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4663, allocations: 12.03 kB / 469.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007311/0.4736, allocations: 1.952 MB / 471.8 MB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00642/0.4801, allocations: 2.648 MB / 474.5 MB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003058/0.4804, allocations: 295.5 kB / 474.8 MB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001704/0.4821, allocations: 391.7 kB / 475.2 MB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02662/0.5087, allocations: 12.37 MB / 487.5 MB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002304/0.509, allocations: 51.52 kB / 487.6 MB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001206/0.5102, allocations: 183.8 kB / 487.8 MB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004248/0.5145, allocations: 2.256 MB / 490 MB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02388/0.5384, allocations: 11.3 MB / 0.4896 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2241/0.7625, allocations: 46.98 MB / 0.5354 GB, free: 124.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01719/0.7797, allocations: 5.335 MB / 0.5406 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004044/0.7838, allocations: 3.31 MB / 0.5439 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005503/0.7844, allocations: 377 kB / 0.5442 GB, free: 123.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.7844, allocations: 64.88 kB / 0.5443 GB, free: 123.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=200): time 4.018e-06/0.7844, allocations: 0 / 0.5443 GB, free: 123.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.06795/0.8524, allocations: 26.8 MB / 0.5705 GB, free: 112.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.8525, allocations: 150.5 kB / 0.5706 GB, free: 112.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/0.8571, allocations: 4.502 MB / 0.575 GB, free: 108.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003244/0.8575, allocations: 61.7 kB / 0.5751 GB, free: 108.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.8588, allocations: 3.469 MB / 0.5785 GB, free: 104.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006014/0.8594, allocations: 0.8772 MB / 0.5793 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001515/0.8609, allocations: 1.446 MB / 0.5807 GB, free: 102.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.274e-05/0.861, allocations: 313 kB / 0.581 GB, free: 102 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003546/0.8645, allocations: 3.285 MB / 0.5842 GB, free: 98.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004705/0.8692, allocations: 7.244 MB / 0.5913 GB, free: 89.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009202/0.8784, allocations: 11.34 MB / 0.6024 GB, free: 76.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.796e-05/0.8785, allocations: 40 kB / 0.6024 GB, free: 76.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.01498/0.8935, allocations: 11.44 MB / 0.6136 GB, free: 65.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.428e-05/0.8936, allocations: 64 kB / 0.6137 GB, free: 65.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.56e-05/0.8937, allocations: 136 kB / 0.6138 GB, free: 65.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/0.8961, allocations: 1.126 MB / 0.6149 GB, free: 63.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005128/0.9012, allocations: 1.727 MB / 0.6166 GB, free: 62.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006625/0.9079, allocations: 6.005 MB / 0.6224 GB, free: 56.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006233/0.9141, allocations: 411.4 kB / 0.6228 GB, free: 55.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008845/0.9151, allocations: 455.8 kB / 0.6233 GB, free: 55.19 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 (837): * Single equations (assignments): 833 * 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.003249/0.9183, allocations: 2.351 MB / 0.6256 GB, free: 52.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007326/0.9191, allocations: 394.8 kB / 0.6259 GB, free: 52.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008192/0.9273, allocations: 6.117 MB / 0.6319 GB, free: 46.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-05/0.9273, allocations: 24 kB / 0.6319 GB, free: 46.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.9273, allocations: 11.92 kB / 0.6319 GB, free: 46.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/0.9273, allocations: 7.969 kB / 0.632 GB, free: 46.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/0.9451, allocations: 12.92 MB / 0.6446 GB, free: 33.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.9452, allocations: 7.375 kB / 0.6446 GB, free: 33.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002543/0.9477, allocations: 0.5304 MB / 0.6451 GB, free: 32.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002201/0.9499, allocations: 0.9452 MB / 0.646 GB, free: 31.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002693/0.9502, allocations: 87.89 kB / 0.6461 GB, free: 31.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005732/0.956, allocations: 5.707 MB / 0.6517 GB, free: 25.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.956, allocations: 7.938 kB / 0.6517 GB, free: 25.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/0.9679, allocations: 10.34 MB / 0.6618 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/0.9697, allocations: 0.8823 MB / 0.6626 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000595/0.9703, allocations: 39.98 kB / 0.6627 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002038/0.9723, allocations: 159.8 kB / 0.6628 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004811/0.9728, allocations: 185.5 kB / 0.663 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002245/0.9731, allocations: 111.4 kB / 0.6631 GB, free: 14.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003321/0.9764, allocations: 2.826 MB / 0.6659 GB, free: 11.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9764, allocations: 384 / 0.6659 GB, free: 11.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005591/0.982, allocations: 1.21 MB / 0.6671 GB, free: 10.04 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 (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 Backend phase and start with SimCode phase: time 0.0005188/0.9825, allocations: 185.4 kB / 0.6672 GB, free: 9.844 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01009/0.9926, allocations: 7.732 MB / 0.6748 GB, free: 2.129 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/0.9927, allocations: 0 / 0.6748 GB, free: 2.129 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003807/0.9965, allocations: 2.956 MB / 0.6777 GB, free: 15.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/0.9997, allocations: 493.8 kB / 0.6781 GB, free: 14.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0213/1.021, allocations: 14.33 MB / 0.6921 GB, free: 316 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004018/1.025, allocations: 3.66 MB / 0.6957 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005735/1.031, allocations: 2.297 MB / 0.698 GB, free: 10.31 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001594/1.032, allocations: 419.1 kB / 0.6984 GB, free: 9.898 MB / 478.1 MB Notification: Performance of SimCode: time 9.61e-07/1.033, allocations: 0 / 0.6984 GB, free: 9.898 MB / 478.1 MB Notification: Performance of Templates: time 0.2797/1.312, allocations: 54.41 MB / 0.7515 GB, free: 147.4 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches