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.00165/0.00165, allocations: 105.9 kB / 17.16 MB, free: 6.082 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.001873/0.001873, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.421/1.421, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 46.84 kB / 300.6 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1191, allocations: 49.44 MB / 350.1 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2551/0.3743, allocations: 49.59 MB / 399.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02715/0.4015, allocations: 10.24 MB / 409.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01252/0.4141, allocations: 210.6 kB / 410.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005363/0.4195, allocations: 2.685 MB / 412.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005249/0.4248, allocations: 1.684 MB / 414.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.4265, allocations: 0.5237 MB / 415 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006571/0.4331, allocations: 5.26 MB / 420.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005392/0.4385, allocations: 3.594 MB / 423.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002595/0.4411, allocations: 1.3 MB / 425.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003292/0.4444, allocations: 2.149 MB / 427.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009998/0.4455, allocations: 228 kB / 427.5 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/0.4481, allocations: 1.037 MB / 428.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002285/0.4504, allocations: 1.761 MB / 430.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003421/0.4539, allocations: 2.05 MB / 432.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005994/0.4599, allocations: 5.344 MB / 437.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.4599, allocations: 0 / 437.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4599, allocations: 0 / 437.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002514/0.4602, allocations: 0 / 437.7 MB, free: 13.09 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.01938/0.4796, allocations: 5.11 MB / 442.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4797, allocations: 8.031 kB / 442.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006854/0.4865, allocations: 1.852 MB / 444.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00454/0.4911, allocations: 2.241 MB / 446.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.4913, allocations: 229.7 kB / 447.1 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001102/0.4924, allocations: 303.8 kB / 447.4 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01941/0.5119, allocations: 10.21 MB / 457.6 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000155/0.5121, allocations: 39.59 kB / 457.7 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009016/0.513, allocations: 151.9 kB / 457.8 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003335/0.5163, allocations: 1.86 MB / 459.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01877/0.5351, allocations: 9.123 MB / 468.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04672/0.5819, allocations: 38.29 MB / 0.4952 GB, free: 5.758 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01341/0.5953, allocations: 3.593 MB / 0.4987 GB, free: 2.023 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00232/0.5977, allocations: 1.672 MB / 0.5004 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006158/0.5983, allocations: 359.7 kB / 0.5007 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.5984, allocations: 43.12 kB / 0.5007 GB, free: 15.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.747e-06/0.5984, allocations: 0 / 0.5007 GB, free: 15.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.04364/0.642, allocations: 12.74 MB / 0.5132 GB, free: 3.023 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.6421, allocations: 145.1 kB / 0.5133 GB, free: 2.852 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006989/0.6491, allocations: 4.068 MB / 0.5173 GB, free: 14.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002765/0.6495, allocations: 41.7 kB / 0.5173 GB, free: 14.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002184/0.6517, allocations: 3.055 MB / 0.5203 GB, free: 11.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007724/0.6524, allocations: 0.5403 MB / 0.5208 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002053/0.6545, allocations: 1.174 MB / 0.522 GB, free: 9.875 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.6546, allocations: 301.1 kB / 0.5223 GB, free: 9.578 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003027/0.6576, allocations: 1.967 MB / 0.5242 GB, free: 7.605 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005659/0.6633, allocations: 5.672 MB / 0.5297 GB, free: 64 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1905/0.8538, allocations: 8.277 MB / 0.5378 GB, free: 140.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001042/0.854, allocations: 38.33 kB / 0.5378 GB, free: 140.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.01513/0.8691, allocations: 8.111 MB / 0.5458 GB, free: 137.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.8693, allocations: 62.88 kB / 0.5458 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002159/0.8695, allocations: 132.5 kB / 0.546 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002573/0.8721, allocations: 0.9146 MB / 0.5469 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004184/0.8763, allocations: 1.323 MB / 0.5481 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005841/0.8821, allocations: 4.856 MB / 0.5529 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004099/0.8862, allocations: 313 kB / 0.5532 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008988/0.8872, allocations: 371.9 kB / 0.5535 GB, free: 134.4 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.003421/0.8906, allocations: 2.01 MB / 0.5555 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006766/0.8913, allocations: 333.9 kB / 0.5558 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004746/0.896, allocations: 2.775 MB / 0.5585 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.691e-05/0.8961, allocations: 14.56 kB / 0.5585 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.8961, allocations: 3.688 kB / 0.5585 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.511e-05/0.8961, allocations: 3.844 kB / 0.5586 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/0.908, allocations: 7.125 MB / 0.5655 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.908, allocations: 7.312 kB / 0.5655 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.909, allocations: 215.7 kB / 0.5657 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/0.911, allocations: 0.7127 MB / 0.5664 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/0.9112, allocations: 35.97 kB / 0.5665 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004729/0.9159, allocations: 4.421 MB / 0.5708 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.9159, allocations: 0 / 0.5708 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00643/0.9224, allocations: 5.09 MB / 0.5757 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008457/0.9232, allocations: 384.6 kB / 0.5761 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006671/0.9239, allocations: 29.08 kB / 0.5761 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/0.9254, allocations: 75.84 kB / 0.5762 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.9257, allocations: 92.52 kB / 0.5763 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.9258, allocations: 43.92 kB / 0.5763 GB, free: 118.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004144/0.93, allocations: 2.545 MB / 0.5788 GB, free: 116.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.93, allocations: 0 / 0.5788 GB, free: 116.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004971/0.935, allocations: 0.9075 MB / 0.5797 GB, free: 115.2 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.0004906/0.9355, allocations: 149.1 kB / 0.5799 GB, free: 115 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006559/0.9421, allocations: 4.671 MB / 0.5844 GB, free: 110.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/0.9421, allocations: 0 / 0.5844 GB, free: 110.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.9437, allocations: 1.357 MB / 0.5857 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/0.947, allocations: 419.3 kB / 0.5861 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/0.9621, allocations: 10.77 MB / 0.5967 GB, free: 97.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003796/0.9659, allocations: 3.097 MB / 0.5997 GB, free: 94.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/0.967, allocations: 303.3 kB / 0.6 GB, free: 94.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.143e-06/0.967, allocations: 0 / 0.6 GB, free: 94.4 MB / 446.1 MB Notification: Performance of Templates: time 0.07888/1.046, allocations: 71.73 MB / 0.67 GB, free: 22.72 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