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.001041/0.001041, allocations: 94.59 kB / 16.65 MB, free: 6.602 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.0009771/0.0009775, allocations: 172.7 kB / 17.56 MB, free: 6.203 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.455/1.455, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.000283, allocations: 7.938 kB / 301.4 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1068, allocations: 50.43 MB / 351.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2583/0.3652, allocations: 48.29 MB / 400.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02973/0.3949, allocations: 10.2 MB / 410.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01349/0.4085, allocations: 208.3 kB / 410.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.4105, allocations: 407.2 kB / 410.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005989/0.4165, allocations: 1.696 MB / 412.6 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001557/0.4181, allocations: 0.5238 MB / 413.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008185/0.4263, allocations: 5.261 MB / 418.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007365/0.4337, allocations: 4.928 MB / 423.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002389/0.4361, allocations: 1.074 MB / 424.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002933/0.4391, allocations: 1.849 MB / 426.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005167/0.4396, allocations: 132 kB / 426.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.4416, allocations: 0.936 MB / 427.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001552/0.4432, allocations: 1.624 MB / 429 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001904/0.4451, allocations: 1.9 MB / 430.9 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00648/0.4516, allocations: 6.325 MB / 437.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4516, allocations: 0 / 437.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4516, allocations: 0 / 437.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001753/0.4518, allocations: 0 / 437.2 MB, free: 14.9 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.01541/0.4672, allocations: 4.225 MB / 441.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.4673, allocations: 12.03 kB / 441.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007084/0.4744, allocations: 1.898 MB / 443.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004283/0.4787, allocations: 2.237 MB / 445.5 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.4789, allocations: 225.8 kB / 445.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000753/0.4797, allocations: 303.8 kB / 446.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.499, allocations: 10.22 MB / 456.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.4991, allocations: 43.59 kB / 456.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000425/0.4996, allocations: 151.8 kB / 456.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003374/0.503, allocations: 1.86 MB / 458.3 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01961/0.5226, allocations: 9.155 MB / 467.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04609/0.5687, allocations: 38.28 MB / 0.4939 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01315/0.5819, allocations: 3.599 MB / 0.4974 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002235/0.5842, allocations: 1.684 MB / 0.4991 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005443/0.5847, allocations: 347.8 kB / 0.4994 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/0.5848, allocations: 47.12 kB / 0.4995 GB, free: 2.477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.937e-06/0.5848, allocations: 0 / 0.4995 GB, free: 2.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.04155/0.6264, allocations: 12.75 MB / 0.5119 GB, free: 5.605 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.6265, allocations: 149.1 kB / 0.512 GB, free: 5.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00543/0.6319, allocations: 4.06 MB / 0.516 GB, free: 1.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.6322, allocations: 41.7 kB / 0.516 GB, free: 1.293 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002035/0.6342, allocations: 3.051 MB / 0.519 GB, free: 14.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006385/0.6349, allocations: 0.5441 MB / 0.5196 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005841/0.6355, allocations: 498.5 kB / 0.52 GB, free: 13.15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.6356, allocations: 301.1 kB / 0.5203 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002873/0.6385, allocations: 1.975 MB / 0.5222 GB, free: 10.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004855/0.6434, allocations: 5.684 MB / 0.5278 GB, free: 3.316 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2004/0.8438, allocations: 8.293 MB / 0.5359 GB, free: 141.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001669/0.844, allocations: 38.5 kB / 0.5359 GB, free: 141.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.01894/0.863, allocations: 8.118 MB / 0.5439 GB, free: 139.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.8632, allocations: 62.47 kB / 0.5439 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002961/0.8635, allocations: 132.3 kB / 0.544 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002948/0.8664, allocations: 0.9075 MB / 0.5449 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004563/0.871, allocations: 1.332 MB / 0.5462 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006091/0.8771, allocations: 4.854 MB / 0.551 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004072/0.8812, allocations: 328.8 kB / 0.5513 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005531/0.8818, allocations: 363.6 kB / 0.5516 GB, free: 136.2 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.002778/0.8846, allocations: 2.017 MB / 0.5536 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004768/0.885, allocations: 329.6 kB / 0.5539 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004556/0.8896, allocations: 2.785 MB / 0.5566 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.338e-05/0.8896, allocations: 15.56 kB / 0.5567 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.8897, allocations: 3.844 kB / 0.5567 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.8897, allocations: 3.75 kB / 0.5567 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.9, allocations: 7.143 MB / 0.5636 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.9001, allocations: 3.938 kB / 0.5636 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009632/0.9011, allocations: 219 kB / 0.5638 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/0.903, allocations: 0.7131 MB / 0.5645 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.9031, allocations: 35.97 kB / 0.5646 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004583/0.9077, allocations: 4.421 MB / 0.5689 GB, free: 126.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.9078, allocations: 4.031 kB / 0.5689 GB, free: 126.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006446/0.9142, allocations: 5.1 MB / 0.5739 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009152/0.9152, allocations: 400.7 kB / 0.5743 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000316/0.9155, allocations: 16.7 kB / 0.5743 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.9167, allocations: 84.47 kB / 0.5744 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000255/0.9169, allocations: 88.52 kB / 0.5744 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.96e-05/0.917, allocations: 49.3 kB / 0.5745 GB, free: 121.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003408/0.9205, allocations: 2.538 MB / 0.577 GB, free: 118.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9205, allocations: 0 / 0.577 GB, free: 118.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005026/0.9255, allocations: 0.9011 MB / 0.5778 GB, free: 117.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.0004125/0.9259, allocations: 159.9 kB / 0.578 GB, free: 117.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006368/0.9323, allocations: 4.676 MB / 0.5826 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/0.9324, allocations: 7.891 kB / 0.5826 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.9339, allocations: 1.352 MB / 0.5839 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003123/0.937, allocations: 417.2 kB / 0.5843 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.9495, allocations: 10.44 MB / 0.5945 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002456/0.952, allocations: 3.101 MB / 0.5975 GB, free: 97.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004026/0.956, allocations: 1.838 MB / 0.5993 GB, free: 95.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000607/0.9566, allocations: 255.3 kB / 0.5996 GB, free: 95.43 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.9567, allocations: 0 / 0.5996 GB, free: 95.43 MB / 446.1 MB Notification: Performance of Templates: time 0.0576/1.014, allocations: 33.46 MB / 0.6322 GB, free: 62.14 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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches