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.001066/0.001066, allocations: 112.8 kB / 17.68 MB, free: 5.332 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.0009939/0.000994, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.349/1.349, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000994/0.0009941, allocations: 43.75 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1164, allocations: 49.44 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01255/0.129, allocations: 11.12 MB / 362.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008274/0.1373, allocations: 3.819 MB / 366.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.1387, allocations: 63.81 kB / 366.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004538/0.1433, allocations: 2.698 MB / 369.2 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003916/0.1472, allocations: 1.808 MB / 371 MB, free: 100 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1822/0.3294, allocations: 0.5618 MB / 371.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006602/0.336, allocations: 3.58 MB / 375.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005742/0.3418, allocations: 3.623 MB / 378.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0029/0.3447, allocations: 1.468 MB / 380.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.348, allocations: 2.009 MB / 382.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008254/0.3488, allocations: 318.8 kB / 382.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002151/0.351, allocations: 1.054 MB / 383.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001839/0.3528, allocations: 1.823 MB / 385.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002035/0.3549, allocations: 2.129 MB / 387.6 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007291/0.3622, allocations: 6.803 MB / 394.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3622, allocations: 0 / 394.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3622, allocations: 7.438 kB / 394.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002128/0.3624, allocations: 0 / 394.4 MB, free: 3.746 MB / 302.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.01787/0.3803, allocations: 5.098 MB / 399.5 MB, free: 464 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3804, allocations: 6.438 kB / 399.5 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006149/0.3865, allocations: 1.859 MB / 401.3 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006329/0.3929, allocations: 2.275 MB / 403.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002579/0.3932, allocations: 228.6 kB / 403.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/0.3945, allocations: 298.7 kB / 404.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01868/0.4132, allocations: 10.21 MB / 414.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.4133, allocations: 38 kB / 414.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004171/0.4138, allocations: 149.7 kB / 414.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003196/0.417, allocations: 1.864 MB / 416.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01896/0.4359, allocations: 9.124 MB / 425.5 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05047/0.4865, allocations: 38.14 MB / 463.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01245/0.499, allocations: 3.591 MB / 467.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002388/0.5014, allocations: 1.676 MB / 468.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006041/0.502, allocations: 355.1 kB / 469.3 MB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.5021, allocations: 47.11 kB / 469.3 MB, free: 9.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.497e-06/0.5021, allocations: 4 kB / 469.3 MB, free: 9.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.03999/0.5421, allocations: 12.72 MB / 482 MB, free: 12.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.125e-05/0.5422, allocations: 145.1 kB / 482.2 MB, free: 12.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00557/0.5478, allocations: 4.064 MB / 486.3 MB, free: 8.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002408/0.548, allocations: 43.81 kB / 486.3 MB, free: 8.625 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001991/0.55, allocations: 3.057 MB / 489.4 MB, free: 5.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005727/0.5506, allocations: 0.5477 MB / 489.9 MB, free: 5.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001456/0.5521, allocations: 1.174 MB / 491.1 MB, free: 3.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.5522, allocations: 305.1 kB / 491.4 MB, free: 3.539 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002629/0.5548, allocations: 1.967 MB / 493.3 MB, free: 1.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005007/0.5599, allocations: 5.683 MB / 499 MB, free: 10.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008843/0.5687, allocations: 8.275 MB / 0.4954 GB, free: 15.92 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.324e-05/0.5688, allocations: 40 kB / 0.4954 GB, free: 15.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.01394/0.5828, allocations: 8.106 MB / 0.5034 GB, free: 7.77 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.537e-05/0.5829, allocations: 72.05 kB / 0.5034 GB, free: 7.699 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001219/0.583, allocations: 132 kB / 0.5036 GB, free: 7.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/0.5853, allocations: 0.9022 MB / 0.5044 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003891/0.5892, allocations: 1.322 MB / 0.5057 GB, free: 5.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006464/0.5957, allocations: 5.193 MB / 0.5108 GB, free: 12 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004724/0.6005, allocations: 308.3 kB / 0.5111 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009139/0.6014, allocations: 368 kB / 0.5114 GB, free: 15.35 MB / 446.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.003998/0.6054, allocations: 2.013 MB / 0.5134 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000759/0.6062, allocations: 339.5 kB / 0.5137 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005073/0.6112, allocations: 2.759 MB / 0.5164 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.644e-05/0.6113, allocations: 16 kB / 0.5164 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.6113, allocations: 4 kB / 0.5164 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.6113, allocations: 7.984 kB / 0.5165 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/0.624, allocations: 7.106 MB / 0.5234 GB, free: 3.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.624, allocations: 8 kB / 0.5234 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.6251, allocations: 215.7 kB / 0.5236 GB, free: 2.801 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/0.6271, allocations: 0.7143 MB / 0.5243 GB, free: 2.086 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.6273, allocations: 39.97 kB / 0.5243 GB, free: 2.047 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2165/0.8438, allocations: 4.738 MB / 0.529 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.8439, allocations: 2.344 kB / 0.529 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008093/0.852, allocations: 5.089 MB / 0.5339 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.853, allocations: 390.2 kB / 0.5343 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003625/0.8534, allocations: 28.58 kB / 0.5343 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.8546, allocations: 67.44 kB / 0.5344 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003072/0.8549, allocations: 96.56 kB / 0.5345 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/0.855, allocations: 48.27 kB / 0.5345 GB, free: 142.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005719/0.8608, allocations: 2.54 MB / 0.537 GB, free: 141.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8608, allocations: 0.625 kB / 0.537 GB, free: 141.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006683/0.8675, allocations: 0.9088 MB / 0.5379 GB, free: 141.3 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.0004117/0.8679, allocations: 165.5 kB / 0.5381 GB, free: 141.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007371/0.8753, allocations: 4.685 MB / 0.5426 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.8753, allocations: 0 / 0.5426 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.877, allocations: 1.354 MB / 0.544 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/0.8796, allocations: 441.7 kB / 0.5444 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.8918, allocations: 8.415 MB / 0.5526 GB, free: 135.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002686/0.8945, allocations: 3.11 MB / 0.5556 GB, free: 134.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003673/0.8982, allocations: 1.834 MB / 0.5574 GB, free: 134 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008476/0.8991, allocations: 251.6 kB / 0.5577 GB, free: 134 MB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/0.8991, allocations: 0 / 0.5577 GB, free: 134 MB / 446.1 MB Notification: Performance of Templates: time 0.0525/0.9516, allocations: 30.08 MB / 0.5871 GB, free: 106 MB / 446.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 -s cvode -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