Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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: 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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001543/0.001548, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001771/0.001771, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 58.56 kB / 306.9 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09511, allocations: 50.53 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01446/0.1096, allocations: 10.99 MB / 368.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1935/0.3031, allocations: 3.829 MB / 372.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001779/0.305, allocations: 65.16 kB / 372.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005069/0.3101, allocations: 2.668 MB / 375 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004782/0.3149, allocations: 1.759 MB / 376.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.3164, allocations: 0.5786 MB / 377.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006432/0.3228, allocations: 3.582 MB / 380.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00528/0.3281, allocations: 3.598 MB / 384.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003047/0.3312, allocations: 1.444 MB / 386 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003073/0.3343, allocations: 1.988 MB / 388 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009283/0.3352, allocations: 318.7 kB / 388.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002665/0.3379, allocations: 1.027 MB / 389.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001821/0.3397, allocations: 1.788 MB / 391.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002002/0.3417, allocations: 2.078 MB / 393.2 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007155/0.3489, allocations: 6.428 MB / 399.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3489, allocations: 0 / 399.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.3489, allocations: 4 kB / 399.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002316/0.3492, allocations: 0 / 399.6 MB, free: 14.53 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01865/0.3678, allocations: 5.037 MB / 404.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3679, allocations: 20.02 kB / 404.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00648/0.3744, allocations: 1.846 MB / 406.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004271/0.3787, allocations: 2.194 MB / 408.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.3789, allocations: 222.5 kB / 408.9 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008102/0.3797, allocations: 306.1 kB / 409.2 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01942/0.3991, allocations: 10.02 MB / 419.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002239/0.3994, allocations: 39.59 kB / 419.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/0.4005, allocations: 147.7 kB / 419.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00329/0.4038, allocations: 1.804 MB / 421.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01926/0.4231, allocations: 8.958 MB / 430.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04812/0.4713, allocations: 37.89 MB / 468.1 MB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01302/0.4843, allocations: 3.58 MB / 471.7 MB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002587/0.487, allocations: 1.67 MB / 473.3 MB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006191/0.4876, allocations: 360 kB / 473.7 MB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.4877, allocations: 47.06 kB / 473.7 MB, free: 2.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.877e-06/0.4877, allocations: 0 / 473.7 MB, free: 2.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.04346/0.5311, allocations: 12.68 MB / 486.4 MB, free: 6.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.909e-05/0.5313, allocations: 137.2 kB / 486.5 MB, free: 6.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006529/0.5378, allocations: 4.048 MB / 490.6 MB, free: 1.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002081/0.538, allocations: 41.7 kB / 490.6 MB, free: 1.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002087/0.5401, allocations: 3.011 MB / 493.6 MB, free: 14.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007761/0.5409, allocations: 0.5425 MB / 494.2 MB, free: 14.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001943/0.5429, allocations: 1.169 MB / 495.3 MB, free: 13.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.543, allocations: 313.1 kB / 495.7 MB, free: 12.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003222/0.5462, allocations: 1.959 MB / 497.6 MB, free: 10.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006253/0.5525, allocations: 5.654 MB / 0.4915 GB, free: 3.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009809/0.5623, allocations: 8.255 MB / 0.4995 GB, free: 9.273 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001379/0.5625, allocations: 36 kB / 0.4996 GB, free: 9.238 MB / 430.1 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01465/0.5772, allocations: 8.077 MB / 0.5075 GB, free: 1.156 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.5773, allocations: 64.03 kB / 0.5075 GB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001993/0.5775, allocations: 132 kB / 0.5076 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/0.5801, allocations: 0.9132 MB / 0.5085 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004298/0.5844, allocations: 1.322 MB / 0.5098 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007176/0.5916, allocations: 5.196 MB / 0.5149 GB, free: 9.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004509/0.5961, allocations: 302.2 kB / 0.5152 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008637/0.597, allocations: 372 kB / 0.5155 GB, free: 8.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.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 (699): * Single equations (assignments): 695 * 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.003658/0.6007, allocations: 1.974 MB / 0.5175 GB, free: 6.742 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007055/0.6014, allocations: 335.6 kB / 0.5178 GB, free: 6.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005473/0.6069, allocations: 2.763 MB / 0.5205 GB, free: 3.633 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.744e-05/0.6069, allocations: 24.06 kB / 0.5205 GB, free: 3.609 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.607, allocations: 8 kB / 0.5205 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.607, allocations: 3.984 kB / 0.5205 GB, free: 3.598 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2025/0.8095, allocations: 7.067 MB / 0.5274 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/0.8096, allocations: 2.656 kB / 0.5274 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.8106, allocations: 215.5 kB / 0.5276 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002227/0.8128, allocations: 0.7178 MB / 0.5283 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.813, allocations: 29.67 kB / 0.5284 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00588/0.8188, allocations: 4.747 MB / 0.533 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.8189, allocations: 3.719 kB / 0.533 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008159/0.827, allocations: 5.088 MB / 0.538 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.8281, allocations: 396.5 kB / 0.5383 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007894/0.8289, allocations: 17.69 kB / 0.5384 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001753/0.8307, allocations: 76.03 kB / 0.5384 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.831, allocations: 95.48 kB / 0.5385 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/0.8311, allocations: 50.91 kB / 0.5386 GB, free: 133.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005487/0.8366, allocations: 2.529 MB / 0.541 GB, free: 133 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.8366, allocations: 0 / 0.541 GB, free: 133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005405/0.8421, allocations: 0.8872 MB / 0.5419 GB, free: 132.9 MB / 446.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.0004618/0.8425, allocations: 157.5 kB / 0.5421 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00772/0.8503, allocations: 5.11 MB / 0.5471 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.8503, allocations: 0 / 0.5471 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.8519, allocations: 1.343 MB / 0.5484 GB, free: 130.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/0.8549, allocations: 432.8 kB / 0.5488 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01432/0.8692, allocations: 8.429 MB / 0.557 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00413/0.8733, allocations: 3.049 MB / 0.56 GB, free: 125.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00392/0.8773, allocations: 1.849 MB / 0.5618 GB, free: 124.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007334/0.878, allocations: 254.5 kB / 0.562 GB, free: 124.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.878, allocations: 4 kB / 0.562 GB, free: 124.3 MB / 446.1 MB Notification: Performance of Templates: time 0.05604/0.9341, allocations: 34.88 MB / 0.5961 GB, free: 89.61 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches