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.001223/0.001223, allocations: 92.73 kB / 17.31 MB, free: 5.633 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.001339/0.001339, allocations: 177.2 kB / 18.21 MB, free: 5.207 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.107/1.107, allocations: 223.3 MB / 242.3 MB, free: 180 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002073/0.0002073, allocations: 11.94 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06941/0.06963, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.1599/0.2295, allocations: 48.3 MB / 400.8 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01724/0.2468, allocations: 10.19 MB / 411 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006038/0.2529, allocations: 212.8 kB / 411.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008506/0.2537, allocations: 410.4 kB / 411.6 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002951/0.2567, allocations: 1.701 MB / 413.3 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008233/0.2575, allocations: 0.5186 MB / 413.8 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003738/0.2613, allocations: 5.255 MB / 419.1 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00494/0.2662, allocations: 4.939 MB / 424 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009551/0.2672, allocations: 1.062 MB / 425.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001701/0.2689, allocations: 1.853 MB / 426.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.2691, allocations: 132 kB / 427 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001188/0.2703, allocations: 0.9281 MB / 428 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.2714, allocations: 1.636 MB / 429.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001226/0.2726, allocations: 1.892 MB / 431.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003465/0.2761, allocations: 5.233 MB / 436.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.2761, allocations: 0 / 436.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2761, allocations: 4 kB / 436.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.533e-05/0.2762, allocations: 0 / 436.7 MB, free: 15.96 MB / 350.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.01183/0.288, allocations: 4.218 MB / 441 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.288, allocations: 8.031 kB / 441 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005737/0.2938, allocations: 1.898 MB / 442.9 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002716/0.2965, allocations: 2.244 MB / 445.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.2967, allocations: 225.8 kB / 445.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004945/0.2972, allocations: 307.8 kB / 445.6 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0131/0.3103, allocations: 10.22 MB / 455.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.802e-05/0.3103, allocations: 43.58 kB / 455.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003452/0.3107, allocations: 143.9 kB / 456 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/0.3135, allocations: 1.872 MB / 457.9 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01363/0.3271, allocations: 9.139 MB / 467 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03195/0.3591, allocations: 38.28 MB / 0.4935 GB, free: 9.434 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/0.3704, allocations: 3.6 MB / 0.497 GB, free: 5.691 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.3722, allocations: 1.684 MB / 0.4986 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004572/0.3727, allocations: 351.8 kB / 0.499 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.3727, allocations: 51.06 kB / 0.499 GB, free: 3.539 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 2.816e-06/0.3727, allocations: 0 / 0.499 GB, free: 3.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.03523/0.408, allocations: 12.75 MB / 0.5115 GB, free: 6.664 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.015e-05/0.408, allocations: 145.2 kB / 0.5116 GB, free: 6.492 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004213/0.4123, allocations: 4.06 MB / 0.5156 GB, free: 2.402 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.705e-05/0.4124, allocations: 41.7 kB / 0.5156 GB, free: 2.355 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001698/0.4141, allocations: 3.059 MB / 0.5186 GB, free: 15.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003967/0.4145, allocations: 0.5442 MB / 0.5191 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004801/0.415, allocations: 494.5 kB / 0.5196 GB, free: 14.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.137e-05/0.415, allocations: 301.1 kB / 0.5199 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/0.4175, allocations: 1.967 MB / 0.5218 GB, free: 11.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004336/0.4218, allocations: 5.692 MB / 0.5274 GB, free: 4.375 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1403/0.5621, allocations: 8.288 MB / 0.5355 GB, free: 141.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.389e-05/0.5622, allocations: 37.75 kB / 0.5355 GB, free: 141.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.01258/0.5748, allocations: 8.115 MB / 0.5434 GB, free: 139.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-05/0.5749, allocations: 62.16 kB / 0.5435 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001846/0.5751, allocations: 134.6 kB / 0.5436 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/0.5774, allocations: 0.9073 MB / 0.5445 GB, free: 139.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003407/0.5808, allocations: 1.333 MB / 0.5458 GB, free: 139.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005003/0.5858, allocations: 4.847 MB / 0.5505 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003158/0.589, allocations: 322.2 kB / 0.5508 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004056/0.5894, allocations: 370.9 kB / 0.5512 GB, free: 136.7 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.002064/0.5915, allocations: 2.014 MB / 0.5532 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003869/0.5919, allocations: 344 kB / 0.5535 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/0.5959, allocations: 2.772 MB / 0.5562 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.596, allocations: 15.69 kB / 0.5562 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.596, allocations: 3.938 kB / 0.5562 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.596, allocations: 7.828 kB / 0.5562 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008496/0.6045, allocations: 7.14 MB / 0.5632 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.6045, allocations: 8.188 kB / 0.5632 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008302/0.6053, allocations: 214.3 kB / 0.5634 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/0.6071, allocations: 0.7217 MB / 0.5641 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.304e-05/0.6072, allocations: 34.62 kB / 0.5642 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004037/0.6112, allocations: 4.421 MB / 0.5685 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6112, allocations: 12.03 kB / 0.5685 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005316/0.6166, allocations: 5.1 MB / 0.5735 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003668/0.6169, allocations: 396.7 kB / 0.5738 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/0.6172, allocations: 23.94 kB / 0.5739 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.6183, allocations: 80.94 kB / 0.5739 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.6184, allocations: 88.53 kB / 0.574 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/0.6185, allocations: 49.61 kB / 0.5741 GB, free: 122.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.6208, allocations: 2.541 MB / 0.5766 GB, free: 119.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6208, allocations: 0 / 0.5766 GB, free: 119.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002897/0.6237, allocations: 0.9011 MB / 0.5774 GB, free: 118.7 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.0002491/0.624, allocations: 158.3 kB / 0.5776 GB, free: 118.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004412/0.6284, allocations: 4.679 MB / 0.5822 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.6284, allocations: 0.5 kB / 0.5822 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/0.6296, allocations: 1.357 MB / 0.5835 GB, free: 112.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.6319, allocations: 420.8 kB / 0.5839 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009239/0.6411, allocations: 10.86 MB / 0.5945 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002314/0.6435, allocations: 3.098 MB / 0.5975 GB, free: 98.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006037/0.6441, allocations: 299.3 kB / 0.5978 GB, free: 97.82 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.6441, allocations: 3.938 kB / 0.5978 GB, free: 97.81 MB / 446.1 MB Notification: Performance of Templates: time 0.05531/0.6994, allocations: 70.95 MB / 0.6671 GB, free: 26.88 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 -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