Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007468/0.0007468, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008748/0.0008748, allocations: 172.4 kB / 24.91 MB, free: 8.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.926/0.926, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.169e-05/2.313e-05, allocations: 6.312 kB / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01318/0.0132, allocations: 10.47 MB / 283.9 MB, free: 6.758 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008375/0.02158, allocations: 3.861 MB / 287.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.02274, allocations: 79.62 kB / 287.9 MB, free: 2.805 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1095/0.1322, allocations: 2.823 MB / 290.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004896/0.1371, allocations: 1.845 MB / 292.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.1384, allocations: 0.6326 MB / 293.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004073/0.1424, allocations: 3.976 MB / 297.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002925/0.1454, allocations: 3.052 MB / 300.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.1478, allocations: 2.254 MB / 302.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002315/0.1501, allocations: 2.007 MB / 304.5 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004198/0.1506, allocations: 313.3 kB / 304.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001393/0.152, allocations: 0.998 MB / 305.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001179/0.1531, allocations: 1.917 MB / 307.7 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.1542, allocations: 1.193 MB / 308.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002696/0.1569, allocations: 4.244 MB / 313.1 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1569, allocations: 0 / 313.1 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.1569, allocations: 4 kB / 313.1 MB, free: 7.395 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.706e-05/0.1569, allocations: 0 / 313.1 MB, free: 7.395 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.003491/0.1604, allocations: 4.434 MB / 317.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.855e-05/0.1604, allocations: 8.031 kB / 317.6 MB, free: 3.273 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002549/0.163, allocations: 1.046 MB / 318.6 MB, free: 2.273 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.1645, allocations: 1.683 MB / 320.3 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.493e-05/0.1646, allocations: 221.2 kB / 320.5 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/0.1649, allocations: 294.6 kB / 320.8 MB, free: 256 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004661/0.1696, allocations: 4.583 MB / 325.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.078e-05/0.1696, allocations: 50.67 kB / 325.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000251/0.1699, allocations: 142.9 kB / 325.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001351/0.1712, allocations: 1.513 MB / 327.1 MB, free: 9.793 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003502/0.1747, allocations: 2.227 MB / 329.3 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01878/0.1935, allocations: 29.23 MB / 358.6 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00236/0.1959, allocations: 1.037 MB / 359.6 MB, free: 9.453 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003179/0.1962, allocations: 236.7 kB / 359.8 MB, free: 9.219 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003177/0.1994, allocations: 2.654 MB / 362.5 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.1994, allocations: 42.83 kB / 362.5 MB, free: 6.535 MB / 314.7 MB Notification: Performance of pre-optimization done (n=93): time 1.904e-06/0.1994, allocations: 4 kB / 362.5 MB, free: 6.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.004943/0.2043, allocations: 2.331 MB / 364.9 MB, free: 4.184 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.2044, allocations: 136.5 kB / 365 MB, free: 4.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002303/0.2067, allocations: 3.167 MB / 368.2 MB, free: 1.266 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.2067, allocations: 33.7 kB / 368.2 MB, free: 1.227 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.208, allocations: 3.051 MB / 371.2 MB, free: 14.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.2082, allocations: 436.9 kB / 371.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008453/0.2091, allocations: 1.076 MB / 372.7 MB, free: 12.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.568e-05/0.2091, allocations: 305.1 kB / 373 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009481/0.2101, allocations: 0.6357 MB / 373.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00256/0.2127, allocations: 4.34 MB / 378 MB, free: 5.398 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003213/0.2159, allocations: 5.511 MB / 383.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-05/0.2159, allocations: 40 kB / 383.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=729) (initialization): time 0.003748/0.2196, allocations: 3.862 MB / 387.4 MB, free: 10.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.2197, allocations: 70.91 kB / 387.5 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.418e-05/0.2198, allocations: 136 kB / 387.6 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.22, allocations: 224.4 kB / 387.9 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/0.2219, allocations: 1.33 MB / 389.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.2231, allocations: 1.518 MB / 390.7 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003613/0.2267, allocations: 263.7 kB / 391 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004313/0.2271, allocations: 319.9 kB / 391.3 MB, free: 6.113 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.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 (703): * Single equations (assignments): 699 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00115/0.2283, allocations: 0.6028 MB / 391.9 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.2286, allocations: 171.8 kB / 392 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006403/0.2292, allocations: 497.5 kB / 392.5 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.2292, allocations: 15.94 kB / 392.5 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.2292, allocations: 4 kB / 392.5 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.2292, allocations: 3.984 kB / 392.5 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003326/0.2326, allocations: 2.78 MB / 395.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.2326, allocations: 4 kB / 395.3 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003734/0.233, allocations: 135.9 kB / 395.5 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001466/0.2331, allocations: 59.73 kB / 395.5 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.2331, allocations: 15.98 kB / 395.5 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009042/0.234, allocations: 1.435 MB / 397 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.234, allocations: 8.031 kB / 397 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.2351, allocations: 1.209 MB / 398.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/0.2353, allocations: 269.8 kB / 398.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/0.2355, allocations: 19.98 kB / 398.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004088/0.2359, allocations: 16 kB / 398.5 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.236, allocations: 55.84 kB / 398.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.946e-05/0.236, allocations: 27.98 kB / 398.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000918/0.237, allocations: 1.131 MB / 399.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.237, allocations: 0 / 399.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002569/0.2395, allocations: 0.8514 MB / 400.6 MB, free: 12.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (71): * Single equations (assignments): 67 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002679/0.2398, allocations: 136.1 kB / 400.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002296/0.2421, allocations: 2.173 MB / 402.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001514/0.2423, allocations: 100.2 kB / 403 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.2426, allocations: 325 kB / 403.3 MB, free: 9.848 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.2441, allocations: 0.5458 MB / 403.8 MB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007387/0.2514, allocations: 6.395 MB / 410.2 MB, free: 2.816 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.2527, allocations: 1.112 MB / 411.3 MB, free: 1.688 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00162/0.2543, allocations: 451.4 kB / 411.8 MB, free: 1.246 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008654/0.2552, allocations: 489.2 kB / 412.2 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of SimCode: time 1.373e-06/0.2552, allocations: 0 / 412.2 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of Templates: time 0.1307/0.3859, allocations: 22.33 MB / 434.6 MB, free: 113.7 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.318919468205422]