Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009918/0.0009919, allocations: 101.4 kB / 17 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.00126, allocations: 195.7 kB / 17.9 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002544/0.0002544, allocations: 15.92 kB / 307.1 MB, free: 1.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1078, allocations: 51.52 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.2401/0.348, allocations: 55.79 MB / 414.4 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02823/0.3762, allocations: 11.6 MB / 426 MB, free: 7.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01083/0.3871, allocations: 267.3 kB / 426.3 MB, free: 7.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008427/0.3956, allocations: 2.92 MB / 429.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02445/0.42, allocations: 8.401 MB / 437.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003472/0.4235, allocations: 0.6163 MB / 438.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006626/0.4302, allocations: 4.966 MB / 443.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008819/0.439, allocations: 5.721 MB / 448.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002647/0.4417, allocations: 1.401 MB / 450.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003318/0.445, allocations: 2.161 MB / 452.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008585/0.4459, allocations: 164 kB / 452.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.4482, allocations: 0.7879 MB / 453.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002488/0.4507, allocations: 1.862 MB / 455.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001586/0.4523, allocations: 0.94 MB / 456.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006807/0.4591, allocations: 6.223 MB / 462.5 MB, free: 3.172 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4591, allocations: 0 / 462.5 MB, free: 3.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4591, allocations: 0 / 462.5 MB, free: 3.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003007/0.4595, allocations: 4 kB / 462.5 MB, free: 3.168 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.01694/0.4764, allocations: 5.147 MB / 467.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.4764, allocations: 8.031 kB / 467.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007138/0.4836, allocations: 2.017 MB / 469.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005697/0.4893, allocations: 2.57 MB / 472.2 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002851/0.4896, allocations: 287.5 kB / 472.5 MB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001492/0.4911, allocations: 391.6 kB / 472.9 MB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02513/0.5163, allocations: 12.16 MB / 485 MB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002102/0.5165, allocations: 55.52 kB / 485.1 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001161/0.5177, allocations: 179.8 kB / 485.3 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003935/0.5216, allocations: 2.198 MB / 487.5 MB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02235/0.544, allocations: 11.11 MB / 498.6 MB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2557/0.7998, allocations: 46.54 MB / 0.5323 GB, free: 136 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01711/0.8169, allocations: 5.368 MB / 0.5376 GB, free: 135.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004551/0.8215, allocations: 3.31 MB / 0.5408 GB, free: 135.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006074/0.8221, allocations: 374.5 kB / 0.5412 GB, free: 135 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.8222, allocations: 54.95 kB / 0.5412 GB, free: 135 MB / 446.1 MB Notification: Performance of pre-optimization done (n=200): time 5.47e-06/0.8222, allocations: 1.031 kB / 0.5412 GB, free: 135 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.06748/0.8897, allocations: 26.76 MB / 0.5673 GB, free: 126 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.8898, allocations: 153.3 kB / 0.5675 GB, free: 125.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006107/0.8959, allocations: 4.469 MB / 0.5719 GB, free: 122 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004442/0.8964, allocations: 57.7 kB / 0.5719 GB, free: 121.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001676/0.898, allocations: 3.425 MB / 0.5753 GB, free: 118.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00095/0.899, allocations: 0.8767 MB / 0.5761 GB, free: 117.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005599/0.8996, allocations: 128.9 kB / 0.5762 GB, free: 117.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003438/0.8999, allocations: 0.591 MB / 0.5768 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004164/0.9041, allocations: 3.264 MB / 0.58 GB, free: 113.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005336/0.9095, allocations: 7.201 MB / 0.587 GB, free: 104.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005765/0.9152, allocations: 4.725 MB / 0.5916 GB, free: 100.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/0.9154, allocations: 44 kB / 0.5917 GB, free: 100 MB / 446.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01698/0.9324, allocations: 11.36 MB / 0.6028 GB, free: 88.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/0.9325, allocations: 70.5 kB / 0.6028 GB, free: 88.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001775/0.9327, allocations: 136 kB / 0.603 GB, free: 88.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.9352, allocations: 1.144 MB / 0.6041 GB, free: 87.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005398/0.9406, allocations: 1.727 MB / 0.6058 GB, free: 85.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006306/0.9469, allocations: 6.011 MB / 0.6117 GB, free: 79.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004918/0.9519, allocations: 403.5 kB / 0.612 GB, free: 79.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009223/0.9528, allocations: 460.7 kB / 0.6125 GB, free: 78.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (834): * Single equations (assignments): 830 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003669/0.9565, allocations: 2.312 MB / 0.6147 GB, free: 76.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008241/0.9573, allocations: 398.8 kB / 0.6151 GB, free: 75.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009078/0.9664, allocations: 6.12 MB / 0.6211 GB, free: 69.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.355e-05/0.9664, allocations: 28.84 kB / 0.6211 GB, free: 69.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.9665, allocations: 7.953 kB / 0.6211 GB, free: 69.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.341e-05/0.9665, allocations: 7.969 kB / 0.6211 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01968/0.9862, allocations: 12.87 MB / 0.6337 GB, free: 56.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.9862, allocations: 4.312 kB / 0.6337 GB, free: 56.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002485/0.9887, allocations: 0.5382 MB / 0.6342 GB, free: 56.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/0.9909, allocations: 0.9449 MB / 0.6352 GB, free: 55.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002938/0.9913, allocations: 91.83 kB / 0.6352 GB, free: 55.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005998/0.9973, allocations: 5.718 MB / 0.6408 GB, free: 49.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.9973, allocations: 8 kB / 0.6408 GB, free: 49.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/1.01, allocations: 10.33 MB / 0.6509 GB, free: 38.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/1.012, allocations: 0.894 MB / 0.6518 GB, free: 38.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009253/1.013, allocations: 36 kB / 0.6518 GB, free: 37.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002218/1.015, allocations: 163.8 kB / 0.652 GB, free: 37.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003726/1.016, allocations: 184.2 kB / 0.6522 GB, free: 37.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002447/1.016, allocations: 103.9 kB / 0.6523 GB, free: 37.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004059/1.02, allocations: 2.795 MB / 0.655 GB, free: 34.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.02, allocations: 0 / 0.655 GB, free: 34.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005736/1.026, allocations: 1.196 MB / 0.6562 GB, free: 33.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (203): * Single equations (assignments): 199 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007594/1.026, allocations: 184.3 kB / 0.6563 GB, free: 33.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01053/1.037, allocations: 7.705 MB / 0.6639 GB, free: 25.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.037, allocations: 4.125 kB / 0.6639 GB, free: 25.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003643/1.041, allocations: 2.967 MB / 0.6668 GB, free: 22.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/1.044, allocations: 481.7 kB / 0.6672 GB, free: 22.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/1.064, allocations: 13.79 MB / 0.6807 GB, free: 8.395 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004509/1.068, allocations: 3.616 MB / 0.6842 GB, free: 4.746 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006142/1.074, allocations: 2.293 MB / 0.6865 GB, free: 2.445 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001695/1.076, allocations: 419.1 kB / 0.6869 GB, free: 2.035 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/1.076, allocations: 4 kB / 0.6869 GB, free: 2.031 MB / 446.1 MB Notification: Performance of Templates: time 0.2824/1.358, allocations: 52 MB / 0.7376 GB, free: 127.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches