Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001472/0.001472, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.362/1.362, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 39.09 kB / 301.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1249, allocations: 49.44 MB / 350.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.016/0.141, allocations: 13.11 MB / 363.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.1512, allocations: 4.283 MB / 368.1 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002716/0.154, allocations: 83.75 kB / 368.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1988/0.3529, allocations: 3.716 MB / 371.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005611/0.3585, allocations: 2.026 MB / 373.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.3603, allocations: 0.6823 MB / 374.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006359/0.3667, allocations: 4.227 MB / 378.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007905/0.3747, allocations: 4.769 MB / 383.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003501/0.3782, allocations: 1.843 MB / 385.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003806/0.3821, allocations: 2.477 MB / 387.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001413/0.3835, allocations: 410.8 kB / 388.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003237/0.3868, allocations: 1.149 MB / 389.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002423/0.3892, allocations: 2.228 MB / 391.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002901/0.3921, allocations: 2.632 MB / 394.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007311/0.3995, allocations: 7.969 MB / 402.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3995, allocations: 4 kB / 402.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3995, allocations: 0 / 402.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002513/0.3998, allocations: 0 / 402.3 MB, free: 13.82 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.02111/0.4209, allocations: 6.21 MB / 408.5 MB, free: 7.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4209, allocations: 11.97 kB / 408.5 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007636/0.4286, allocations: 1.955 MB / 410.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005417/0.434, allocations: 2.652 MB / 413.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.4343, allocations: 303.2 kB / 413.4 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0013/0.4356, allocations: 391.8 kB / 413.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02502/0.4607, allocations: 12.37 MB / 426.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001628/0.4609, allocations: 55.19 kB / 426.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007674/0.4616, allocations: 180.6 kB / 426.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004557/0.4662, allocations: 2.254 MB / 428.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02457/0.4908, allocations: 11.29 MB / 440 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06539/0.5563, allocations: 47 MB / 487 MB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01908/0.5754, allocations: 5.338 MB / 492.3 MB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004551/0.58, allocations: 3.309 MB / 495.6 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007352/0.5808, allocations: 385 kB / 496 MB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.755e-05/0.5808, allocations: 59.8 kB / 496 MB, free: 14.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=200): time 4.588e-06/0.5808, allocations: 0 / 496 MB, free: 14.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.0783/0.6592, allocations: 26.81 MB / 0.5106 GB, free: 3.527 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.706e-05/0.6593, allocations: 150.5 kB / 0.5107 GB, free: 3.352 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006602/0.6659, allocations: 4.504 MB / 0.5151 GB, free: 14.83 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006193/0.6666, allocations: 57.7 kB / 0.5152 GB, free: 14.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002621/0.6692, allocations: 3.464 MB / 0.5186 GB, free: 11.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001301/0.6705, allocations: 0.8815 MB / 0.5194 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002222/0.6727, allocations: 1.45 MB / 0.5209 GB, free: 8.969 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.6729, allocations: 305.1 kB / 0.5212 GB, free: 8.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005082/0.6779, allocations: 3.289 MB / 0.5244 GB, free: 5.375 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1726/0.8506, allocations: 7.239 MB / 0.5314 GB, free: 140.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/0.8629, allocations: 11.33 MB / 0.5425 GB, free: 133.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001881/0.8632, allocations: 40.16 kB / 0.5425 GB, free: 133.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.0207/0.8839, allocations: 11.43 MB / 0.5537 GB, free: 129.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.884, allocations: 68.59 kB / 0.5538 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/0.8842, allocations: 137.6 kB / 0.5539 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002634/0.8868, allocations: 1.131 MB / 0.555 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005738/0.8926, allocations: 1.73 MB / 0.5567 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006722/0.8993, allocations: 6.342 MB / 0.5629 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005594/0.905, allocations: 404.8 kB / 0.5633 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001131/0.9061, allocations: 463.2 kB / 0.5637 GB, free: 125.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.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 (837): * Single equations (assignments): 833 * 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.003587/0.9097, allocations: 2.35 MB / 0.566 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007647/0.9105, allocations: 400.3 kB / 0.5664 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008691/0.9192, allocations: 6.113 MB / 0.5724 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.154e-05/0.9192, allocations: 24 kB / 0.5724 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.9193, allocations: 7.875 kB / 0.5724 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.9193, allocations: 14.08 kB / 0.5724 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01807/0.9374, allocations: 12.92 MB / 0.585 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.77e-05/0.9374, allocations: 7.844 kB / 0.585 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002714/0.9401, allocations: 0.5346 MB / 0.5855 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/0.9425, allocations: 0.9449 MB / 0.5865 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003638/0.9429, allocations: 87.89 kB / 0.5865 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006137/0.9491, allocations: 6.058 MB / 0.5925 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.9491, allocations: 4 kB / 0.5925 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/0.9614, allocations: 10.33 MB / 0.6026 GB, free: 90.49 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001889/0.9633, allocations: 0.888 MB / 0.6034 GB, free: 89.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006794/0.964, allocations: 43.94 kB / 0.6035 GB, free: 89.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002183/0.9662, allocations: 166.9 kB / 0.6036 GB, free: 89.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004502/0.9667, allocations: 177.7 kB / 0.6038 GB, free: 89.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002277/0.9669, allocations: 103.7 kB / 0.6039 GB, free: 89.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003539/0.9705, allocations: 2.826 MB / 0.6067 GB, free: 86.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9705, allocations: 0 / 0.6067 GB, free: 86.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005495/0.976, allocations: 1.21 MB / 0.6078 GB, free: 85.07 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 (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 Backend phase and start with SimCode phase: time 0.000523/0.9765, allocations: 206.8 kB / 0.608 GB, free: 84.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01298/0.9895, allocations: 9.76 MB / 0.6176 GB, free: 75.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.9896, allocations: 4.188 kB / 0.6176 GB, free: 75.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003636/0.9932, allocations: 2.975 MB / 0.6205 GB, free: 72.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/0.9963, allocations: 0.5 MB / 0.621 GB, free: 71.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/1.015, allocations: 12.53 MB / 0.6332 GB, free: 59.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003475/1.018, allocations: 3.664 MB / 0.6368 GB, free: 55.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001799/1.02, allocations: 467.1 kB / 0.6372 GB, free: 54.95 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/1.02, allocations: 0 / 0.6372 GB, free: 54.95 MB / 446.1 MB Notification: Performance of Templates: time 0.2815/1.302, allocations: 94.18 MB / 0.7292 GB, free: 118.8 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches